CN104104869A - Photographing method and device and electronic equipment - Google Patents

Photographing method and device and electronic equipment Download PDF

Info

Publication number
CN104104869A
CN104104869A CN201410291156.XA CN201410291156A CN104104869A CN 104104869 A CN104104869 A CN 104104869A CN 201410291156 A CN201410291156 A CN 201410291156A CN 104104869 A CN104104869 A CN 104104869A
Authority
CN
China
Prior art keywords
image
region
camera
definition
focus area
Prior art date
Application number
CN201410291156.XA
Other languages
Chinese (zh)
Inventor
蔡志刚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201410291156.XA priority Critical patent/CN104104869A/en
Publication of CN104104869A publication Critical patent/CN104104869A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23212Focusing based on image signals provided by the electronic image sensor
    • H04N5/232133Bracketing relating to the capture of varying focusing conditions

Abstract

The invention discloses a photographing method, and relates to the field of data processing. The photographing method is used for solving a problem that photographing operation is complicated. According to the technical scheme, multiple images are obtained through photographing in one step, a depth map is calculated, and one photographing operation is performed by a user according to clarity of the multiple images so that the image with the highest clarity in a focal area can be obtained, and the image with the blurring effect can also be generated. The photographing method can be applied to a scene of electronic terminal photographing.

Description

