CN106161945A - Take pictures treating method and apparatus - Google Patents
Take pictures treating method and apparatus Download PDFInfo
- Publication number
- CN106161945A CN106161945A CN201610621457.3A CN201610621457A CN106161945A CN 106161945 A CN106161945 A CN 106161945A CN 201610621457 A CN201610621457 A CN 201610621457A CN 106161945 A CN106161945 A CN 106161945A
- Authority
- CN
- China
- Prior art keywords
- taking pictures
- image
- preview
- focusing
- tracks
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Focusing (AREA)
Abstract
The embodiment of the invention discloses one to take pictures treating method and apparatus, relate to technical field of image processing.Wherein, the method includes: obtain the tracking focusing object that user selects in preview interface of taking pictures;In the depth map generated under preview state of taking pictures, obtaining the described image information following the tracks of focusing object, wherein, described depth map is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;When the preview image of taking pictures of display changes in preview interface of taking pictures described in detecting, according to the described image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.The technical scheme of the embodiment of the present invention achieves when taking pictures preview image change, remains to subject desired to user exactly and carries out real-time tracking focusing, improves the experience of user.
Description
Technical field
The present embodiments relate to image processing techniques, particularly relate to one and take pictures treating method and apparatus.
Background technology
Along with the development of the Internet, computer and communication technology, the function of the intelligent terminal such as such as smart mobile phone is the most more come
The most powerful, the degree of dependence of intelligent terminal is also being continuously increased by user, such as inquires about weather forecast, shooting photo etc..
Generally, user is when utilizing intelligent terminal to shoot, and intelligent terminal can be carried out according to the picture of photographic head shooting
Focusing, and defocused preview screen will be shown in display interface.
But, during inventor realizes the present invention, find that the defect of the present invention is: when intelligent terminal is for taking the photograph
As the picture of head shooting completes defocused, it is subjected to displacement change at subject, or the movement of intelligent terminal causes shooting
Picture change time, it is right that intelligent terminal cannot change according to subject change of position in shooting picture exactly in real time
Burnt position.At this time, it may be necessary to again the picture of photographic head shooting is carried out focusing process, but, may to defocused shooting picture
Will not focus by subject desired to user exactly so that the focusing demand of user's reality is difficult to be satisfied.
Summary of the invention
In view of this, the embodiment of the present invention provides one to take pictures treating method and apparatus, existing to solve intelligent terminal
The problem that focusing technology can not meet user's actual need.
First aspect, embodiments provides one and takes pictures processing method, comprising:
The tracking focusing object that user selects is obtained in preview interface of taking pictures;
In the depth map generated under preview state of taking pictures, obtain the described image information following the tracks of focusing object, wherein, institute
State depth map corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;
When in preview interface of taking pictures described in detecting, the preview image of taking pictures of display changes, right according to described tracking
The image information of burnt object, carries out real-time tracking focusing to the preview image of taking pictures changed.
Further, the tracking focusing object obtaining user's selection in preview interface of taking pictures includes:
In preview interface of taking pictures, setting screen position is selected according to user, obtain corresponding with described setting screen position
Target screen pixel coordinate;
Corresponding between screen resolution according to described preview interface of taking pictures and the image resolution ratio of preview image of taking pictures
Relation, takes pictures in preview image described in acquisition, the target image pixel coordinate corresponding with described target screen pixel coordinate;
Photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is defined as user's choosing
The tracking focusing object selected.
Optionally, in the depth map generated under preview state of taking pictures, obtain the described image information following the tracks of focusing object
Including:
Obtain the target image pixel corresponding with described target image pixel coordinate;
According to depth of view information corresponding with described target image pixel in depth map, determine that described focusing object of following the tracks of arrives
Reaching the distance of taking pictures of cam lens, wherein, described depth of view information includes that subject that image slices vegetarian refreshments associates is with described
Range information between cam lens;
By in described depth map, range information and the described difference taken pictures between distance meet the image setting threshold condition
Pixel and described target image pixel collect in object pixel is grouped;
In being grouped by described object pixel, image pixel coordinates continuous print image slices vegetarian refreshments is identified as described tracking focusing thing
The image information of body.
Further, according to the described image information following the tracks of focusing object, the preview image of taking pictures changed is carried out
Real-time tracking focusing includes:
According to the described image information following the tracks of focusing object, at the renewal scape corresponding with the preview image of taking pictures changed
In deep figure, identify described tracking focusing object;
Follow the tracks of focusing object image pixel coordinates in described renewal depth map according to described, determine that described tracking is focused
Object arrives the renewal distance of described cam lens;
The corresponding pass between distance and the focusing motor displacement of cam lens is arrived according to the subject prestored
System, and described renewal distance, determine the adjustment shift position of focusing motor;
Control described focusing motor according to described adjustment shift position to move, pre-to realize taking pictures of changing
Image of looking at carries out real-time tracking focusing.
Optionally, after controlling described focusing motor according to described adjustment shift position and moving, also include:
Trigger automatic focusing function, described preview image of taking pictures is carried out exact focus.
Further, before in preview interface of taking pictures described in detecting, the preview image of taking pictures of display changes, also
Including:
The described tracking focusing object selected according to user, preview image that display in described preview interface of taking pictures is taken pictures
Focus.
Optionally, the depth map generated under preview state of taking pictures includes:
Carried out taking pictures preview by dual camera, to obtain depth map, and present in described preview interface of taking pictures and take pictures
Preview image.
Second aspect, embodiments provides one and takes pictures processing means, including:
First acquisition module, for obtaining the tracking focusing object that user selects in preview interface of taking pictures;
Second acquisition module, in the depth map generated under preview state of taking pictures, obtains described tracking focusing object
Image information, wherein, described depth map with in described preview interface of taking pictures display preview image of taking pictures corresponding;
Follow the tracks of Focusing module, change for the preview image of taking pictures of display in preview interface of taking pictures described in detecting
Time, according to the described image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
Further, described first acquisition module includes:
Screen coordinate obtains submodule, for selecting setting screen position in preview interface of taking pictures according to user, obtains
Take the target screen pixel coordinate corresponding with described setting screen position;
Image coordinate obtains submodule, for screen resolution and the preview image of taking pictures of preview interface of taking pictures described in basis
Image resolution ratio between corresponding relation, take pictures in preview image described in acquisition, corresponding with described target screen pixel coordinate
Target image pixel coordinate;
Tracking determines submodule, for by bat corresponding for the described described target image pixel coordinate taken pictures in preview image
It is defined as the tracking focusing object that user selects according to object.
Optionally, described second acquisition module includes:
Pixel obtains submodule, for obtaining the target image pixel corresponding with described target image pixel coordinate;
Distance determines submodule, is used for according to depth of view information corresponding with described target image pixel in depth map, really
Fixed described focusing object of following the tracks of arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes image slices vegetarian refreshments
Range information between subject and the described cam lens of association;
Packet submodule, for by described depth map, range information and the described difference taken pictures between distance meet and set
The image slices vegetarian refreshments determining threshold condition collects in object pixel is grouped with described target image pixel;
Image information identification submodule, image pixel coordinates continuous print image pixel in described object pixel is grouped
Point is identified as the described image information following the tracks of focusing object.
Further, described tracking Focusing module includes:
Focusing object identification submodule, sends out for the preview image of taking pictures of display in preview interface of taking pictures described in detecting
During changing, according to the described image information following the tracks of focusing object, in the renewal corresponding with the preview image of taking pictures changed
In depth map, identify described tracking focusing object;
Update distance and determine submodule, for following the tracks of focusing object image slices in described renewal depth map according to described
Element coordinate, determines that described focusing object of following the tracks of arrives the renewal distance of described cam lens;
Shift position determines submodule, for arriving distance and the focusing horse of cam lens according to the subject prestored
Reach the corresponding relation between displacement, and described renewal distance, determine the adjustment shift position of focusing motor;
Mobile control submodule, moves for controlling described focusing motor according to described adjustment shift position, with reality
Now the preview image of taking pictures changed is carried out real-time tracking focusing.
Optionally, also include:
Precisely Focusing module, is used for triggering automatic focusing function, described preview image of taking pictures is carried out exact focus.
Further, also include:
Display Focusing module, for the described tracking focusing object selected according to user, takes pictures in preview interface to described
The preview image of taking pictures of display is focused.
Optionally, described second acquisition module includes:
Depth map obtains submodule, for being carried out taking pictures preview by dual camera, to obtain depth map, and in described bat
According to preview interface presents preview image of taking pictures;
Obtain submodule, in described depth map, obtain the described image information following the tracks of focusing object, wherein, institute
State depth map corresponding with the preview image of taking pictures of display in described preview interface of taking pictures.
The embodiment of the present invention provide treating method and apparatus of taking pictures, in preview interface of taking pictures obtain user select with
After track focusing object, the depth map generated under preview state of taking pictures obtains the image information following the tracks of focusing object, and in inspection
Measure in preview interface of taking pictures the preview image of taking pictures of display when changing, according to following the tracks of the image information of focusing object,
The preview image of taking pictures of change carries out real-time tracking focusing to tracking focusing object.By obtaining, depth map is followed the tracks of focusing
The image information of object, and in the preview image of taking pictures of change, tracking focusing object is carried out real-time tracking according to image information
The technological means of focusing, it is achieved that when taking pictures preview image change, remain to subject desired to user exactly and carry out
The real-time technique effect following the tracks of focusing so that the focusing demand of user's reality is met, and improves the use body of user
Test.
Accompanying drawing explanation
The flow chart of a kind of processing method of taking pictures that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of a kind of processing method of taking pictures that Fig. 2 provides for the embodiment of the present invention two;
The flow chart of a kind of processing method of taking pictures that Fig. 3 provides for the embodiment of the present invention three;
The flow chart of a kind of processing method of taking pictures that Fig. 4 provides for the embodiment of the present invention four;
The structural representation of a kind of processing means of taking pictures that Fig. 5 provides for the embodiment of the present invention five.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention is illustrate only rather than entire infrastructure in description, accompanying drawing.
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment
The process described as flow chart or method.Although flow chart each step is described as order process, but many of which
Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When it operates
When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible
Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
The flow chart of a kind of processing method of taking pictures that Fig. 1 provides for the embodiment of the present invention one, the method can be by taking pictures
Reason device performs, and wherein this device can be realized by software and/or hardware, typically can be integrated in intelligent terminal.As it is shown in figure 1,
The method includes:
Step 110, the tracking focusing object that acquisition user selects in preview interface of taking pictures.
In the present embodiment, preview interface of taking pictures refers to that intelligent terminal, when taking pictures preview state, is used in display interface
Display photographic head obtains the interface of picture.Wherein, intelligent terminal is chosen as the users such as smart mobile phone, panel computer or camera and holds
That have and there is the smart machine of camera function.After preview state of taking pictures refers to the camera function of unlatching intelligent terminal, do not connecing
Before receiving the photographing instruction that user sends, can be by the state of preview interface preview shooting picture of taking pictures.
Concrete, after can showing, in preview interface of taking pictures, the picture that photographic head shoots, whether real-time monitoring gets
The tracking focusing object that user selects.Wherein, following the tracks of focusing object is the object that user expects focusing place.
More specifically, can be to listen to after user specifically operates, determining and obtain the tracking focusing thing that user selects
Body.Such as, listen to user to take pictures preview interface perform double click operation time, determine obtain user select tracking focusing thing
Body, wherein, following the tracks of focusing object is object corresponding with the screen position obtaining double click operation in preview interface of taking pictures.For another example,
Listen to user when performing slide in preview interface of taking pictures, determine and obtain the tracking focusing object that user selects, wherein,
Following the tracks of focusing object can be object corresponding with the screen position obtaining slide in preview interface of taking pictures.
In step 120, the depth map generated under preview state of taking pictures, obtain the described image letter following the tracks of focusing object
Breath, wherein, described depth map is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures.
Wherein, the depth of field refers to can obtain the imager axis of picture rich in detail at camera lens or other imager forward positions
The object distance scope measured.Depth map refers to the picture with Deep Canvas.Object can not only be obtained by depth map
Body image pixel coordinates in depth map, moreover it is possible to obtain depth of view information, wherein depth of view information can include subject and take the photograph
As the range information between head mirror head and the distance range information etc. of focusing.
Concrete, depth map can be generated by the shooting picture that photographic head obtains under preview state of taking pictures.Now, exist
Preview interface of taking pictures shows preview image of taking pictures.Wherein, preview image of taking pictures is corresponding with the depth map of generation.Can also manage
Solve as preview image of taking pictures identical with the image resolution ratio of depth map, and each image slices vegetarian refreshments and depth map in preview image of taking pictures
In each image slices vegetarian refreshments one_to_one corresponding.
Optionally, the depth map generated under preview state of taking pictures can be particularly as follows: carry out taking pictures pre-by dual camera
Look at, to obtain depth map, and present, in preview interface of taking pictures, preview image of taking pictures.
Concrete, intelligent terminal configures dual camera, after opening camera function, utilizes dual camera to carry out taking pictures pre-
Look at, preview interface of taking pictures shows the preview image of taking pictures that dual camera obtains, and the picture life obtained according to dual camera
Become depth map.Wherein, shooting principle and concrete generation depth map rule the present embodiment of dual camera is not construed as limiting.
Further, after obtaining depth map, depth map obtains the image information following the tracks of focusing object.Wherein, follow the tracks of
The image information of focusing object can be the outer surface information following the tracks of focusing object, the shape information of such as outer surface and appearance
The colouring information etc. in face.
Typically, follow the tracks of, due to what user selected in preview interface of taking pictures, the object that focusing object is not likely to be complete
Body, such as, what user selected is only certain part in subject.Accordingly, it would be desirable to identify the image following the tracks of focusing object
Information, the most complete outer surface information following the tracks of focusing object, just can realize the real-time tracking focusing following the tracks of focusing object.
Optionally, in depth map, the position relationship of each subject is taken pictures in preview image with what preview interface of taking pictures showed
The position relationship of each subject is identical, can determine that tracking is right according to following the tracks of focusing object position in preview interface of taking pictures
Burnt object position in depth map.
Also optional, after the tracking focusing object that user selects can be obtained in preview interface of taking pictures, right according to following the tracks of
Burnt object screen pixels coordinate in preview interface of taking pictures and the screen resolution of preview interface of taking pictures and preview image of taking pictures
Image resolution ratio between corresponding relation, determine tracking focusing object image pixel coordinates in preview image of taking pictures, enter
And determine tracking focusing object image pixel coordinates in depth map.
Concrete, the mode obtaining the image information following the tracks of focusing object in depth map may is that in depth map, obtains
Take and follow the tracks of focusing each image slices vegetarian refreshments corresponding to object, and determine the subject and cam lens that each image slices vegetarian refreshments associates
Between range information, the numerical value giving tacit consent to each range information is equal, and using this range information as follow the tracks of focusing object to image
The distance of taking pictures of head mirror head, by poor for range information corresponding with other image slices vegetarian refreshments in depth map for distance of taking pictures, will be poor
Value meets and sets threshold condition (such as: 1cm or 2cm etc.) and close other image slices vegetarian refreshments of pixel coordinate and follow the tracks of focusing
The image slices vegetarian refreshments of object is as the image information following the tracks of focusing object.For another example, obtain in depth map and follow the tracks of focusing object correspondence
The colouring information of each image slices vegetarian refreshments, by other image slices vegetarian refreshments in depth map with the image pixel following the tracks of focusing object
Select and be similar in color and image slices vegetarian refreshments that pixel coordinate is close and follow the tracks of the image slices vegetarian refreshments of focusing object as following the tracks of focusing thing
The image information of body.The image information following the tracks of focusing object now obtained is the complete image information following the tracks of focusing object.
When step 130, the preview image of taking pictures shown in preview interface of taking pictures described in detecting change, according to institute
State the image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
Exemplary, detect whether the preview image of taking pictures of display in preview interface of taking pictures changes in real time.
Wherein, concrete detection method may is that and detects the image pixel point taking pictures in preview image in real time, when
After image slices vegetarian refreshments changes, determine that in preview interface of taking pictures, the preview image of taking pictures of display changes.Such as, detect
After the color that image slices vegetarian refreshments in preview image of taking pictures shows changes, can confirm that as association display at this image slices vegetarian refreshments
Content change, and then determine that preview image of taking pictures changes.
Further, when preview image of taking pictures changes, corresponding depth map also can change, and now, it is right to follow the tracks of
Burnt object is likely to change in the position of take pictures preview image and depth map.But, follow the tracks of the image letter of focusing object
Breath is along with the change of depth map, significant change will not to occur.Therefore, it can according to the image information following the tracks of focusing object
Tracking focusing object after identifying change in location in the depth map updated.Wherein, according to the image letter following the tracks of focusing object
Breath, identifies tracking focusing object in the depth map updated.Concrete, follow the tracks of recognition methods the present embodiment of focusing object not
It is construed as limiting.Such as, the image information following the tracks of focusing object is to follow the tracks of each image pixel point set that focusing object is corresponding.Specifically
, at least one subject can be identified, and at least one subject in the depth map updated, select with
Follow the tracks of the subject that focusing each image pixel point set corresponding to object is mated most, identify as in the depth map updated
Tracking focusing object.
Further, after depth map identifies the focusing object of the tracking after change in location, according to following the tracks of focusing object
Position in depth map, confirms this tracking focusing object in the preview image of taking pictures after change, and then in preview graph of taking pictures
In Xiang, this tracking focusing object is tracked focusing.Wherein, concrete focusing method the present embodiment is not construed as limiting.
Optionally, it is tracked defocused to following the tracks of focusing object, the preview of taking pictures that can show in preview interface of taking pictures
In image, display focusing process after picture so that user determine current focusing process intuitively after preview graph of taking pictures
Seem no for the desired picture of taking pictures of user.
The processing method of taking pictures that the embodiment of the present invention provides, obtains the tracking focusing that user selects in preview interface of taking pictures
After object, the depth map generated obtains the image information following the tracks of focusing object, and bat detected under preview state of taking pictures
According to when in preview interface, the preview image of taking pictures of display changes, according to the image information of tracking focusing object, in change
Take pictures and preview image carries out real-time tracking focusing to following the tracks of focusing object.By obtaining, depth map is followed the tracks of focusing object
Image information, and in the preview image of taking pictures of change, identify tracking focusing object according to image information, it is achieved that taking pictures
During preview image change, remain to subject desired to user exactly and carry out real-time tracking focusing so that user's reality
Focusing demand is met, and improves the experience of user.
On the basis of above-described embodiment, in preview interface of taking pictures described in detecting, the preview image of taking pictures of display occurs
Before change, specifically can also include: the described tracking focusing object selected according to user, to aobvious in described preview interface of taking pictures
The preview image of taking pictures shown is focused.
Concrete, in preview interface of taking pictures, preview image of taking pictures display is focused, and focusing is positioned at tracking
In focusing object, in order to user can watch whether defocused preview image of taking pictures is desired picture of taking pictures.Optionally, if
User's viewing is not desired picture of taking pictures to defocused preview image of taking pictures, then user can be again in preview interface of taking pictures
Middle selection follows the tracks of focusing object, and intelligent terminal, after obtaining the tracking focusing object that user selects, confirms that following the tracks of focusing object exists
Image information in depth map, and according to following the tracks of focusing object, preview image of taking pictures is focused.
Embodiment two
The flow chart of a kind of processing method of taking pictures that Fig. 2 provides for the embodiment of the present invention two.The present embodiment is with above-mentioned enforcement
Embody based on example.In the present embodiment, the tracking focusing object that user selects will be obtained in preview interface of taking pictures
Particularly as follows: setting screen position is selected in preview interface of taking pictures according to user, obtain corresponding with described setting screen position
Target screen pixel coordinate;The image resolution ratio of the screen resolution according to described preview interface of taking pictures and preview image of taking pictures
Between corresponding relation, take pictures in preview image described in acquisition, the target image picture corresponding with described target screen pixel coordinate
Element coordinate;Photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is defined as user select
Tracking focusing object.With reference to Fig. 2, the method that the present embodiment provides includes:
Step 210, according to user in preview interface of taking pictures to setting screen position select, obtain with described setting screen
The target screen pixel coordinate that position is corresponding.
Exemplary, the screen position that acquisition user selects in preview interface of taking pictures is as setting screen position.Wherein,
The setting screen position that user selects is positioned at some subject taken pictures in preview image.
Concrete, one piece of region that acquisition user clicks in preview interface of taking pictures is as setting screen position.Can also
It is to obtain user and in preview interface of taking pictures, slide the one piece of region drawn a circle to approve as setting screen position.
Further, according to setting screen position, preview interface of taking pictures obtains the screen corresponding with setting screen position
Curtain pixel coordinate is as target screen pixel coordinate.
Concrete, the screen pixels coordinate range of preview interface of taking pictures is relevant with the screen resolution of preview interface of taking pictures,
The screen resolution of preview interface of taking pictures is identical with the screen resolution of intelligent terminal's display screen.Such as, take pictures preview interface
Screen resolution be 1280 × 800, then the screen pixels coordinate range of preview interface of taking pictures is (0,0) to (1279,799),
And the corresponding screen pixels point of each screen pixels coordinate.
Optionally, in preview interface of taking pictures, according to setting screen position, obtain in screen pixels coordinate range and set
Determine the screen pixels coordinate that screen position is corresponding.
Step 220, according to described in take pictures the screen resolution of preview interface and preview image of taking pictures image resolution ratio it
Between corresponding relation, take pictures in preview image described in acquisition, the target image pixel corresponding with described target screen pixel coordinate
Coordinate.
Concrete, the image pixel coordinates scope of preview image of taking pictures is relevant with the image resolution ratio of preview image of taking pictures,
The image resolution ratio of preview image of taking pictures is relevant with the resolution of photographic head and image size, such as, such as, and preview image of taking pictures
Image resolution ratio can be 1024 × 768, then the image pixel coordinates scope of preview image of taking pictures for (0,0) to (1023,
, and the corresponding image slices vegetarian refreshments of each image pixel coordinates 767).
Further, if wanting to clearly show that, in preview interface of taking pictures, preview image of taking pictures, then it needs to be determined that take pictures pre-
Look at the corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures at interface.Such as, take pictures preview interface
Screen resolution be 1024 × 768, the image resolution ratio of preview image of taking pictures is 1024 × 768, preview image of now taking pictures
In each image pixel coordinates and each screen pixels coordinate one_to_one corresponding taken pictures in preview interface.For another example, take pictures preview interface
Screen resolution be 1024 × 720, the image resolution ratio of preview image of taking pictures is 1280 × 960, at this time, it may be necessary to determine and take pictures
Corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures of preview interface, to ensure to differentiate at screen
Rate be 1024 × 720 preview interface of taking pictures in resolution of displayed images be 1280 × 960 preview image of taking pictures.Wherein, tool
The corresponding relation of body determines that rule the present embodiment is not construed as limiting.
Exemplary, after determining the target screen pixel coordinate of setting screen position that user selects, pre-according to taking pictures
Look at the corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures at interface, in preview image of taking pictures,
Determine the image pixel coordinates corresponding with target screen pixel coordinate, be designated as target image pixel coordinate.
Step 230, photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is determined
The tracking focusing object selected for user.
Exemplary, in preview image of taking pictures, determine the target image pixel that target image pixel coordinate is corresponding, will
The tracking focusing object that the photo-object that each target image pixel correspondence shows selects as user.
It should be noted that the setting screen position selected in preview interface of taking pictures due to user be probably one complete
Subject, it is also possible to certain part in complete subject, so, the tracking that now determines focusing object may
It it is a complete object, it is also possible to some part in complete object.
In step 240, the depth map generated under preview state of taking pictures, obtain the described image letter following the tracks of focusing object
Breath, wherein, described depth map is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures.
When step 250, the preview image of taking pictures shown in preview interface of taking pictures described in detecting change, according to institute
State the image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
The technical scheme of the present embodiment, the setting screen position selected by obtaining user in preview interface of taking pictures determines
Target screen pixel coordinate, according between screen resolution and the image resolution ratio of preview image of taking pictures of preview interface of taking pictures
Corresponding relation, determines the target image pixel coordinate that target screen pixel coordinate is corresponding, and target image pixel coordinate is corresponding
Photo-object be defined as follow the tracks of focusing object, can determine accurately tracking focusing object.Meanwhile, under preview state of taking pictures
Generate depth map in obtain follow the tracks of focusing object image information, and in preview interface of taking pictures being detected display take pictures pre-
When image of looking at changes, according to the image information of tracking focusing object, to following the tracks of focusing in the preview image of taking pictures of change
Object carries out real-time tracking focusing, it is achieved that when taking pictures preview image change, remain to desired being shot to user exactly
Object carries out real-time tracking focusing so that the focusing demand of user's reality is met, and improves the experience of user.
Embodiment three
The flow chart of a kind of processing method of taking pictures that Fig. 3 provides for the embodiment of the present invention three.The present embodiment is with above-mentioned enforcement
Embody based on example.In the present embodiment, in the depth map that will generate under preview state of taking pictures, described tracking is obtained
The image information of focusing object is particularly as follows: obtain the target image pixel corresponding with described target image pixel coordinate;According to
Depth of view information corresponding with described target image pixel in depth map, determines that described focusing object of following the tracks of arrives cam lens
Distance of taking pictures, wherein, described depth of view information include subject and described cam lens that image slices vegetarian refreshments associates it
Between range information;By in described depth map, range information and the described difference taken pictures between distance meet setting threshold condition
Image slices vegetarian refreshments and described target image pixel collect in object pixel is grouped;Image during described object pixel is grouped
Pixel coordinate continuous print image slices vegetarian refreshments is identified as the described image information following the tracks of focusing object.With reference to Fig. 3, the present embodiment provides
Method specifically include:
Step 310, according to user in preview interface of taking pictures to setting screen position select, obtain with described setting screen
The target screen pixel coordinate that position is corresponding.
Step 320, according to described in take pictures the screen resolution of preview interface and preview image of taking pictures image resolution ratio it
Between corresponding relation, take pictures in preview image described in acquisition, the target image pixel corresponding with described target screen pixel coordinate
Coordinate.
Step 330, photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is determined
The tracking focusing object selected for user.
Step 340, obtain the target image pixel corresponding with described target image pixel coordinate.
Exemplary, in preview image of taking pictures, obtain the target image pixel corresponding with target image pixel coordinate.
Step 350, according to depth of view information corresponding with described target image pixel in depth map, determine that described tracking is right
Burnt object arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes the object that image slices vegetarian refreshments associates
Range information between body and described cam lens.
Concrete, the image resolution ratio of depth map is identical with the image resolution ratio of preview image of taking pictures, i.e. the figure of depth map
Image slices vegetarian refreshments one_to_one corresponding as pixel with preview image of taking pictures.Therefore, it can according to follow the tracks of focusing object take pictures pre-
Target image pixel in image of looking at obtains target image pixel corresponding in depth map.
Further, the depth of view information that in depth map, target image pixel is corresponding is obtained.In the present embodiment, depth of field letter
Breath includes the range information between subject and the cam lens that image slices vegetarian refreshments associates.
Further, according to the range information in target image pixel depth of view information, it may be determined that with target image
What pixel was corresponding follows the tracks of the distance of taking pictures of focusing object arrival cam lens.Due to each target image pixel broadly fall into
Track focusing object image slices vegetarian refreshments, so, the range information in each target image pixel depth of view information very close to, therefore,
The range information that can be defaulted as in each target image pixel depth of view information is equal, and be set as this range information following the tracks of right
Burnt object arrives the distance of taking pictures of cam lens.Optionally, can be to ask for the distance letter that each target image pixel is corresponding
The meansigma methods of breath, using the meansigma methods of acquirement as the distance of taking pictures following the tracks of focusing object arrival cam lens.Can also be
In each target image pixel, confirm the number of the target image pixel that same range information is corresponding, when taking number maximum
Range information arrives the distance of taking pictures of cam lens as following the tracks of focusing object.It is also possible that arbitrarily choose a target figure
As pixel, range information corresponding for this target image pixel is defaulted as follows the tracks of focusing object and arrives the bat of cam lens
Range from.
Step 360, by described depth map, range information and the described difference taken pictures between distance meet and set threshold value bar
The image slices vegetarian refreshments of part and described target image pixel collect in object pixel is grouped.
Exemplary, owing to when utilizing photographic head to take pictures, same subject arrives the distance approximation of cam lens
Identical, therefore, it can arrive the range information of cam lens according to the subject of each image slices vegetarian refreshments association in depth map,
Determine complete tracking focusing object.
Concrete, obtain and depth map removes all images picture followed the tracks of outside the target image pixel that focusing object is corresponding
The depth of view information of vegetarian refreshments, wherein, depth of view information includes between subject and the cam lens that image slices vegetarian refreshments associates
Range information.
Further, by range information corresponding for each image slices vegetarian refreshments and the bat following the tracks of focusing object arrival cam lens
Range is from poor, and takes the absolute value of difference.
Further, if range information corresponding to image slices vegetarian refreshments and the bat following the tracks of focusing object and arriving cam lens
The difference of photographic range meets preset threshold condition, then illustrate that this image slices vegetarian refreshments arrives distance and the tracking focusing of cam lens
Object arrives the shooting distance approximation of cam lens.Now, the image slices vegetarian refreshments that difference meets preset threshold condition is classified as
In object pixel packet.Wherein, object pixel packet also includes target image pixel.
Wherein, preset threshold condition can be set according to practical situation.Such as, follow the tracks of focusing object and arrive photographic head
When the shooting distance of camera lens is nearer, preset threshold condition can be less than or equal to 1cm, i.e. in each image slices vegetarian refreshments, and will be away from
Collect in object pixel is grouped less than or equal to the image slices vegetarian refreshments of 1cm from information and the difference taken pictures between distance.And for example,
Follow the tracks of focusing object arrive cam lens shooting distance farther out time, preset threshold condition can be less than or equal to 10cm,
I.e. in each image slices vegetarian refreshments, by range information and the difference taken pictures between distance less than or equal to the figure image slices vegetarian refreshments of 10cm
Collect in object pixel is grouped.
Step 370, described object pixel is grouped in image pixel coordinates continuous print image slices vegetarian refreshments be identified as described with
The image information of track focusing object.
In view of in same depth map, same subject image pixel coordinates in depth map is definitely continuous
, therefore, it can in object pixel is grouped, image pixel coordinates continuous print image slices vegetarian refreshments is identified as described tracking and focuses
The image information of object.Wherein, image information is the complete image information following the tracks of focusing object.Further, image information
It is can be the outer surface information following the tracks of focusing object.
Optionally, in object pixel is grouped, obtains and target image pixel coordinate continuous print image slices vegetarian refreshments, and will obtain
The image slices vegetarian refreshments taken and target image pixel coordinate are identified as following the tracks of the image information of focusing object.
When step 380, the preview image of taking pictures shown in preview interface of taking pictures described in detecting change, according to institute
State the image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
The technical scheme of the present embodiment, after being determined by the tracking focusing object that user selects, determines tracking focusing object
Target image pixel coordinate in preview image of taking pictures, and then obtain the target image pixel of correspondence, in depth map, root
According to the depth of view information of target image pixel, determine that following the tracks of focusing object arrives the distance of taking pictures of cam lens, and ask for scape
Range information that in deep figure, each image slices vegetarian refreshments is corresponding and the difference taken pictures between distance, meet preset threshold condition by difference
Image slices vegetarian refreshments and target image pixel collect simultaneously and are grouped in object pixel, and in being grouped by this object pixel, image pixel is sat
Mark continuous print image slices vegetarian refreshments is identified as following the tracks of the image information of focusing object, it is possible to achieve obtains accurately and follows the tracks of focusing object
Image information, it is ensured that in preview interface of taking pictures, the preview image of taking pictures of display is when changing, according to image information, accurate
True focuses to the preview image real-time tracking of taking pictures changed, and meets the focusing demand that user is actual, improves user
Experience.
Embodiment four
The flow chart of a kind of processing method of taking pictures that Fig. 4 provides for the embodiment of the present invention four.The present embodiment is with above-mentioned enforcement
Embody based on example.In the present embodiment, by according to the described image information following the tracks of focusing object, to change
Preview image of taking pictures carry out real-time tracking focusing particularly as follows: according to described follow the tracks of focusing object image information, with become
In renewal depth map corresponding to preview image of taking pictures changed, identify and described follow the tracks of focusing object;Focusing object is followed the tracks of according to described
Image pixel coordinates in described renewal depth map, determines that described focusing object of following the tracks of arrives the renewal of described cam lens
Distance;The corresponding relation between distance and the focusing motor displacement of cam lens is arrived according to the subject prestored,
And described renewal distance, determine the adjustment shift position of focusing motor;Described focusing is controlled according to described adjustment shift position
Motor moves, to realize the preview image of taking pictures changed is carried out real-time tracking focusing.With reference to Fig. 4, the present embodiment
The method provided specifically includes:
Step 410, according to user in preview interface of taking pictures to setting screen position select, obtain with described setting screen
The target screen pixel coordinate that position is corresponding.
Step 420, according to described in take pictures the screen resolution of preview interface and preview image of taking pictures image resolution ratio it
Between corresponding relation, take pictures in preview image described in acquisition, the target image pixel corresponding with described target screen pixel coordinate
Coordinate.
Step 430, photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is determined
The tracking focusing object selected for user.
Step 440, obtain the target image pixel corresponding with described target image pixel coordinate.
Step 450, according to depth of view information corresponding with described target image pixel in depth map, determine that described tracking is right
Burnt object arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes the object that image slices vegetarian refreshments associates
Range information between body and described cam lens.
Step 460, by described depth map, range information and the described difference taken pictures between distance meet and set threshold value bar
The image slices vegetarian refreshments of part and described target image pixel collect in object pixel is grouped.
Step 470, described object pixel is grouped in image pixel coordinates continuous print image slices vegetarian refreshments be identified as described with
The image information of track focusing object.
When step 480, the preview image of taking pictures shown in preview interface of taking pictures described in detecting change, according to institute
State the image information following the tracks of focusing object, in the renewal depth map corresponding with the preview image of taking pictures changed, identify institute
State tracking focusing object.
Exemplary, when preview image of taking pictures changes, depth map is updated the most accordingly, and updates depth map
Corresponding with the preview image of taking pictures changed.
Concrete, obtain the image information following the tracks of focusing object, the bat of display in preview interface of taking pictures described in detecting
When changing according to preview image, depth map identifies in corresponding updating the image information following the tracks of focusing object.Optionally,
According to follow the tracks of focusing object image information, update depth map in identify tracking focusing object, and then determine tracking right
Burnt object position in updating depth map.Wherein, the recognition methods the present embodiment following the tracks of focusing object is not construed as limiting.
Step 490, object image pixel coordinates in described renewal depth map of focusing according to described tracking, determine described
Follow the tracks of focusing object and arrive the renewal distance of described cam lens.
Exemplary, obtain and update each image pixel coordinates that in depth map, the image information of tracking focusing object is corresponding,
And confirm corresponding each image slices vegetarian refreshments according to each image pixel coordinates.
Further, obtaining the depth of view information that each image slices vegetarian refreshments is corresponding, wherein, depth of view information includes each image pixel
The subject of some association arrives the range information of cam lens.According to the range information obtained, determine tracking focusing object
Arrive the renewal distance of cam lens.
Optionally, the meansigma methods of the range information of each image slices vegetarian refreshments corresponding to focusing object will be followed the tracks of, right as following the tracks of
Burnt object arrives the renewal distance of cam lens.
The subject that step 4100, basis prestore arrives between distance and the focusing motor displacement of cam lens
Corresponding relation, and described renewal distance, determine the adjustment shift position of focusing motor.
Wherein, intelligent terminal arranges focusing motor, and presets the difference of subject arrival cam lens
The displacement of the focusing motor that distance is corresponding.Such as, it is 10cm that subject arrives the distance of cam lens, setting right
The displacement of burnt motor is 0.5cm.For another example, it is 30cm that subject arrives the distance of cam lens, the focusing horse of setting
The displacement reached is 2cm.Wherein, subject is specially and follows the tracks of focusing object.
Concrete, after determining the renewal distance following the tracks of focusing object distance cam lens, according to default corresponding pass
System, determines the adjustment shift position of focusing motor.Such as, according to following the tracks of the renewal distance of focusing object and cam lens and pre-
If corresponding relation determines that the displacement of focusing motor is 2cm, it is determined that the adjustment shift position of focusing motor is 2cm.
Step 4110, according to described adjustment shift position control described focusing motor move, with realize to becoming
The preview image of taking pictures changed carries out real-time tracking focusing.
Concrete, control focusing motor according to the adjustment shift position of focusing motor and move.Move in focusing motor
During, preview image of taking pictures change is focused, and wherein, focusing is positioned at tracking focusing object.Wherein, focusing
It is different that motor adjusts shift position, and the focusing degree of preview image of taking pictures accordingly also differs.
Optionally, before focusing motor moves, preview image of taking pictures can be defaulted as not carrying out the image of focusing process.
The technical scheme of the present embodiment, after obtaining the tracking focusing object that user selects in preview interface of taking pictures,
The depth map generated under preview state of taking pictures obtains the image information following the tracks of focusing object, and preview circle of taking pictures detected
When in face, the preview image of taking pictures of display changes, at the renewal depth map corresponding with the preview image of taking pictures changed
In, identify tracking focusing object according to image information, and according to following the tracks of focusing object image pixel in updating depth map
Coordinate, determines that following the tracks of focusing object arrives the renewal distance of cam lens, and then determines the adjustment shift position of focusing motor,
And control focusing motor and move accordingly, complete to carry out the preview image of taking pictures changed implementing to follow the tracks of focusing, can
To realize when taking pictures preview image change, subject desired to user carries out real-time tracking focusing exactly, meets
User focuses demand normally, improves the experience of user.
On the basis of above-described embodiment, move it controlling described focusing motor according to described adjustment shift position
After, it is also possible to including: trigger automatic focusing function, described preview image of taking pictures is carried out exact focus.
Wherein, automatic focusing function refers on the basis of current focusing process, and to taking pictures, preview image carries out more accurate
Focusing process.
Concrete, intelligent terminal, after determining that focusing motor moves, triggers automatic focusing function, with to preview image of taking pictures
Carry out exact focus.Wherein, automatic focusing function can be to control focusing motor movement by a small margin so that in preview circle of taking pictures
In face, the focusing result of the preview screen of taking pictures of display is the most accurate.
Embodiment five
The structural representation of a kind of processing means of taking pictures that Fig. 5 provides for the embodiment of the present invention five.As it is shown in figure 5, it is described
Device includes: the first acquisition module 51, the second acquisition module 52 and tracking Focusing module 53, wherein:
First acquisition module 51, for obtaining the tracking focusing object that user selects in preview interface of taking pictures;
Second acquisition module 52, in the depth map generated under preview state of taking pictures, obtains described tracking focusing thing
The image information of body, wherein, described depth map is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;
Follow the tracks of Focusing module 53, become for the preview image of taking pictures of display in preview interface of taking pictures described in detecting
During change, according to the described image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
The processing means of taking pictures that the embodiment of the present invention provides, obtains the tracking focusing that user selects in preview interface of taking pictures
After object, the depth map generated obtains the image information following the tracks of focusing object, and bat detected under preview state of taking pictures
According to when in preview interface, the preview image of taking pictures of display changes, according to the image information of tracking focusing object, in change
Take pictures and preview image carries out real-time tracking focusing to following the tracks of focusing object.By obtaining, depth map is followed the tracks of focusing object
Image information, and in the preview image of taking pictures of change, identify tracking focusing object according to image information, it is achieved that taking pictures
During preview image change, remain to subject desired to user exactly and carry out real-time tracking focusing so that user's reality
Focusing demand is met, and improves the experience of user.
On the basis of the various embodiments described above, described first acquisition module 51 may include that
Screen coordinate obtains submodule, for selecting setting screen position in preview interface of taking pictures according to user, obtains
Take the target screen pixel coordinate corresponding with described setting screen position;
Image coordinate obtains submodule, for screen resolution and the preview image of taking pictures of preview interface of taking pictures described in basis
Image resolution ratio between corresponding relation, take pictures in preview image described in acquisition, corresponding with described target screen pixel coordinate
Target image pixel coordinate;
Tracking determines submodule, for by bat corresponding for the described described target image pixel coordinate taken pictures in preview image
It is defined as the tracking focusing object that user selects according to object.
On the basis of the various embodiments described above, described second acquisition module 52 may include that
Pixel obtains submodule, for obtaining the target image pixel corresponding with described target image pixel coordinate;
Distance determines submodule, is used for according to depth of view information corresponding with described target image pixel in depth map, really
Fixed described focusing object of following the tracks of arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes image slices vegetarian refreshments
Range information between subject and the described cam lens of association;
Packet submodule, for by described depth map, range information and the described difference taken pictures between distance meet and set
The image slices vegetarian refreshments determining threshold condition collects in object pixel is grouped with described target image pixel;
Image information identification submodule, image pixel coordinates continuous print image pixel in described object pixel is grouped
Point is identified as the described image information following the tracks of focusing object.
On the basis of the various embodiments described above, described tracking Focusing module 53 may include that
Focusing object identification submodule, sends out for the preview image of taking pictures of display in preview interface of taking pictures described in detecting
During changing, according to the described image information following the tracks of focusing object, in the renewal corresponding with the preview image of taking pictures changed
In depth map, identify described tracking focusing object;
Update distance and determine submodule, for following the tracks of focusing object image slices in described renewal depth map according to described
Element coordinate, determines that described focusing object of following the tracks of arrives the renewal distance of described cam lens;
Shift position determines submodule, for arriving distance and the focusing horse of cam lens according to the subject prestored
Reach the corresponding relation between displacement, and described renewal distance, determine the adjustment shift position of focusing motor;
Mobile control submodule, moves for controlling described focusing motor according to described adjustment shift position, with reality
Now the preview image of taking pictures changed is carried out real-time tracking focusing.
On the basis of the various embodiments described above, it is also possible to including:
Precisely Focusing module, is used for triggering automatic focusing function, described preview image of taking pictures is carried out exact focus.
On the basis of the various embodiments described above, it is also possible to including:
Display Focusing module, for the described tracking focusing object selected according to user, takes pictures in preview interface to described
The preview image of taking pictures of display is focused.
On the basis of the various embodiments described above, described second acquisition module 52 may include that
Depth map obtains submodule, for being carried out taking pictures preview by dual camera, to obtain depth map, and in described bat
According to preview interface presents preview image of taking pictures;
Obtain submodule, in described depth map, obtain the described image information following the tracks of focusing object, wherein, institute
State depth map corresponding with the preview image of taking pictures of display in described preview interface of taking pictures.
The said goods can perform the method that any embodiment of the present invention is provided, and possesses the corresponding functional module of execution method
And beneficial effect.
The embodiment of the present invention also provides for a kind of storage medium comprising computer executable instructions, and described computer can perform
Instruction is used for performing one and takes pictures processing method when being performed by computer processor, and the method includes:
The tracking focusing object that user selects is obtained in preview interface of taking pictures;
In the depth map generated under preview state of taking pictures, obtain the described image information following the tracks of focusing object, wherein, institute
State depth map corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;
When in preview interface of taking pictures described in detecting, the preview image of taking pictures of display changes, right according to described tracking
The image information of burnt object, carries out real-time tracking focusing to the preview image of taking pictures changed.
Optionally, this computer executable instructions can be also used for when being performed by computer processor perform the present invention appoint
The technical scheme of the processing method of taking pictures that meaning embodiment is provided.
By the description above with respect to embodiment, those skilled in the art it can be understood that arrive, the present invention
Can realize by software and required common hardware, naturally it is also possible to realized by hardware, but a lot of in the case of the former is more
Good embodiment.Based on such understanding, prior art is contributed by technical scheme the most in other words
Part can embody with the form of software product, and this computer software product can be stored in computer-readable recording medium
In, such as the floppy disk of computer, read only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer sets
Standby (can be personal computer, server, or the network equipment etc.) performs the method described in each embodiment of the present invention.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although by above example, the present invention is carried out
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (14)
1. a processing method of taking pictures, it is characterised in that including:
The tracking focusing object that user selects is obtained in preview interface of taking pictures;
In the depth map generated under preview state of taking pictures, obtain the described image information following the tracks of focusing object, wherein, described scape
Deep figure is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;
When the preview image of taking pictures of display changes in preview interface of taking pictures described in detecting, follow the tracks of focusing thing according to described
The image information of body, carries out real-time tracking focusing to the preview image of taking pictures changed.
Method the most according to claim 1, it is characterised in that the tracking obtaining user's selection in preview interface of taking pictures is right
Burnt object includes:
In preview interface of taking pictures, setting screen position is selected according to user, obtain the mesh corresponding with described setting screen position
Mark screen pixels coordinate;
The corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures according to described preview interface of taking pictures,
Take pictures described in acquisition in preview image, the target image pixel coordinate corresponding with described target screen pixel coordinate;
Photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is defined as what user selected
Follow the tracks of focusing object.
Method the most according to claim 2, it is characterised in that in the depth map generated under preview state of taking pictures, obtains
The described image information following the tracks of focusing object includes:
Obtain the target image pixel corresponding with described target image pixel coordinate;
According to depth of view information corresponding with described target image pixel in depth map, determine that described tracking focusing object arrives and take the photograph
As the distance of taking pictures of head mirror head, wherein, described depth of view information includes subject that image slices vegetarian refreshments associates and described shooting
Range information between head mirror head;
By in described depth map, range information and the described difference taken pictures between distance meet the image pixel setting threshold condition
Point and described target image pixel collect in object pixel is grouped;
In being grouped by described object pixel, image pixel coordinates continuous print image slices vegetarian refreshments is identified as described tracking focusing object
Image information.
Method the most according to claim 3, it is characterised in that according to the described image information following the tracks of focusing object, to sending out
The preview image of taking pictures of changing carries out real-time tracking focusing and includes:
According to the described image information following the tracks of focusing object, at the renewal depth map corresponding with the preview image of taking pictures changed
In, identify described tracking focusing object;
Follow the tracks of focusing object image pixel coordinates in described renewal depth map according to described, determine described tracking focusing object
Arrive the renewal distance of described cam lens;
The corresponding relation between distance and the focusing motor displacement of cam lens is arrived according to the subject prestored, with
And described renewal distance, determine the adjustment shift position of focusing motor;
Control described focusing motor according to described adjustment shift position to move, to realize the preview graph of taking pictures changed
As carrying out real-time tracking focusing.
Method the most according to claim 4, it is characterised in that controlling described focusing horse according to described adjustment shift position
Reach after moving, also include:
Trigger automatic focusing function, described preview image of taking pictures is carried out exact focus.
Method the most according to claim 1, it is characterised in that display takes pictures in preview interface of taking pictures described in detecting
Before preview image changes, also include:
The described tracking focusing object selected according to user, preview image of taking pictures display in described preview interface of taking pictures is carried out
Focusing.
Method the most according to claim 1, it is characterised in that the depth map generated under preview state of taking pictures includes:
Carried out taking pictures preview by dual camera, to obtain depth map, and present, in described preview interface of taking pictures, preview of taking pictures
Image.
8. a processing means of taking pictures, it is characterised in that including:
First acquisition module, for obtaining the tracking focusing object that user selects in preview interface of taking pictures;
Second acquisition module, in the depth map generated under preview state of taking pictures, obtains the described figure following the tracks of focusing object
As information, wherein, described depth map is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures;
Follow the tracks of Focusing module, when in preview interface of taking pictures described in detecting, the preview image of taking pictures of display changes,
According to the described image information following the tracks of focusing object, the preview image of taking pictures changed is carried out real-time tracking focusing.
Device the most according to claim 8, it is characterised in that described first acquisition module includes:
Screen coordinate obtain submodule, for according to user in preview interface of taking pictures to setting screen position select, obtain with
The target screen pixel coordinate that described setting screen position is corresponding;
Image coordinate obtains submodule, for take pictures described in the basis screen resolution of preview interface and the figure of preview image of taking pictures
As the corresponding relation between resolution, take pictures in preview image described in acquisition, the mesh corresponding with described target screen pixel coordinate
Logo image pixel coordinate;
Tracking determines submodule, for by thing of taking pictures corresponding for the described described target image pixel coordinate taken pictures in preview image
Body is defined as the tracking focusing object that user selects.
Device the most according to claim 9, it is characterised in that described second acquisition module includes:
Pixel obtains submodule, for obtaining the target image pixel corresponding with described target image pixel coordinate;
Distance determines submodule, for according to depth of view information corresponding with described target image pixel in depth map, determines institute
Stating the distance of taking pictures following the tracks of focusing object arrival cam lens, wherein, described depth of view information includes that image slices vegetarian refreshments associates
Subject and described cam lens between range information;
Packet submodule, for by described depth map, range information and the described difference taken pictures between distance meet setting threshold
The image slices vegetarian refreshments of value condition and described target image pixel collect in object pixel is grouped;
Image information identification submodule, in being grouped by described object pixel, image pixel coordinates continuous print image slices vegetarian refreshments is known
Not Wei described follow the tracks of focusing object image information.
11. devices according to claim 10, it is characterised in that described tracking Focusing module includes:
Focusing object identification submodule, becomes for the preview image of taking pictures of display in preview interface of taking pictures described in detecting
During change, according to the described image information following the tracks of focusing object, in the renewal depth of field corresponding with the preview image of taking pictures changed
In figure, identify described tracking focusing object;
Update distance and determine submodule, for sitting according to described focusing object image pixel in described renewal depth map of following the tracks of
Mark, determines that described focusing object of following the tracks of arrives the renewal distance of described cam lens;
Shift position determines submodule, moves with focusing motor for arriving the distance of cam lens according to the subject prestored
Corresponding relation between dynamic distance, and described renewal distance, determine the adjustment shift position of focusing motor;
Mobile control submodule, moves for controlling described focusing motor according to described adjustment shift position, right to realize
The preview image of taking pictures changed carries out real-time tracking focusing.
12. devices according to claim 11, it is characterised in that also include:
Precisely Focusing module, is used for triggering automatic focusing function, described preview image of taking pictures is carried out exact focus.
13. devices according to claim 8, it is characterised in that also include:
Display Focusing module, for the described tracking focusing object selected according to user, shows in described preview interface of taking pictures
Preview image of taking pictures focus.
14. devices according to claim 8, it is characterised in that described second acquisition module includes:
Depth map obtains submodule, for being carried out taking pictures preview by dual camera, to obtain depth map, and described take pictures pre-
Look at and interface presents preview image of taking pictures;
Obtain submodule, in described depth map, obtain the described image information following the tracks of focusing object, wherein, described scape
Deep figure is corresponding with the preview image of taking pictures of display in described preview interface of taking pictures.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610621457.3A CN106161945A (en) | 2016-08-01 | 2016-08-01 | Take pictures treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610621457.3A CN106161945A (en) | 2016-08-01 | 2016-08-01 | Take pictures treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106161945A true CN106161945A (en) | 2016-11-23 |
Family
ID=57328354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610621457.3A Pending CN106161945A (en) | 2016-08-01 | 2016-08-01 | Take pictures treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161945A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483821A (en) * | 2017-08-25 | 2017-12-15 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN108055458A (en) * | 2017-12-18 | 2018-05-18 | 信利光电股份有限公司 | A kind of focus method for tracing, device, equipment and computer readable storage medium |
CN108318706A (en) * | 2017-12-29 | 2018-07-24 | 维沃移动通信有限公司 | The speed-measuring method and device of mobile object |
CN109451240A (en) * | 2018-12-04 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Focusing method, device, computer equipment and readable storage medium storing program for executing |
CN109525786A (en) * | 2018-12-26 | 2019-03-26 | 北京旷视科技有限公司 | Method for processing video frequency, device, terminal device and storage medium |
CN109688321A (en) * | 2018-11-21 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Electronic equipment and its image display method, the device with store function |
CN110996003A (en) * | 2019-12-16 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Photographing positioning method and device and mobile terminal |
US11363187B2 (en) | 2018-10-12 | 2022-06-14 | Huawei Technologies Co., Ltd. | Focusing method and apparatus applied to terminal device, and terminal device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019537A (en) * | 2012-11-19 | 2013-04-03 | 广东欧珀移动通信有限公司 | Image preview method and image preview device |
CN103795933A (en) * | 2014-03-03 | 2014-05-14 | 联想(北京)有限公司 | Image processing method and electronic device |
CN103973978A (en) * | 2014-04-17 | 2014-08-06 | 华为技术有限公司 | Method and electronic device for achieving refocusing |
CN104102068A (en) * | 2013-04-11 | 2014-10-15 | 聚晶半导体股份有限公司 | Automatic focusing method and automatic focusing device |
CN104104876A (en) * | 2014-07-25 | 2014-10-15 | 广东欧珀移动通信有限公司 | Method, device and mobile device for rapidly focusing |
CN104363378A (en) * | 2014-11-28 | 2015-02-18 | 广东欧珀移动通信有限公司 | Camera focusing method, camera focusing device and terminal |
CN104902161A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105527778A (en) * | 2016-01-16 | 2016-04-27 | 上海大学 | Automatic focusing method for electric adjustable liquid lens |
-
2016
- 2016-08-01 CN CN201610621457.3A patent/CN106161945A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019537A (en) * | 2012-11-19 | 2013-04-03 | 广东欧珀移动通信有限公司 | Image preview method and image preview device |
CN104102068A (en) * | 2013-04-11 | 2014-10-15 | 聚晶半导体股份有限公司 | Automatic focusing method and automatic focusing device |
CN103795933A (en) * | 2014-03-03 | 2014-05-14 | 联想(北京)有限公司 | Image processing method and electronic device |
CN104902161A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103973978A (en) * | 2014-04-17 | 2014-08-06 | 华为技术有限公司 | Method and electronic device for achieving refocusing |
CN104104876A (en) * | 2014-07-25 | 2014-10-15 | 广东欧珀移动通信有限公司 | Method, device and mobile device for rapidly focusing |
CN104363378A (en) * | 2014-11-28 | 2015-02-18 | 广东欧珀移动通信有限公司 | Camera focusing method, camera focusing device and terminal |
CN105527778A (en) * | 2016-01-16 | 2016-04-27 | 上海大学 | Automatic focusing method for electric adjustable liquid lens |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483821A (en) * | 2017-08-25 | 2017-12-15 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN107483821B (en) * | 2017-08-25 | 2020-08-14 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN108055458A (en) * | 2017-12-18 | 2018-05-18 | 信利光电股份有限公司 | A kind of focus method for tracing, device, equipment and computer readable storage medium |
CN108318706A (en) * | 2017-12-29 | 2018-07-24 | 维沃移动通信有限公司 | The speed-measuring method and device of mobile object |
US11363187B2 (en) | 2018-10-12 | 2022-06-14 | Huawei Technologies Co., Ltd. | Focusing method and apparatus applied to terminal device, and terminal device |
CN109688321A (en) * | 2018-11-21 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Electronic equipment and its image display method, the device with store function |
CN109451240A (en) * | 2018-12-04 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Focusing method, device, computer equipment and readable storage medium storing program for executing |
CN109451240B (en) * | 2018-12-04 | 2021-01-26 | 百度在线网络技术(北京)有限公司 | Focusing method, focusing device, computer equipment and readable storage medium |
CN109525786A (en) * | 2018-12-26 | 2019-03-26 | 北京旷视科技有限公司 | Method for processing video frequency, device, terminal device and storage medium |
CN109525786B (en) * | 2018-12-26 | 2021-04-30 | 北京旷视科技有限公司 | Video processing method and device, terminal equipment and storage medium |
CN110996003A (en) * | 2019-12-16 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Photographing positioning method and device and mobile terminal |
CN110996003B (en) * | 2019-12-16 | 2022-03-25 | Tcl移动通信科技(宁波)有限公司 | Photographing positioning method and device and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106161945A (en) | Take pictures treating method and apparatus | |
JP6730690B2 (en) | Dynamic generation of scene images based on the removal of unwanted objects present in the scene | |
US10382691B2 (en) | Mobile terminal and controlling method thereof | |
KR101612727B1 (en) | Method and electronic device for implementing refocusing | |
CN107787463B (en) | The capture of optimization focusing storehouse | |
CN109889724B (en) | Image blurring method and device, electronic equipment and readable storage medium | |
CN102843509B (en) | Image processing device and image processing method | |
CN108154058B (en) | Graphic code display and position area determination method and device | |
CN111462311A (en) | Panorama generation method and device and storage medium | |
CN107950018A (en) | The shallow depth of field true to nature presented by focus stack | |
CN105933601A (en) | Method, apparatus, and computer program product for presenting burst images | |
CN105827928A (en) | Focusing area selection method and focusing area selection device | |
CN102843510A (en) | Imaging device and distance information detecting method | |
US11057553B2 (en) | Electronic device for capturing media using a bendable display and method thereof | |
CN109451240B (en) | Focusing method, focusing device, computer equipment and readable storage medium | |
WO2019163576A1 (en) | Information processing device, information processing method, and program | |
CN105391940A (en) | Image recommendation method and apparatus | |
CN105657240A (en) | Photographing method and device | |
JP2009047496A (en) | Stereoscopic imaging device, control method of stereoscopic imaging device, and program | |
US9456136B2 (en) | Apparatus and method for generating image data in portable terminal | |
US9094581B2 (en) | Imaging device and distance information detecting method | |
JP5149984B2 (en) | Imaging device | |
CN113572965A (en) | Double-blackboard-writing tracking shooting method and device and shooting system | |
JP2003534742A (en) | Methods, systems and devices | |
CN114390189A (en) | Image processing method, device, storage medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161123 |
|
WD01 | Invention patent application deemed withdrawn after publication |