A kind of photographic method, device and electronic equipment
Technical field
The present invention relates to data processing field, relate in particular to a kind of photographic method, device and electronic equipment.
Background technology
The development of processing along with electronic equipment and image, on many electronic equipments all with camera function.User can want the scene of record when not carrying camera under also shining, for life brings more enjoyment.And the photo that user also can contrast is done some and is simply processed, to reach comparatively desirable effect.
In realizing the process of existing image pickup method, inventor finds that in prior art, at least there are the following problems: electronic equipment is when taking pictures, require user need to select focusing area, then electronic equipment just can select focusing area to take for user, obtains an image; If user wants to select other region as focusing area, must reselect a focusing area, then mobile terminal again the focusing area based on new again take, complex operation, inconvenience; Likely electronic equipment does not support that user selects focusing area, makes user can only select the focusing area of acquiescence to take pictures, thereby can not get the image effect oneself wanted yet.
Summary of the invention
Embodiments of the invention provide a kind of photographic method, can simplify shooting operation.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of photographic method, is applied to the electric terminal of single camera, comprising:
Shooting direction along described single camera, gathers the image in several focusings;
According to the image having collected, calculate, obtain each self-corresponding depth map of each image;
Determine the focus area that user selects in view-finder;
By the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image;
According to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo;
By described Target Photo output, for user, check.
In conjunction with first aspect, in the possible execution mode of the first of first aspect, described single camera can moving lens under electrical motor driven; , along user's shooting direction, the image gathering in several focusings comprises:
Described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings;
When described single camera rests on arbitrary focusing, gather image.
In conjunction with the possible execution mode of the first of first aspect, in the possible execution mode of the second, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
In conjunction with first aspect, in the third possible execution mode of first aspect, before the focus area of selecting in view-finder described definite user, also comprise:
The image having collected is carried out to net region division, and calculate the region definition of each net region; Wherein, the net region dividing mode that the image each having been collected is used is consistent;
In the described local definition by focus area in to each image, compare, select an image that local definition is the highest as before pending image, also comprise:
Determine focus area that user selects position, shape and the area in view-finder;
According to described position, shape and area and the area ratio relation that gathered image and described view-finder, determine goal-focus region;
Determine a net region or a plurality of net region that in each image, can cover described goal-focus region;
Using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions.
In conjunction with first three of first aspect or first aspect, plant any one in possible execution mode, in the possible execution mode in four kinds, ground, in the described shooting direction along user, after gathering the image in several focusings, also comprise:
For each image collecting distributes identical identification information, and the identification information having distributed and image unification are stored.
A kind of photographic method that the embodiment of the present invention provides, along camera direction, the image in view-finder in some focusings gathers and calculates, and obtains each self-corresponding depth map of each image.And, when user selects the focus area of view-finder, definition to each image focus area compares, select image that definition is the highest as pending image, according to the depth map of pending image, image beyond focus area in pending image is carried out to virtualization processing, obtain the picture that user wants.The method that need to repeatedly take pictures based on a plurality of focus area repetitive operation electronic equipments than prior art user, technical solution of the present invention only needs multiple images of disposable shooting, then by user, select focus area to carry out follow-up virtualization processing, in this process user only need to complete once take action just can be to image in all focus areas select, operate comparatively easy.
Second aspect, the present invention also provides a kind of camera arrangement, is provided with single camera, comprising:
Collecting unit, the shooting direction for along described single camera, gathers the image in several focusings;
The first computing unit, for calculating according to the image having collected, obtains each self-corresponding depth map of each image;
The first determining unit, for the focus area of determining that user selects in view-finder;
Selected cell, compares for the local definition by each image focus area, selects an image that local definition is the highest as pending image;
Virtualization processing unit, for according to the depth map of pending image, carries out virtualization processing to the image except described focus area in pending image, obtains Target Photo;
Output unit, for by described Target Photo output, checks for user.
In conjunction with second aspect, in the possible implementation of the first, described device also comprises electro-motor, and described single camera can moving lens under electrical motor driven;
Described collecting unit, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings; When described single camera rests on arbitrary focusing, gather image.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
In conjunction with second aspect, in the third possible implementation, also comprise:
Division unit, for carrying out net region division to the image having collected; Wherein, the net region dividing mode that the image each having been collected is used is consistent;
The second computing unit, for calculating the region definition of each net region;
The second determining unit, position, shape and the area of the focus area of selecting for definite user in view-finder;
The 3rd determining unit, for according to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determines goal-focus region;
The 4th determining unit, for determining that each image can cover a net region or a plurality of net region in described goal-focus region;
The 5th determining unit, for the local definition using the region definition sum of the region definition of a fixed net region or fixed a plurality of net regions as image focus area.
In conjunction with first three of second aspect and second aspect, plant any one in possible implementation, in the 4th kind of possible implementation, also comprise:
Sign allocation units, are used to each image collecting to distribute identical identification information;
Memory cell, for storing the identification information having distributed and image unification.
The third aspect, the embodiment of the present invention also provides a kind of electronic equipment, be provided with single camera, processor, memory, input/output interface, described memory stores has computer program, and described processor calls described computer program to control described single camera and input/output interface;
Described single camera, for along taking direction, gathers the image in several focusings;
Described processor, for calculating according to the image having collected, obtains each self-corresponding depth map of each image; Determine the focus area that user selects in view-finder; By the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image; According to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo;
Input/output interface, for by described Target Photo output, checks for user;
Described memory is for image, each self-corresponding depth map of each image, Target Photo in several focusings of storage of collected.
In conjunction with the third aspect, in the first, agree, in the execution mode of energy, also be provided with electro-motor;
Described processor, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings;
Described single camera, during also for a focusing in office, gathers image.
In conjunction with the possible implementation of the first of the third aspect, in the second possibility implementation, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
In conjunction with the third aspect, in the third possible execution mode, described processor is also for the image having collected is carried out to net region division, and calculates the region definition of each net region; Wherein, the net region dividing mode that the image each having been collected is used is consistent; Determine focus area that user selects position, shape and the area in view-finder; According to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determine goal-focus region; Determine a net region or a plurality of net region that in each image, can cover described goal-focus region; Using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions;
Described memory, also for the region definition of each net region.
In conjunction with first three of the third aspect and the third aspect, plant any one in possible execution mode, in the 4th kind of possible execution mode, described processor is also used to each image collecting to distribute identical identification information;
Described memory, also for storing the identification information having distributed and image unification.
A kind of photographic method that the embodiment of the present invention provides, along camera direction, gathers and calculates the image in some focusings, obtains each self-corresponding depth map of each image.And, when user selects the focus area of view-finder, definition to each image focus area compares, select image that definition is the highest as pending image, according to the depth map of pending image, image beyond focus area in pending image is carried out to virtualization processing, obtain the picture that user wants.The method that need to repeatedly take pictures based on a plurality of focus area repetitive operation electronic equipments than prior art user, technical solution of the present invention only needs multiple images of disposable shooting, then by user, select focus area to carry out follow-up virtualization processing, in this process user only need to complete once take action just can be to image in all focus areas select, operate comparatively easy.And, can determine focus area according to user's selection, improved user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of photographic method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of photographic method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the another kind of photographic method that Fig. 3 provides for the embodiment of the present invention;
The structural representation that Fig. 4 divides for a kind of region that the embodiment of the present invention provides;
The flow chart of the another kind of photographic method that Fig. 5 provides for the embodiment of the present invention;
The contrast schematic diagram that a kind of focus area that Fig. 6 provides for the embodiment of the present invention and grid are divided;
The contrast schematic diagram that the another kind of focus area that Fig. 7 provides for the embodiment of the present invention and grid are divided;
The contrast schematic diagram that the another kind of focus area that Fig. 8 provides for the embodiment of the present invention and grid are divided;
The flow chart of a kind of photographic method that Fig. 9 provides for the embodiment of the present invention;
The composition frame chart of a kind of filming apparatus that Figure 10 provides for the embodiment of the present invention;
The composition frame chart of the another kind of filming apparatus that Figure 11 provides for the embodiment of the present invention;
The composition frame chart of the another kind of filming apparatus that Figure 12 provides for the embodiment of the present invention;
The composition frame chart of a kind of electric terminal that Figure 13 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of photographic method, can be applicable in the single camera mobile electronic device with camera function, and specifically the application-specific in the operating system on electronic equipment or service realize, and its flow process as shown in Figure 1, comprising:
101, along the shooting direction of single camera, gather the image in several focusings.
Wherein, the camera lens that described shooting direction is described single camera towards.The light signal that the operating principle of collection image is about to collect in camera lens is projected to the light collection unit (being generally light sensation array) in electronic equipment, then by this light collection unit, light signal is converted into the signal of telecommunication, then the signal of telecommunication is carried out to digital quantization obtains raw image data.For problems such as the image noise in elimination raw image data and untrue colors, need to be ISP (Image Signal Processing, picture signal is processed) to raw image data, be finally met the yuv data of certain mass requirement.
In addition, also it should be noted that, above-mentioned several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings, above-mentioned predetermined threshold value is generally empirical value, and setting principle is for generating the depth map of the image collecting.The depth of field of the image collecting in different focusings is different.
102, according to the image having collected, calculate, obtain each self-corresponding depth map of each image.
After execution step 101, can obtain image corresponding to a plurality of focusings, the image of a plurality of different depth of field namely, the principle of the image calculation depth map based on having obtained be choose can more clearly distinguish before and after two pictures of scape calculate the depth map of foreground picture, such as pic0 to pic7 totally 7 pictures focusings become successively far away, be that pic0 is nearest one of focusing, pic7 is farthest one of focusing, while calculating Map figure, can select pic0 and pic6 to calculate the depth map of pic0, also can select the depth map of pic1 and pic7 calculating pic1, the like.
103, determine the focus area that user selects in view-finder.
Wherein, user can click the region in view-finder with hand, and the click on area that system can user is set to focus area.And when user does not have clicking operation, system default central area is focus area.
104,, by the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image.
105, according to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo.
Can adopt in an embodiment the quick Gauss's virtualization algorithm calculating by pixel based on depth map to carry out virtualization processing, the virtualization degree of each point is controlled according to the value of depth map.Obtain one the most clear centered by focus area, the picture of virtualization effect gradually to the periphery.Certainly the embodiment of the present invention is not limited to just by above virtualization mode, anyly existingly publishedly based on depth map, realizes weakening method and can be applied in the embodiment of the present invention.
106, by described Target Photo output, for user, check.
Wherein, the picture that the Target Photo of output is virtualization.
A kind of photographic method that the embodiment of the present invention provides, along camera direction, the image in view-finder in some focusings gathers and calculates, and obtains each self-corresponding depth map of each image.And, when user selects the focus area of view-finder, definition to each image focus area compares, select image that definition is the highest as pending image, according to the depth map of pending image, image beyond focus area in pending image is carried out to virtualization processing, obtain the picture that user wants.The method that need to repeatedly take pictures based on a plurality of focus area repetitive operation electronic equipments than prior art user, technical solution of the present invention only needs multiple images of disposable shooting, then by user, select focus area to carry out follow-up virtualization processing, in this process user only need to complete once take action just can be to image in all focus areas select, operate comparatively easy.And, can determine focus area according to user's selection, improved user's experience.
In another implementation in the embodiment of the present invention, provide the concrete grammar flow process that realizes above-mentioned steps 101, the single camera that the method flow process requires electronic equipment can moving lens under electrical motor driven, and the method flow process as shown in Figure 2, comprising:
201, described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings.
Wherein, the motor that control camera moves can move according to different current values, motor is shift position each time, capital makes a bit of distance of lens moving, this distance take millimeter or micron be unit, when camera lens rests on a new position, the focusing of camera lens will change like this, thereby carries out imaging in several focusings.
202,, when described single camera rests on arbitrary focusing, gather image.
Wherein, when motor rests in new focusing, camera will gather the image on reposition.The acquisition method of image can, with reference to the specific descriptions of abovementioned steps 101, not repeat them here.
In order to realize the contrast of local definition, also need the image to having collected to carry out preliminary treatment, in the another kind of implementation of the embodiment of the present invention, the following pretreated method flow of realizing is provided, requirement, before being executed in step 103, as shown in Figure 3, also comprises:
301, the image having collected is carried out to net region division, and calculate the region definition of each net region.
Wherein, the net region dividing mode that the image each having been collected is used is consistent.Present embodiment provides a kind of as figure at this, example shown in 4, in this example, according to the wide height of the reality that collects image (take pixel as unit), laterally, be longitudinally divided into multi-compartment region (take rectangle in Fig. 4 as example) respectively, crossover location between every two row or two row multi-compartment regions is also that an interval region is (convenient for distinguishing simultaneously, in Fig. 4, be circular be example, actual should be with other rectangle interval region with being set to rectangle while using the technical program).Content shown in above-mentioned Fig. 4 is only example, and the shape in multi-compartment region and the division numbers embodiment of the present invention are not done particular determination.
Wherein, local definition can be calculated by neighbor gray variance method, also can continue to use existing published other image definition computational methods and calculate.
In the present embodiment, by image is carried out to grid division, the definition of image each several part is calculated respectively, made user when selecting focus area, electronic equipment can directly get corresponding definition for focus area, swift to operate easy.
If after carrying out above-mentioned steps 301, in another implementation of the embodiment of the present invention, also provide the focus area of user's selection and the matching process of grid zoning, before requiring execution and step 104, as shown in Figure 5, comprising:
401, determine focus area that user selects position, shape and the area in view-finder.
Wherein, the focus area position that user selects in view-finder can manually be clicked and choose by user, and shape is got by user's circle, and size determines by the circle scope of getting, and user also can directly use system default focus area certainly.And electronic equipment uses the centre coordinate of this focus area and edge coordinate to determine focus area conventionally.
402, according to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determine goal-focus region.
Generally, view-finder is identical with the picture shape collecting, but due to the resolution difference of the image collecting cause its pixel quantity comprising and the pixel quantity in view-finder inconsistent, at this moment can produce area discrepancy, thereby derive high proportionate relationship and wide proportionate relationship.For example, 8M YUV view data, wide 3264 pixels, high 2448 pixels, wide 1440 pixels of view-finder size, high 1080 pixels, it is 102 to 45 that its width ratio is closed, its height ratio is related to 102 to 45.Be user in view-finder, to select coordinate be wide the 90th pixel, in the time of high the 180th pixel, on image, be wide the 204th pixel, high the 408th pixel, the position that user selects in view-finder is identical with the position on image.The coordinate of selecting in view-finder as user is, corresponding coordinate in image is, other edge coordinate corresponding relations are consistent therewith.At this, it should be noted that, above-mentioned example is only a kind of possible pixel set-up mode in the embodiment of the present invention, certainly also can take other pixel set-up modes, and the embodiment of the present invention is not construed as limiting this.
403, determine a net region or a plurality of net region that can cover described goal-focus region in each image.
The contrast schematic diagram of dividing with focus area Fig. 6 to 8 illustrate and grid at this, the region of goal-focus shown in Fig. 6 is just covered by a net region, the region of goal-focus shown in Fig. 7 is covered by a plurality of net regions, and the region of goal-focus shown in Fig. 8 is in inside, a net region.
404, using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions.
If only determine, a net region can cover focus area, and the region definition of this net region is the local definition of focus area; If determine, a plurality of net regions could cover focus area, and the region definition sum of a plurality of net regions can take the mode of directly summation or weighted sum to calculate, and the local definition using region definition sum as focus area.
Wherein, during weighted calculation, each net region all has its oneself weight, and the set-up mode of this weight, for take focus area center as benchmark, calculates the distance at each center, net region and focus area center, and distance is nearer, and weighted value is higher.
In addition, the embodiment of the present invention is for user is when carrying out subsequent operation, and electric terminal facilitates calling graph picture, and photographic images is unified to storage, after execution step 101, as shown in Figure 9, also comprises:
501, for each image collecting distributes identical identification information, and the identification information having distributed and image unification are stored.
In the present embodiment, can be by giving one group of identical sign of one group of image setting taking, when user selects image, the image that is set to identical sign can be called, and while again image being made to background virtualization for user, uses.
The present invention also provides a kind of camera arrangement, need to be provided with single camera, can be used for realizing method flow as shown in Figures 1 to 9, and this installation composition structure, as shown in figure 10, comprising:
Collecting unit 11, the shooting direction for along described single camera, gathers the image in several focusings.
The first computing unit 12, for calculating according to the image having collected, obtains each self-corresponding depth map of each image.
The first determining unit 13, for the focus area of determining that user selects in view-finder.
Selected cell 14, compares for the local definition by each image focus area, selects an image that local definition is the highest as pending image.
Virtualization processing unit 15, for according to the depth map of pending image, carries out virtualization processing to the image except described focus area in pending image, obtains Target Photo.
Output unit 16, for by described Target Photo output, checks for user.
Optionally, described device also needs to arrange electro-motor, and described single camera can moving lens under electrical motor driven.
Described collecting unit 11, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings; When described single camera rests on arbitrary focusing, gather image.
Optionally, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
Optionally, as shown in figure 11, also comprise:
Division unit 21, for carrying out net region division to the image having collected; Wherein, the net region dividing mode that the image each having been collected is used is consistent.
The second computing unit 22, for calculating the region definition of each net region.
The second determining unit 23, position, shape and the area of the focus area of selecting for definite user in view-finder.
The 3rd determining unit 24, for according to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determines goal-focus region.
The 4th determining unit 25, for determining that each image can cover a net region or a plurality of net region in described goal-focus region.
The 5th determining unit 26, for the local definition using the region definition sum of the region definition of a fixed net region or fixed a plurality of net regions as image focus area.
Optionally, as shown in figure 12, this device also comprises:
Sign allocation units 31, are used to each image collecting to distribute identical identification information.
Memory cell 32, for storing the identification information having distributed and image unification.
A kind of camera arrangement that the embodiment of the present invention provides, along camera direction, the image in view-finder in some focusings gathers and calculates, and obtains each self-corresponding depth map of each image.And, when user selects the focus area of view-finder, definition to each image focus area compares, select image that definition is the highest as pending image, according to the depth map of pending image, image beyond focus area in pending image is carried out to virtualization processing, obtain the picture that user wants.The method that need to repeatedly take pictures based on a plurality of focus area repetitive operation electronic equipments than prior art user, technical solution of the present invention only needs multiple images of disposable shooting, then by user, select focus area to carry out follow-up virtualization processing, in this process user only need to complete once take action just can be to image in all focus areas select, operate comparatively easy.And, can determine focus area according to user's selection, improved user's experience.
The embodiment of the present invention also provides a kind of electronic equipment, as shown in figure 13, be provided with single camera 41, processor 42, memory 43, input/output interface 44, described memory 43 stores computer program, and described processor 42 calls described computer program to control described single camera 41 and input/output interface 44.Modules communicates by bus.Above modules can be used for realizing method flow as shown in Figures 1 to 9.
Described single camera 41, for along taking direction, gathers the image in several focusings.
Described processor 41, for calculating according to the image having collected, obtains each self-corresponding depth map of each image; Determine the focus area that user selects in view-finder; By the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image; According to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo.
Input and output connect 44, for by described Target Photo output, for user, check.
Described memory 43 is for the image in several focusings of storage of collected, each self-corresponding depth map of each image, Target Photo.
Optionally, described electronic equipment is also provided with electro-motor.
Described processor 42, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings.
Described single camera 41, during also for a focusing in office, gathers image.
Optionally, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
Optionally, described processor 42 is also for the image having collected is carried out to net region division, and calculates the region definition of each net region; Wherein, the net region dividing mode that the image each having been collected is used is consistent; Determine focus area that user selects position, shape and the area in view-finder; According to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determine goal-focus region; Determine a net region or a plurality of net region that in each image, can cover described goal-focus region; Using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions.
Described memory 43, also for the region definition of each net region.
Optionally, described processor 42 is also used to each image collecting to distribute identical identification information.
Described memory 43, also for storing the identification information having distributed and image unification.
The embodiment of the present invention provide for a kind of electric terminal of taking pictures, along camera direction, the image in view-finder in some focusings gathers and calculates, and obtains each self-corresponding depth map of each image.And, when user selects the focus area of view-finder, definition to each image focus area compares, select image that definition is the highest as pending image, according to the depth map of pending image, image beyond focus area in pending image is carried out to virtualization processing, obtain the picture that user wants.The method that need to repeatedly take pictures based on a plurality of focus area repetitive operation electronic equipments than prior art user, technical solution of the present invention only needs multiple images of disposable shooting, then by user, select focus area to carry out follow-up virtualization processing, in this process user only need to complete once take action just can be to image in all focus areas select, operate comparatively easy.And, can determine focus area according to user's selection, improved user's experience.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (15)

1. a photographic method, is characterized in that, is applied to the electric terminal of single camera, comprising:
Shooting direction along described single camera, gathers the image in several focusings;
According to the image having collected, calculate, obtain each self-corresponding depth map of each image;
Determine the focus area that user selects in view-finder;
By the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image;
According to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo;
By described Target Photo output, for user, check.
2. method according to claim 1, is characterized in that, described single camera can moving lens under electrical motor driven;
, along user's shooting direction, the image gathering in several focusings comprises:
Described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings;
When described single camera rests on arbitrary focusing, gather image.
3. method according to claim 2, is characterized in that, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
4. method according to claim 1, is characterized in that, before the focus area of selecting, also comprises described definite user in view-finder:
The image having collected is carried out to net region division, and calculate the region definition of each net region; Wherein, the net region dividing mode that the image each having been collected is used is consistent;
In the described local definition by focus area in to each image, compare, select an image that local definition is the highest as before pending image, also comprise:
Determine focus area that user selects position, shape and the area in view-finder;
According to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determine goal-focus region;
Determine a net region or a plurality of net region that in each image, can cover described goal-focus region;
Using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions.
5. according to the method described in claim 1 to 4 any one, it is characterized in that, in the described shooting direction along user, after gathering the image in several focusings, also comprise:
For each image collecting distributes identical identification information, and the identification information having distributed and image unification are stored.
6. a camera arrangement, is characterized in that, is provided with single camera, comprising:
Collecting unit, the shooting direction for along described single camera, gathers the image in several focusings;
The first computing unit, for calculating according to the image having collected, obtains each self-corresponding depth map of each image;
The first determining unit, for the focus area of determining that user selects in view-finder;
Selected cell, compares for the local definition by each image focus area, selects an image that local definition is the highest as pending image;
Virtualization processing unit, for according to the depth map of pending image, carries out virtualization processing to the image except described focus area in pending image, obtains Target Photo;
Output unit, for by described Target Photo output, checks for user.
7. device according to claim 6, is characterized in that, described device also comprises electro-motor, and described single camera can moving lens under electrical motor driven;
Described collecting unit, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings; When described single camera rests on arbitrary focusing, gather image.
8. device according to claim 7, is characterized in that, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
9. device according to claim 6, is characterized in that, also comprises:
Division unit, for carrying out net region division to the image having collected; Wherein, the net region dividing mode that the image each having been collected is used is consistent;
The second computing unit, for calculating the region definition of each net region;
The second determining unit, position, shape and the area of the focus area of selecting for definite user in view-finder;
The 3rd determining unit, for according to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determines goal-focus region;
The 4th determining unit, for determining that each image can cover a net region or a plurality of net region in described goal-focus region;
The 5th determining unit, for the local definition using the region definition sum of the region definition of a fixed net region or fixed a plurality of net regions as image focus area.
10. according to the device described in claim 6 to 9 any one, it is characterized in that, also comprise:
Sign allocation units, are used to each image collecting to distribute identical identification information;
Memory cell, for storing the identification information having distributed and image unification.
11. 1 kinds of electronic equipments, it is characterized in that, be provided with single camera, processor, memory, input/output interface, described memory stores has computer program, and described processor calls described computer program to control described single camera and input/output interface;
Described single camera, for along taking direction, gathers the image in several focusings;
Described processor, for calculating according to the image having collected, obtains each self-corresponding depth map of each image; Determine the focus area that user selects in view-finder; By the local definition of focus area in each image is compared, select an image that local definition is the highest as pending image; According to the depth map of pending image, the image except described focus area in pending image is carried out to virtualization processing, obtain Target Photo;
Input/output interface, for by described Target Photo output, checks for user;
Described memory is for image, each self-corresponding depth map of each image, Target Photo in several focusings of storage of collected.
12. electric terminals according to claim 11, is characterized in that, are also provided with electro-motor;
Described processor, also for described electro-motor is configured to different current values, so that the camera lens of described single camera carries out respectively imaging in several focusings;
Described single camera, during also for a focusing in office, gathers image.
13. electric terminals according to claim 12, is characterized in that, described several focusings at least comprise two focusings, the poor predetermined threshold value that is not less than of object distance of described two focusings.
14. electric terminals according to claim 11, is characterized in that, described processor is also for the image having collected is carried out to net region division, and calculate the region definition of each net region; Wherein, the net region dividing mode that the image each having been collected is used is consistent; Determine focus area that user selects position, shape and the area in view-finder; According to described position, shape and area and the width ratio relation and the height ratio relation that have gathered image and described view-finder, determine goal-focus region; Determine a net region or a plurality of net region that in each image, can cover described goal-focus region; Using the local definition of region definition sum focus area in image of the region definition of a fixed net region or fixed a plurality of net regions;
Described memory, also for the region definition of each net region.
15. according to claim 11 to the electric terminal described in 14 any one, it is characterized in that, described processor is also used to each image collecting to distribute identical identification information;
Described memory, also for storing the identification information having distributed and image unification.
CN201410291156.XA 2014-06-25 2014-06-25 Photographing method and device and electronic equipment CN104104869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410291156.XA CN104104869A (en) 2014-06-25 2014-06-25 Photographing method and device and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410291156.XA CN104104869A (en) 2014-06-25 2014-06-25 Photographing method and device and electronic equipment
PCT/CN2015/071663 WO2015196802A1 (en) 2014-06-25 2015-01-27 Photographing method and apparatus, and electronic device

Publications (1)

Publication Number Publication Date
CN104104869A true CN104104869A (en) 2014-10-15

Family

ID=51672638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410291156.XA CN104104869A (en) 2014-06-25 2014-06-25 Photographing method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN104104869A (en)
WO (1) WO2015196802A1 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408687A (en) * 2014-10-31 2015-03-11 酷派软件技术(深圳)有限公司 Picture playing method and device
CN104680563A (en) * 2015-02-15 2015-06-03 青岛海信移动通信技术股份有限公司 Image data generating method and device
CN104680478A (en) * 2015-02-15 2015-06-03 青岛海信移动通信技术股份有限公司 Selection method and device for target image data
CN105160695A (en) * 2015-06-30 2015-12-16 广东欧珀移动通信有限公司 Picture processing method and mobile terminal
WO2015196802A1 (en) * 2014-06-25 2015-12-30 华为技术有限公司 Photographing method and apparatus, and electronic device
CN105654463A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Image processing method applied to continuous shooting process and apparatus thereof
CN105827980A (en) * 2016-05-04 2016-08-03 广东欧珀移动通信有限公司 Focusing control method and device, imaging control method and device as well as electronic device
CN106339476A (en) * 2016-08-30 2017-01-18 北京寺库商贸有限公司 Image processing method and system
CN106550184A (en) * 2015-09-18 2017-03-29 中兴通讯股份有限公司 Photo processing method and device
CN107277354A (en) * 2017-07-03 2017-10-20 努比亚技术有限公司 One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium
CN107566723A (en) * 2017-09-13 2018-01-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107809583A (en) * 2017-10-25 2018-03-16 努比亚技术有限公司 Take pictures processing method, mobile terminal and computer-readable recording medium
CN108234865A (en) * 2017-12-20 2018-06-29 深圳市商汤科技有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN108305215A (en) * 2018-01-23 2018-07-20 北京易智能科技有限公司 A kind of image processing method and system based on intelligent mobile terminal
CN108320263A (en) * 2017-12-29 2018-07-24 维沃移动通信有限公司 A kind of method, device and mobile terminal of image procossing
WO2018214077A1 (en) * 2017-05-24 2018-11-29 深圳市大疆创新科技有限公司 Photographing method and apparatus, and image processing method and apparatus
CN109474780A (en) * 2017-09-07 2019-03-15 虹软科技股份有限公司 A kind of method and apparatus for image procossing
CN109710148A (en) * 2018-12-19 2019-05-03 广州文远知行科技有限公司 Selection method, device, computer equipment and the storage medium of image labeling frame
CN110602397A (en) * 2019-09-16 2019-12-20 RealMe重庆移动通信有限公司 Image processing method, device, terminal and storage medium
CN110691191A (en) * 2019-09-16 2020-01-14 RealMe重庆移动通信有限公司 Image blurring method and device, computer storage medium and terminal equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS578841A (en) * 1980-05-12 1982-01-18 Control Data Corp Network access device
US20020085747A1 (en) * 1997-10-21 2002-07-04 Takayuki Yoshigahara Image processing apparatus and method, image capturing apparatus, and information provision medium
US20080039081A1 (en) * 2005-08-08 2008-02-14 Huawei Technologies Co., Ltd. Method for implementing ip multimedia subsystem registration
CN101500133A (en) * 2009-02-27 2009-08-05 中兴通讯股份有限公司 Camera control method and system for visual user equipment
US20100079608A1 (en) * 2008-09-30 2010-04-01 Earl Quong Wong Method And Apparatus For Super-Resolution Imaging Using Digital Imaging Devices
US20100104195A1 (en) * 2008-10-28 2010-04-29 Asustek Computer Inc. Method for Identifying Dimensions of Shot Subject
WO2011029342A1 (en) * 2009-09-11 2011-03-17 中兴通讯股份有限公司 Method, device and system for identifying type of public user identity (pui)
US8284258B1 (en) * 2008-09-18 2012-10-09 Grandeye, Ltd. Unusual event detection in wide-angle video (based on moving object trajectories)
US20120257086A1 (en) * 2009-11-26 2012-10-11 Hitachi, Ltd. Imaging system, imaging method, and storage medium storing imaging program
CN102891966A (en) * 2012-10-29 2013-01-23 珠海全志科技股份有限公司 Focusing method and device for digital imaging device
CN103207664A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Image processing method and equipment
CN103491309A (en) * 2013-10-10 2014-01-01 珠海市魅族科技有限公司 Image data acquisition method and terminal
CN103634588A (en) * 2012-08-27 2014-03-12 联想(北京)有限公司 Image composition method and electronic apparatus
CN103702032A (en) * 2013-12-31 2014-04-02 华为技术有限公司 Image processing method, device and terminal equipment
CN103826064A (en) * 2014-03-06 2014-05-28 华为技术有限公司 Image processing method, device and handheld electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104869A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Photographing method and device and electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS578841A (en) * 1980-05-12 1982-01-18 Control Data Corp Network access device
US20020085747A1 (en) * 1997-10-21 2002-07-04 Takayuki Yoshigahara Image processing apparatus and method, image capturing apparatus, and information provision medium
US20080039081A1 (en) * 2005-08-08 2008-02-14 Huawei Technologies Co., Ltd. Method for implementing ip multimedia subsystem registration
US8284258B1 (en) * 2008-09-18 2012-10-09 Grandeye, Ltd. Unusual event detection in wide-angle video (based on moving object trajectories)
US20100079608A1 (en) * 2008-09-30 2010-04-01 Earl Quong Wong Method And Apparatus For Super-Resolution Imaging Using Digital Imaging Devices
US20100104195A1 (en) * 2008-10-28 2010-04-29 Asustek Computer Inc. Method for Identifying Dimensions of Shot Subject
CN101500133A (en) * 2009-02-27 2009-08-05 中兴通讯股份有限公司 Camera control method and system for visual user equipment
WO2011029342A1 (en) * 2009-09-11 2011-03-17 中兴通讯股份有限公司 Method, device and system for identifying type of public user identity (pui)
US20120257086A1 (en) * 2009-11-26 2012-10-11 Hitachi, Ltd. Imaging system, imaging method, and storage medium storing imaging program
CN103207664A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Image processing method and equipment
CN103634588A (en) * 2012-08-27 2014-03-12 联想(北京)有限公司 Image composition method and electronic apparatus
CN102891966A (en) * 2012-10-29 2013-01-23 珠海全志科技股份有限公司 Focusing method and device for digital imaging device
CN103491309A (en) * 2013-10-10 2014-01-01 珠海市魅族科技有限公司 Image data acquisition method and terminal
CN103702032A (en) * 2013-12-31 2014-04-02 华为技术有限公司 Image processing method, device and terminal equipment
CN103826064A (en) * 2014-03-06 2014-05-28 华为技术有限公司 Image processing method, device and handheld electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
_: "(汇总)焦深与景深的含义与区别", 《百度文库》 *
_: "深度图像", 《百度文库》 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196802A1 (en) * 2014-06-25 2015-12-30 华为技术有限公司 Photographing method and apparatus, and electronic device
CN104408687A (en) * 2014-10-31 2015-03-11 酷派软件技术(深圳)有限公司 Picture playing method and device
CN104408687B (en) * 2014-10-31 2018-07-27 酷派软件技术(深圳)有限公司 A kind of method and device of picture playing
CN104680563A (en) * 2015-02-15 2015-06-03 青岛海信移动通信技术股份有限公司 Image data generating method and device
CN104680478A (en) * 2015-02-15 2015-06-03 青岛海信移动通信技术股份有限公司 Selection method and device for target image data
CN104680478B (en) * 2015-02-15 2018-08-21 青岛海信移动通信技术股份有限公司 A kind of choosing method and device of destination image data
US9769379B2 (en) 2015-02-15 2017-09-19 Hisense Mobile Communications Technology Co., Ltd. Method and apparatus for selecting target image
US9852508B2 (en) 2015-02-15 2017-12-26 Hisense Mobile Communications Technology Co., Ltd. Image data generating method and apparatus
CN104680563B (en) * 2015-02-15 2018-06-01 青岛海信移动通信技术股份有限公司 The generation method and device of a kind of image data
CN105160695A (en) * 2015-06-30 2015-12-16 广东欧珀移动通信有限公司 Picture processing method and mobile terminal
CN106550184A (en) * 2015-09-18 2017-03-29 中兴通讯股份有限公司 Photo processing method and device
CN105654463A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Image processing method applied to continuous shooting process and apparatus thereof
CN105827980B (en) * 2016-05-04 2018-01-19 广东欧珀移动通信有限公司 Focusing control method and device, image formation control method and device, electronic installation
CN105827980A (en) * 2016-05-04 2016-08-03 广东欧珀移动通信有限公司 Focusing control method and device, imaging control method and device as well as electronic device
CN106339476B (en) * 2016-08-30 2019-10-29 北京寺库商贸有限公司 A kind of image processing method and system
CN106339476A (en) * 2016-08-30 2017-01-18 北京寺库商贸有限公司 Image processing method and system
WO2018214077A1 (en) * 2017-05-24 2018-11-29 深圳市大疆创新科技有限公司 Photographing method and apparatus, and image processing method and apparatus
CN107277354B (en) * 2017-07-03 2020-04-28 瑞安市智造科技有限公司 Virtual photographing method, virtual photographing terminal and computer readable storage medium
CN107277354A (en) * 2017-07-03 2017-10-20 努比亚技术有限公司 One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium
CN109474780A (en) * 2017-09-07 2019-03-15 虹软科技股份有限公司 A kind of method and apparatus for image procossing
US10803556B2 (en) 2017-09-07 2020-10-13 Arcsoft Corporation Limited Method and apparatus for image processing
CN107566723A (en) * 2017-09-13 2018-01-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107566723B (en) * 2017-09-13 2019-11-19 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer readable storage medium
CN107809583A (en) * 2017-10-25 2018-03-16 努比亚技术有限公司 Take pictures processing method, mobile terminal and computer-readable recording medium
CN108234865A (en) * 2017-12-20 2018-06-29 深圳市商汤科技有限公司 Image processing method, device, computer readable storage medium and electronic equipment
WO2019119986A1 (en) * 2017-12-20 2019-06-27 深圳市商汤科技有限公司 Image processing method and device, computer readable storage medium, and electronic apparatus
CN108320263A (en) * 2017-12-29 2018-07-24 维沃移动通信有限公司 A kind of method, device and mobile terminal of image procossing
CN108305215A (en) * 2018-01-23 2018-07-20 北京易智能科技有限公司 A kind of image processing method and system based on intelligent mobile terminal
CN109710148A (en) * 2018-12-19 2019-05-03 广州文远知行科技有限公司 Selection method, device, computer equipment and the storage medium of image labeling frame
CN110602397A (en) * 2019-09-16 2019-12-20 RealMe重庆移动通信有限公司 Image processing method, device, terminal and storage medium
CN110691191A (en) * 2019-09-16 2020-01-14 RealMe重庆移动通信有限公司 Image blurring method and device, computer storage medium and terminal equipment

Also Published As

Publication number Publication date
WO2015196802A1 (en) 2015-12-30

Similar Documents

Publication Publication Date Title
US10334153B2 (en) Image preview method, apparatus and terminal
US10311649B2 (en) Systems and method for performing depth based image editing
US10334151B2 (en) Phase detection autofocus using subaperture images
US9521320B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
CN104618640B (en) A kind of photographic method and device
CN107613199B (en) Blurred photo generation method and device and mobile terminal
US10713472B2 (en) Face location tracking method, apparatus, and electronic device
US9456141B2 (en) Light-field based autofocus
WO2019105154A1 (en) Image processing method, apparatus and device
KR101926490B1 (en) Apparatus and method for processing image
US9153061B2 (en) Segmentation of 3D point clouds for dense 3D modeling
US8989517B2 (en) Bokeh amplification
US9756241B2 (en) Image capturing apparatus
CN104486537B (en) Optical field acquisition control method and device
WO2017016030A1 (en) Image processing method and terminal
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
US8606042B2 (en) Blending of exposure-bracketed images using weight distribution functions
US10015469B2 (en) Image blur based on 3D depth information
CN104685538B (en) System and method for reducing the noise in video flowing
US20140176592A1 (en) Configuring two-dimensional image processing based on light-field parameters
US9253377B2 (en) Image processing device and image processing system where de-mosaic image is generated based on shift amount estimation of pixels of captured images
KR101893047B1 (en) Image processing method and image processing device
JP2018535442A (en) Phase detection autofocus noise reduction
US8860816B2 (en) Scene enhancements in off-center peripheral regions for nonlinear lens geometries
US8811769B1 (en) Extended depth of field and variable center of perspective in light-field processing

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141015

RJ01 Rejection of invention patent application after publication