CN105187719A - Shooting method and terminal - Google Patents

Shooting method and terminal Download PDF

Info

Publication number
CN105187719A
CN105187719A CN201510519760.8A CN201510519760A CN105187719A CN 105187719 A CN105187719 A CN 105187719A CN 201510519760 A CN201510519760 A CN 201510519760A CN 105187719 A CN105187719 A CN 105187719A
Authority
CN
China
Prior art keywords
distance
target image
image
information
camera
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
Application number
CN201510519760.8A
Other languages
Chinese (zh)
Inventor
杨斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510519760.8A priority Critical patent/CN105187719A/en
Publication of CN105187719A publication Critical patent/CN105187719A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

Embodiments of the invention provide a shooting method and a terminal. The shooting method can comprise: obtaining a target image to be shot collected by a camera, wherein the target image contains a facial feature; analyzing the target image to determine the proportion of the facial feature in the target image; determining a distance between the target to be shot and the camera according to the proportion; judging whether the distance satisfies a preset condition; and if the distance satisfies the preset condition, outputting a first prompt message. By adopting the shooting method provided by the embodiments of the invention, when the distance between the target to be shot and the camera satisfies the preset condition, the first prompt message is output to prompt a user to adjust the distance between the target to be shot and the camera within a field depth range, so as to obtain a clearer image and improve the shooting quality.

Description

A kind of image pickup method and terminal
Technical field
The present invention relates to camera technique field, particularly relate to a kind of image pickup method and terminal.
Background technology
Along with the continuous progress and development of electronic technology, terminal is applied more and more extensive in people's daily life, and increasing terminal is all configured with filming apparatus, such as: the terminals such as mobile phone, panel computer, notebook computer are all configured with camera.
When using terminal to take pictures, the distance of subject and camera lens within the specific limits time, can focus on and obtain imaging clearly, this distance range is called field depth.But for most users, and do not know the field depth of filming apparatus, when collect not fogging clear time, the uncertain distance that should shorten or increase subject and camera lens of user, constantly can only move forward and backward the terminal in hand, until collect image clearly, cause user to need the long period could focus on successfully and start shooting, user experience is low.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and terminal, can strengthen the definition of the image of shooting, improves shooting quality.
Embodiment of the present invention first aspect provides a kind of image pickup method, and described image pickup method can comprise:
Obtain the target image to be captured of camera collection, in wherein said target image, comprise face characteristic;
Resolve described target image, to determine the ratio of described face characteristic in described target image;
According to the distance of described ratio-dependent target to be captured and described camera;
Judge whether described distance meets the condition preset;
If described distance meets default condition, then export the first information.
Embodiment of the present invention second aspect provides a kind of terminal, and described terminal can comprise:
Image acquisition unit, for obtaining the target image to be captured of camera collection, comprises face characteristic in wherein said target image;
Resolution unit, for resolving described target image, to determine the ratio of described face characteristic in described target image;
Determining unit, for the distance according to described ratio-dependent target to be captured and described camera;
First judging unit, for judging whether described distance meets the condition preset;
First Tip element, for when described distance meets default condition, exports the first information.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, determine the ratio in target image shared by face characteristic, according to the distance of ratio-dependent target to be captured and camera, and when this distance meets the condition preset, export the first information, user can be pointed out to adjust the distance of target to be captured and camera, thus obtain image more clearly, improve shooting quality.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of the image pickup method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of another embodiment of the image pickup method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the another embodiment of the image pickup method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of an embodiment of the terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of another embodiment of the terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of an embodiment of the first Tip element in the terminal that provides of the embodiment of the present invention;
Fig. 7 is the structural representation of the another embodiment of the terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of image pickup method and terminal, the definition of the image of shooting can be strengthened, improve shooting quality.
In the embodiment of the present invention, terminal can be any terminal with taking module, can include but not limited to mobile phone, panel computer, notebook computer, digital camera etc.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of an embodiment of the image pickup method that the embodiment of the present invention provides.The method of the embodiment of the present invention performs by terminal.As shown in Figure 1, described image pickup method can comprise the following steps:
S101, obtains the target image to be captured of camera collection, comprises face characteristic in wherein said target image.
In concrete enforcement, after receiving the shooting instruction that user triggers, the camera of terminal starts to gather image, and terminal can the image that arrives of Real-time Obtaining camera collection.Terminal can identify the image collected, and judges the content comprised in image, such as: whether can comprise face in recognition image.When identifying face in the image gathered, determine that this image is the target image in the embodiment of the present invention.
In the embodiment of the present invention, target to be captured is personage, then comprise face characteristic in the target image of camera collection.Wherein face characteristic can comprise the face features such as eyes, nose, face, also can comprise the features such as face mask feature and the colour of skin, specifically can judge whether to comprise face characteristic by (can be a kind of parameter, also can be the combination of many kinds of parameters) parameters such as the profile of image, colors.
S102, resolves described target image, to determine the ratio of described face characteristic in described target image.
In the embodiment of the present invention, the human face region that the ratio of face characteristic in described target image refers to face characteristic place accounts for the ratio of described target image, wherein human face region and the region shared by whole face mask, comprises the region of face region and the covering of the skin such as cheek, forehead.
After obtaining target image to be captured, this target image can be resolved, be specially the face characteristic of resolving in this target image, determine human face region, and then determine the ratio that human face region is shared in this target image.
In concrete enforcement, when resolving this target image, by the face characteristic in some these target images of face recognition algorithms identification, such as: based on Face datection algorithm, the face recognition algorithms based on geometric properties, the face recognition algorithms etc. based on principal component analysis of template matches.
S103, according to the distance of described ratio-dependent target to be captured and described camera.
In concrete enforcement, in shooting process, terminal can obtain the focal length of camera and current focusing from, when the focal length of camera and focusing are from when determining, the ratio of target to be captured shared by picture is larger, represents that the distance between target to be captured and camera is shorter.
When determining human face region ratio sum in the target image, the distance of target to be captured and camera can be determined according to aforementioned proportion.
S104, judges whether described distance meets the condition preset.
In the execution mode that some are feasible, above-mentioned default condition can be pre-set by terminal by user and obtain, and also can be obtained by terminal some parameters according to self camera.Such as, if user wishes that the distance of target to be captured and camera remains within the scope of certain distance, then the condition that this is preset can be manually set; Or terminal can arrange this condition preset according to the field depth of self.
S105, if described distance meets default condition, then exports the first information.
In concrete enforcement, above-mentioned default condition can be considered the trigger condition of the first information, and when the distance of target to be captured and camera meets above-mentioned default condition, then triggering terminal exports the first information, to point out user to adjust shooting distance, thus obtain image more clearly.
In the execution mode that some are feasible, terminal can prestore above-mentioned first information, when described distance meets default condition, the first information prestored is exported.Alternatively, above-mentioned first information can be image information, Word message or voice messaging etc.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, determine the ratio in target image shared by face characteristic, according to the distance of ratio-dependent target to be captured and camera, and when this distance meets the condition preset, export the first information, user can be pointed out to adjust the distance of target to be captured and camera, thus obtain image more clearly, improve shooting quality.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another embodiment of the image pickup method that the embodiment of the present invention provides.The method of the embodiment of the present invention performs by terminal.As shown in Figure 2, described image pickup method can comprise the following steps:
S201, obtains the target image to be captured of camera collection, comprises face characteristic in wherein said target image.
In concrete enforcement, after receiving the shooting instruction that user triggers, the camera of terminal starts to gather image, and terminal can the image that arrives of Real-time Obtaining camera collection.Terminal can identify the image collected, and judges the content comprised in image, such as: whether can comprise face in recognition image.When identifying face in the image gathered, determine that this image is the target image in the embodiment of the present invention.
In the embodiment of the present invention, target to be captured is personage, then comprise face characteristic in the target image of camera collection.Wherein face characteristic can comprise the face features such as eyes, nose, face, also can comprise the features such as face mask feature and the colour of skin, specifically can judge whether to comprise face characteristic by (can be a kind of parameter, also can be the combination of many kinds of parameters) parameters such as the profile of image, colors.
S202, resolves described target image, to determine the ratio of described face characteristic in described target image.
In the embodiment of the present invention, the human face region that the ratio of face characteristic in described target image refers to face characteristic place accounts for the ratio of described target image, wherein human face region and the region shared by whole face mask, comprises the region of face region and the covering of the skin such as cheek, forehead.
After obtaining target image to be captured, this target image can be resolved, be specially the face characteristic of resolving in this target image, determine human face region, and then determine the ratio that human face region is shared in this target image.
In concrete enforcement, when resolving this target image, by the face characteristic in some these target images of face recognition algorithms identification, such as: based on Face datection algorithm, the face recognition algorithms based on geometric properties, the face recognition algorithms etc. based on principal component analysis of template matches.
S203, according to the distance of described ratio-dependent target to be captured and described camera.
In concrete enforcement, in shooting process, terminal can obtain the focal length of camera and current focusing from, when the focal length of camera and focusing are from when determining, the ratio of target to be captured shared by picture is larger, represents that the distance between target to be captured and camera is shorter.
When determining human face region ratio sum in the target image, the distance of target to be captured and camera can be determined according to aforementioned proportion.
S204, obtains the field depth of described camera.
Wherein, the field depth of camera is relevant with aperture size with its focal length, and when the distance of target to be captured and camera is in field depth, the image ratio photographed is more clear, otherwise it is then fuzzyyer to take the image obtained.
In concrete enforcement, for can not the camera of zoom and light modulation circle, when dispatching from the factory, the parameter such as field depth, focal length, aperture can be determined, terminal can obtain the field depth of camera.For camera that is varifocal or adjustable aperture, terminal cocoa determines field depth at that time according to focal length during camera collection image and aperture size.
S205, field depth described in Distance geometry described in comparison, judges described distance whether in described field depth.
Particularly, Distance geometry field depth between comparison camera and target to be captured, judges above-mentioned distance whether in field depth.
S206, if described distance is not in described field depth, then exports the first information.
In the execution mode that some are feasible, if above-mentioned distance is not in the field depth of camera, the image definition that camera collection arrives is lower, and now exportable first information adjusts distance between camera and target to be captured, to obtain image clearly to point out user.
In the execution mode that some are feasible, terminal can prestore above-mentioned first information, when described distance meets default condition, the first information prestored is exported.Alternatively, above-mentioned first information can be image information, Word message or voice messaging etc.
In the execution mode that some are feasible, exporting the first information can comprise: if described distance is greater than the maximum of described field depth, then export the distance prompt information of the first color according to described distance; If described distance is less than the minimum value of described field depth, then export the distance prompt information of the second color according to described distance.Such as, when above-mentioned distance is greater than the maximum of field depth, above-mentioned distance is presented on the display screen of terminal with red text; When above-mentioned distance is less than the minimum value of field depth, by above-mentioned distance with green text importing on the display screen of terminal.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, determine the ratio in target image shared by face characteristic, according to the distance of ratio-dependent target to be captured and camera, obtain the field depth of described camera; Field depth described in Distance geometry described in comparison; If described distance not in described field depth, then exports the first information, user can be pointed out the distance of target to be captured and camera to be adjusted in field depth, thus obtain image more clearly, improve shooting quality.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of another embodiment of the image pickup method that the embodiment of the present invention provides.The method of the embodiment of the present invention performs by terminal.As shown in Figure 3, described image pickup method can comprise the following steps:
S301, obtains the target image to be captured of camera collection, comprises face characteristic in wherein said target image;
In concrete enforcement, after receiving the shooting instruction that user triggers, the camera of terminal starts to gather image, and terminal can the image that arrives of Real-time Obtaining camera collection.Terminal can identify the image collected, and judges the content comprised in image, such as: whether can comprise face in recognition image.When identifying face in the image gathered, determine that this image is the target image in the embodiment of the present invention.
In the embodiment of the present invention, target to be captured is personage, then comprise face characteristic in the target image of camera collection.Wherein face characteristic can comprise the face features such as eyes, nose, face, also can comprise the features such as face mask feature and the colour of skin, specifically can judge whether to comprise face characteristic by (can be a kind of parameter, also can be the combination of many kinds of parameters) parameters such as the profile of image, colors.
S302, resolves described target image, from described target image, identify human face region.
In concrete enforcement, after obtaining target image to be captured, this target image can be resolved, be specially the face characteristic of resolving in this target image, determine human face region.When resolving this target image, by the face characteristic in some these target images of face recognition algorithms identification, such as: based on Face datection algorithm, the face recognition algorithms based on geometric properties, the face recognition algorithms etc. based on principal component analysis of template matches.
In the embodiment of the present invention, the region in human face region and image shared by face mask, comprises the region that face region and the skin such as cheek, forehead cover.
S303, determines the ratio of described human face region in described target image;
After determining the human face region in image, ratio that can be shared in this target image according to the size determination human face region of the size of human face region and image.
S304, according to the distance of described ratio-dependent target to be captured and described camera;
In concrete enforcement, in shooting process, terminal can obtain the focal length of camera and current focusing from, when the focal length of camera and focusing are from when determining, the ratio of target to be captured shared by picture is larger, represents that the distance between target to be captured and camera is shorter.
When determining human face region ratio sum in the target image, the distance of target to be captured and camera can be determined according to aforementioned proportion.
S305, judges whether described distance meets the condition preset;
In the execution mode that some are feasible, above-mentioned default condition can be pre-set by terminal by user and obtain, and also can be obtained by terminal some parameters according to self camera.Such as, if user wishes that the distance of target to be captured and camera remains within the scope of certain distance, then the condition that this is preset can be manually set; Or terminal can arrange this condition preset according to the field depth of self.
In the execution mode that some are feasible, can field depth described in Distance geometry described in comparison, judge described distance whether in described field depth, if described distance is not in described field depth, then judge that described distance meets default condition.
S306, if described distance meets default condition, then exports the first information.
In concrete enforcement, above-mentioned default condition can be considered the trigger condition of the first information, and when the distance of target to be captured and camera meets above-mentioned default condition, then triggering terminal exports the first information, to point out user to adjust shooting distance, thus obtain image more clearly.
In the execution mode that some are feasible, terminal can prestore above-mentioned first information, when described distance meets default condition, the first information prestored is exported.Alternatively, above-mentioned first information can be image information, Word message or voice messaging etc.
In the execution mode that some are feasible, described default condition is that distance between target to be captured and camera is not in the field depth of camera, then export the first information can comprise: if described distance is greater than the maximum of described field depth, then export the distance prompt information of the first color according to described distance; If described distance is less than the minimum value of described field depth, then export the distance prompt information of the second color according to described distance.Such as, when above-mentioned distance is greater than the maximum of field depth, above-mentioned distance is presented on the display screen of terminal with red text; When above-mentioned distance is less than the minimum value of field depth, by above-mentioned distance with green text importing on the display screen of terminal.
S307, judges whether described human face region comprises complete face characteristic.
In the execution mode that some are feasible, can judge that whether face feature in human face region is complete and whether face mask is complete, if face characteristic and face mask are all complete in target image, then judge to comprise complete face characteristic in described human face region.
In the execution mode that some are feasible, can judge whether aforementioned proportion is greater than default proportion threshold value; If the determination result is YES, then judge that described human face region does not comprise complete face characteristic.Such as, if human face region proportion is greater than 95% in the picture collected, i.e. the whole pictures of human face region nearly cover, considers the ratio of face and picture and the reason such as inconsistent and composition, can judge that human face region does not comprise complete face characteristic.
S308, if described human face region does not comprise complete face characteristic, then exports the second information.
In the execution mode that some are feasible, terminal can prestore above-mentioned second information, when described distance meets default condition, the second information prestored is exported.Alternatively, above-mentioned second information can be image information, Word message or voice messaging etc.
In the execution mode that some are feasible, exporting the second information is the ratio information exporting the 3rd color according to the ratio of described human face region in described target image.Wherein, the 3rd color can be and the first color or the identical or different color of the second color.Such as, when aforementioned proportion is greater than default threshold value, this ratio can be presented on the display screen of terminal with red text, or export " human face region is imperfect " with voice or coloured mode word.
In concrete enforcement, the second information can be used for the composition of pointing out user's adjustment aim image, makes in target image containing complete human face region.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, from target image, identify human face region; Determine the ratio in target image shared by human face region, according to the distance of ratio-dependent target to be captured and camera, if described distance meets default condition, then export the first information, user can be pointed out to adjust the distance of target to be captured and camera, to obtain image more clearly; If do not comprise complete face characteristic in human face region, then export the second information, the composition of prompting user adjustment aim image, makes to contain complete human face region in target image, improves shooting quality further.
Refer to Fig. 4, Fig. 4 is the structural representation of an embodiment of the terminal that the embodiment of the present invention provides.As shown in Figure 4, described terminal can comprise with lower unit:
Image acquisition unit 401, for obtaining the target image to be captured of camera collection, comprises face characteristic in wherein said target image.
In concrete enforcement, when after the shooting instruction receiving user's triggering, the camera of terminal starts to gather image, the image that terminal arrives by image acquisition unit 401 Real-time Obtaining camera collection.Terminal can identify the image collected, and judges the content comprised in image, such as: whether can comprise face in recognition image.When identifying face in the image gathered, determine that this image is the target image in the embodiment of the present invention.
In the embodiment of the present invention, target to be captured is personage, then comprise face characteristic in the target image of camera collection.Wherein face characteristic can comprise the face features such as eyes, nose, face, also can comprise the features such as face mask feature and the colour of skin, specifically can judge whether to comprise face characteristic by (can be a kind of parameter, also can be the combination of many kinds of parameters) parameters such as the profile of image, colors.
Resolution unit 402, for resolving described target image, to determine the ratio of described face characteristic in described target image.
In the embodiment of the present invention, the human face region that the ratio of face characteristic in described target image refers to face characteristic place accounts for the ratio of described target image, wherein human face region and the region shared by whole face mask, comprises the region of face region and the covering of the skin such as cheek, forehead.
After obtaining target image to be captured, resolution unit 402 can resolve this target image, is specially the face characteristic of resolving in this target image, determines human face region, and then determines the ratio that human face region is shared in this target image.
In concrete enforcement, when resolving this target image, by the face characteristic in some these target images of face recognition algorithms identification, such as: based on Face datection algorithm, the face recognition algorithms based on geometric properties, the face recognition algorithms etc. based on principal component analysis of template matches.
Determining unit 403, for the distance according to described ratio-dependent target to be captured and described camera.
In concrete enforcement, in shooting process, terminal can obtain the focal length of camera and current focusing from, when the focal length of camera and focusing are from when determining, the ratio of target to be captured shared by picture is larger, represents that the distance between target to be captured and camera is shorter.
When determining human face region ratio sum in the target image, the distance of target to be captured and camera can be determined according to aforementioned proportion.
First judging unit 404, for judging whether described distance meets the condition preset.
In the execution mode that some are feasible, above-mentioned default condition can be pre-set by terminal by user and obtain, and also can be obtained by terminal some parameters according to self camera.Such as, if user wishes that the distance of target to be captured and camera remains within the scope of certain distance, then the condition that this is preset can be manually set; Or terminal can arrange this condition preset according to the field depth of self.
First Tip element 405, for when described distance meets default condition, exports the first information.
In concrete enforcement, above-mentioned default condition can be considered the trigger condition of the first information, and when the distance of target to be captured and camera meets above-mentioned default condition, then triggering terminal exports the first information, to point out user to adjust shooting distance, thus obtain image more clearly.
In the execution mode that some are feasible, terminal can prestore above-mentioned first information, when described distance meets default condition, the first information prestored is exported.Alternatively, above-mentioned first information can be image information, Word message or voice messaging etc.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, determine the ratio in target image shared by face characteristic, according to the distance of ratio-dependent target to be captured and camera, and when this distance meets the condition preset, export the first information, user can be pointed out to adjust the distance of target to be captured and camera, thus obtain image more clearly, improve shooting quality.
Refer to Fig. 5, Fig. 5 is the structural representation of another embodiment of the terminal that the embodiment of the present invention provides.As shown in Figure 5, described terminal can comprise with lower unit:
Image acquisition unit 501, for obtaining the target image to be captured of camera collection, comprises face characteristic in wherein said target image.
In concrete enforcement, after receiving the shooting instruction that user triggers, the camera of terminal starts to gather image, and terminal can the image that arrives of Real-time Obtaining camera collection.Terminal can identify the image collected, and judges the content comprised in image, such as: whether can comprise face in recognition image.When identifying face in the image gathered, determine that this image is the target image in the embodiment of the present invention.
In the embodiment of the present invention, target to be captured is personage, then comprise face characteristic in the target image of camera collection.Wherein face characteristic can comprise the face features such as eyes, nose, face, also can comprise the features such as face mask feature and the colour of skin, specifically can judge whether to comprise face characteristic by (can be a kind of parameter, also can be the combination of many kinds of parameters) parameters such as the profile of image, colors.
Recognition unit 502, for identifying human face region from described target image.
In concrete enforcement, after obtaining target image to be captured, recognition unit 502 can resolve the face characteristic in this target image, identifies human face region.Particularly, by the face characteristic in some these target images of face recognition algorithms identification, such as: based on Face datection algorithm, the face recognition algorithms based on geometric properties, the face recognition algorithms etc. based on principal component analysis of template matches.
In the embodiment of the present invention, the region in human face region and image shared by face mask, comprises the region that face region and the skin such as cheek, forehead cover.
Resolution unit 503, for resolving described target image, to determine the ratio of described face characteristic in described target image.
In the embodiment of the present invention, the human face region that the ratio of face characteristic in described target image refers to face characteristic place accounts for the ratio of described target image, wherein the human face region that identifies of human face region and recognition unit 502.
After determining the human face region in image, ratio that can be shared in this target image according to the size determination human face region of the size of human face region and image.
Determining unit 504, for the distance according to described ratio-dependent target to be captured and described camera.
In concrete enforcement, in shooting process, terminal can obtain the focal length of camera and current focusing from, when the focal length of camera and focusing are from when determining, the ratio of target to be captured shared by picture is larger, represents that the distance between target to be captured and camera is shorter.
When determining human face region ratio sum in the target image, the distance of target to be captured and camera can be determined according to aforementioned proportion.
Depth of field acquiring unit 505, for obtaining the field depth of described camera.
Wherein, the field depth of camera is relevant with aperture size with its focal length, and when the distance of target to be captured and camera is in field depth, the image ratio photographed is more clear, otherwise it is then fuzzyyer to take the image obtained.
In concrete enforcement, for can not the camera of zoom and light modulation circle, when dispatching from the factory, the parameter such as field depth, focal length, aperture can be determined, terminal can obtain the field depth of camera.For camera that is varifocal or adjustable aperture, terminal cocoa determines field depth at that time according to focal length during camera collection image and aperture size.
First judging unit 506, for judging whether described distance meets the condition preset.
In the execution mode that some are feasible, first judging unit 506, can specifically for field depth described in Distance geometry described in comparison, judges described distance whether in described field depth, if described distance is not in described field depth, then can judge that described distance meets default condition.
First Tip element 507, for when described distance meets default condition, exports the first information.
In the execution mode that some are feasible, if above-mentioned distance is not in the field depth of camera, the image definition that camera collection arrives is lower, and now exportable first information adjusts distance between camera and target to be captured, to obtain image clearly to point out user.
In the execution mode that some are feasible, terminal can prestore above-mentioned first information, when described distance meets default condition, the first information prestored is exported.Alternatively, above-mentioned first information can be image information, Word message or voice messaging etc.
In the execution mode that some are feasible, the first Tip element 507, specifically for when described distance is not in described field depth, exports the first information.
See also Fig. 6, as shown in Figure 6, in the execution mode that some are feasible, described first Tip element 507, can comprise:
First output unit 5071, for when described distance is greater than the maximum of described field depth, exports the distance prompt information of the first color according to described distance.
Second output unit 5072, for when described distance is less than the minimum value of described field depth, exports the distance prompt information of the second color according to described distance.
Such as, when above-mentioned distance is greater than the maximum of field depth, above-mentioned distance is presented on the display screen of terminal with red text; When above-mentioned distance is less than the minimum value of field depth, by above-mentioned distance with green text importing on the display screen of terminal.
Second judging unit 508, for judging whether described human face region comprises complete face characteristic.
In the execution mode that some are feasible, second judging unit 508 can judge that whether the face feature in human face region is complete and whether face mask is complete, if face characteristic and face mask are all complete in target image, then judge to comprise complete face characteristic in described human face region.
In the execution mode that some are feasible, the second judging unit 508 can judge whether the ratio of described human face region in described target image is greater than default proportion threshold value; If the determination result is YES, then judge that described human face region does not comprise complete face characteristic.Such as, if human face region proportion is greater than 95% in the picture collected, i.e. the whole pictures of human face region nearly cover, considers the ratio of face and picture and the reason such as inconsistent and composition, can judge that human face region does not comprise complete face characteristic.
Second Tip element 509, for when described human face region does not comprise complete face characteristic, exports the second information.
In the execution mode that some are feasible, terminal can prestore above-mentioned second information, when described distance meets default condition, the second information prestored is exported.Alternatively, above-mentioned second information can be image information, Word message or voice messaging etc.
In the execution mode that some are feasible, the second Tip element 509 specifically for when described human face region does not comprise complete face characteristic, can export the ratio information of the 3rd color according to the ratio of described human face region in described target image.Wherein, the 3rd color can be and the first color or the identical or different color of the second color.Such as, when aforementioned proportion is greater than default threshold value, this ratio can be presented on the display screen of terminal with red text, or export " human face region is imperfect " with voice or coloured mode word.
In concrete enforcement, the second information can be used for the composition of pointing out user's adjustment aim image, makes in target image containing complete human face region.
In the embodiment of the present invention, obtain the target image to be captured of camera collection, from target image, identify human face region; Determine the ratio in target image shared by human face region, according to the distance of ratio-dependent target to be captured and camera, if described distance meets default condition, then export the first information, user can be pointed out to adjust the distance of target to be captured and camera, to obtain image more clearly; If do not comprise complete face characteristic in human face region, then export the second information, the composition of prompting user adjustment aim image, makes to contain complete human face region in target image, improves shooting quality further.
Refer to Fig. 7, Fig. 7 is the structural representation of the another embodiment of the terminal that the embodiment of the present invention provides.As shown in Figure 7, described terminal can comprise input equipment 701, output equipment 702, processor 703 and memory 704, and above-mentioned input equipment 701, output equipment 702, processor 703 are connected by bus 705 with memory 704.
Wherein, input equipment 701 can be specifically the contact panel of terminal, touch-screen or button, for detecting or receive the instruction of user's input.
Output equipment 702 can be display screen or the audio output device (as microphone) of terminal, for output audio signal, picture signal or letter signal etc.
Memory 704 can be used for storing batch processing code, and input equipment 701, output equipment 702 and processor 703, for calling the program code stored in memory 704, perform and operate as follows:
Processor 703 can be used for:
Obtain the target image to be captured of camera collection, in wherein said target image, comprise face characteristic;
Resolve described target image, to determine the ratio of described face characteristic in described target image;
According to the distance of described ratio-dependent target to be captured and described camera;
Judge whether described distance meets the condition preset;
Output device 702 is used in described distance when meeting default condition, exports the first information.
In the execution mode that some are feasible, processor 703 also can be used for:
Obtain the field depth of described camera;
Processor 703 judges that whether described distance meets the condition preset, and comprising: field depth described in Distance geometry described in comparison, judges described distance whether in described field depth;
Output device 702, when described distance meets default condition, exports the first information, is specially: when described distance is not in described field depth, export the first information.
In the execution mode that some are feasible, output device 702, when described distance is not in described field depth, exports the first information, comprising:
When described distance is greater than the maximum of described field depth, export the distance prompt information of the first color according to described distance;
When described distance is less than the minimum value of described field depth, export the distance prompt information of the second color according to described distance.
In the execution mode that some are feasible, processor 703 also for:
Human face region is identified from described target image;
Judge whether described human face region comprises complete face characteristic;
Output device 702 also for: when described human face region does not comprise complete face characteristic, export the second information.
In the execution mode that some are feasible, processor 703 judges whether described human face region comprises complete face characteristic, comprising:
Judge whether described ratio is greater than default proportion threshold value;
If the determination result is YES, then judge that described human face region does not comprise complete face characteristic;
Output device 702 is not when described human face region comprises complete face characteristic, export the second information, comprise: when described human face region does not comprise complete face characteristic, export the ratio information of the 3rd color according to the ratio of described human face region in described target image.
In specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can be used for the image pickup method performing the description of Fig. 1-3 illustrated embodiment, its embodiment with reference to the associated description of figure 4-6 illustrated embodiment, can not repeat them here.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an image pickup method, is characterized in that, described image pickup method comprises:
Obtain the target image to be captured of camera collection, in wherein said target image, comprise face characteristic;
Resolve described target image, to determine the ratio of described face characteristic in described target image;
According to the distance of described ratio-dependent target to be captured and described camera;
Judge whether described distance meets the condition preset;
If described distance meets default condition, then export the first information.
2. image pickup method according to claim 1, is characterized in that, described image pickup method also comprises:
Obtain the field depth of described camera;
Describedly judge that whether described distance meets the condition preset, comprising:
Field depth described in Distance geometry described in comparison, judges described distance whether in described field depth;
If described distance meets default reminding triggering conditions, then export the first information, comprising:
If described distance not in described field depth, then exports the first information.
3. image pickup method according to claim 2, is characterized in that, if described distance is not in described field depth, then exports the first information, comprising:
If described distance is greater than the maximum of described field depth, then export the distance prompt information of the first color according to described distance;
If described distance is less than the minimum value of described field depth, then export the distance prompt information of the second color according to described distance.
4. image pickup method according to claim 1, is characterized in that, described image pickup method also comprises:
Human face region is identified from described target image;
Judge whether described human face region comprises complete face characteristic;
If described human face region does not comprise complete face characteristic, then export the second information.
5. image pickup method according to claim 4, is characterized in that,
Describedly judge whether described human face region comprises complete face characteristic, comprising:
Judge whether described ratio is greater than default proportion threshold value;
If the determination result is YES, then judge that described human face region does not comprise complete face characteristic;
If described human face region does not comprise complete face characteristic, then export the second information, comprising:
If described human face region does not comprise complete face characteristic, then export the ratio information of the 3rd color according to the ratio of described human face region in described target image.
6. a terminal, is characterized in that, described terminal comprises:
Image acquisition unit, for obtaining the target image to be captured of camera collection, comprises face characteristic in wherein said target image;
Resolution unit, for resolving described target image, to determine the ratio of described face characteristic in described target image;
Determining unit, for the distance according to described ratio-dependent target to be captured and described camera;
First judging unit, for judging whether described distance meets the condition preset;
First Tip element, for when described distance meets default condition, exports the first information.
7. terminal according to claim 6, is characterized in that, described terminal also comprises depth of field acquiring unit,
Described depth of field acquiring unit, for obtaining the field depth of described camera;
Described first judging unit, specifically for field depth described in Distance geometry described in comparison, judges described distance whether in described field depth;
Described first Tip element, specifically for when described distance is not in described field depth, exports the first information.
8. terminal according to claim 7, is characterized in that, described first Tip element, comprising:
First output unit, for when described distance is greater than the maximum of described field depth, exports the distance prompt information of the first color according to described distance;
Second output unit, for when described distance is less than the minimum value of described field depth, exports the distance prompt information of the second color according to described distance.
9. terminal according to claim 6, is characterized in that, described terminal also comprises:
Recognition unit, for identifying human face region from described target image;
Second judging unit, for judging whether described human face region comprises complete face characteristic;
Second Tip element, for when described human face region does not comprise complete face characteristic, exports the second information.
10. terminal according to claim 9, is characterized in that,
Described second judging unit, specifically for judging whether the ratio of described human face region in described target image is greater than default proportion threshold value; If the determination result is YES, then judge that described human face region does not comprise complete face characteristic;
Described second Tip element, specifically for when described human face region does not comprise complete face characteristic, exports the ratio information of the 3rd color according to the ratio of described human face region in described target image.
CN201510519760.8A 2015-08-21 2015-08-21 Shooting method and terminal Pending CN105187719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510519760.8A CN105187719A (en) 2015-08-21 2015-08-21 Shooting method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510519760.8A CN105187719A (en) 2015-08-21 2015-08-21 Shooting method and terminal

Publications (1)

Publication Number Publication Date
CN105187719A true CN105187719A (en) 2015-12-23

Family

ID=54909545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510519760.8A Pending CN105187719A (en) 2015-08-21 2015-08-21 Shooting method and terminal

Country Status (1)

Country Link
CN (1) CN105187719A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635570A (en) * 2015-12-24 2016-06-01 广东欧珀移动通信有限公司 Shooting preview method and system
CN105791685A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105847700A (en) * 2016-05-27 2016-08-10 广东欧珀移动通信有限公司 Shooting method and device
CN105915805A (en) * 2016-06-15 2016-08-31 北京光年无限科技有限公司 Photographing method for intelligent robot
CN106231200A (en) * 2016-08-29 2016-12-14 广东欧珀移动通信有限公司 A kind of photographic method and device
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures
CN107563329A (en) * 2017-09-01 2018-01-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and mobile terminal
CN107577340A (en) * 2017-08-03 2018-01-12 捷开通讯(深圳)有限公司 Method, terminal and the storage device of sight protectio
CN107657218A (en) * 2017-09-12 2018-02-02 广东欧珀移动通信有限公司 Face identification method and Related product
CN108174108A (en) * 2018-03-08 2018-06-15 广州三星通信技术研究有限公司 The method and apparatus and mobile terminal for effect of taking pictures are adjusted in the terminal
CN108197617A (en) * 2017-02-24 2018-06-22 张家口浩扬科技有限公司 A kind of device of image output feedback
CN108737718A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Image pickup method, device and smart machine
CN108734083A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Control method, device, equipment and the storage medium of smart machine
CN108965702A (en) * 2018-07-09 2018-12-07 广东小天才科技有限公司 Shooting guiding method and wearable device
CN109091118A (en) * 2017-06-21 2018-12-28 深圳大森智能科技有限公司 A kind of sign data monitoring system, monitoring method and terminal
CN110785995A (en) * 2018-09-04 2020-02-11 深圳市大疆创新科技有限公司 Shooting control method, device, equipment and storage medium
CN111374489A (en) * 2020-04-22 2020-07-07 深圳市锐吉电子科技有限公司 Intelligent mirror skin measuring method and device
CN111641813A (en) * 2020-05-29 2020-09-08 睿住科技有限公司 Visitor guiding method, building visible intercom system and storage medium
CN111970435A (en) * 2020-08-03 2020-11-20 广东小天才科技有限公司 Method and device for macro photography
CN112836656A (en) * 2021-02-07 2021-05-25 北京迈格威科技有限公司 Equipment control method and device and image acquisition system
CN112904451A (en) * 2021-01-20 2021-06-04 浙江洁特智慧科技有限公司 Presence type inductor
CN113014810A (en) * 2021-02-25 2021-06-22 深圳市慧鲤科技有限公司 Positioning method and device, electronic equipment and storage medium
WO2022042275A1 (en) * 2020-08-28 2022-03-03 华为技术有限公司 Distance measurement method, apparatus, electronic device, and readable storage medium
CN115174803A (en) * 2022-06-20 2022-10-11 平安银行股份有限公司 Automatic photographing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012132277A1 (en) * 2011-03-28 2012-10-04 パナソニック株式会社 Imaging device and live view image display method
CN103150539A (en) * 2013-03-18 2013-06-12 苏州斯普锐智能***有限公司 Bar-code scanner and bar-code scanning method thereof
CN104104867A (en) * 2014-04-28 2014-10-15 三星电子(中国)研发中心 Method for controlling image photographing device for photographing and device thereof
CN104125395A (en) * 2014-05-30 2014-10-29 深圳市中兴移动通信有限公司 Method and device for realizing automatic shooting
CN104853088A (en) * 2015-04-09 2015-08-19 来安县新元机电设备设计有限公司 Method for rapidly focusing a photographing mobile terminal and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012132277A1 (en) * 2011-03-28 2012-10-04 パナソニック株式会社 Imaging device and live view image display method
CN103150539A (en) * 2013-03-18 2013-06-12 苏州斯普锐智能***有限公司 Bar-code scanner and bar-code scanning method thereof
CN104104867A (en) * 2014-04-28 2014-10-15 三星电子(中国)研发中心 Method for controlling image photographing device for photographing and device thereof
CN104125395A (en) * 2014-05-30 2014-10-29 深圳市中兴移动通信有限公司 Method and device for realizing automatic shooting
CN104853088A (en) * 2015-04-09 2015-08-19 来安县新元机电设备设计有限公司 Method for rapidly focusing a photographing mobile terminal and mobile terminal

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635570A (en) * 2015-12-24 2016-06-01 广东欧珀移动通信有限公司 Shooting preview method and system
CN105791685A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105791685B (en) * 2016-02-29 2019-03-12 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN105847700A (en) * 2016-05-27 2016-08-10 广东欧珀移动通信有限公司 Shooting method and device
CN105915805A (en) * 2016-06-15 2016-08-31 北京光年无限科技有限公司 Photographing method for intelligent robot
CN106231200A (en) * 2016-08-29 2016-12-14 广东欧珀移动通信有限公司 A kind of photographic method and device
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures
CN108197617A (en) * 2017-02-24 2018-06-22 张家口浩扬科技有限公司 A kind of device of image output feedback
CN109091118A (en) * 2017-06-21 2018-12-28 深圳大森智能科技有限公司 A kind of sign data monitoring system, monitoring method and terminal
CN107577340A (en) * 2017-08-03 2018-01-12 捷开通讯(深圳)有限公司 Method, terminal and the storage device of sight protectio
CN107577340B (en) * 2017-08-03 2020-01-03 捷开通讯(深圳)有限公司 Eyesight protection method, terminal and storage device
CN107563329A (en) * 2017-09-01 2018-01-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and mobile terminal
CN107657218A (en) * 2017-09-12 2018-02-02 广东欧珀移动通信有限公司 Face identification method and Related product
CN108174108A (en) * 2018-03-08 2018-06-15 广州三星通信技术研究有限公司 The method and apparatus and mobile terminal for effect of taking pictures are adjusted in the terminal
CN108737718A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Image pickup method, device and smart machine
CN108734083A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Control method, device, equipment and the storage medium of smart machine
WO2019179468A1 (en) * 2018-03-21 2019-09-26 北京猎户星空科技有限公司 Control method for smart device, apparatus, device, and storage medium
CN108965702B (en) * 2018-07-09 2020-12-25 广东小天才科技有限公司 Shooting guiding method and wearable device
CN108965702A (en) * 2018-07-09 2018-12-07 广东小天才科技有限公司 Shooting guiding method and wearable device
CN110785995A (en) * 2018-09-04 2020-02-11 深圳市大疆创新科技有限公司 Shooting control method, device, equipment and storage medium
WO2020047745A1 (en) * 2018-09-04 2020-03-12 深圳市大疆创新科技有限公司 Photographing control method, apparatus and device and device and storage medium
CN111374489A (en) * 2020-04-22 2020-07-07 深圳市锐吉电子科技有限公司 Intelligent mirror skin measuring method and device
CN111641813A (en) * 2020-05-29 2020-09-08 睿住科技有限公司 Visitor guiding method, building visible intercom system and storage medium
CN111970435A (en) * 2020-08-03 2020-11-20 广东小天才科技有限公司 Method and device for macro photography
WO2022042275A1 (en) * 2020-08-28 2022-03-03 华为技术有限公司 Distance measurement method, apparatus, electronic device, and readable storage medium
CN112904451A (en) * 2021-01-20 2021-06-04 浙江洁特智慧科技有限公司 Presence type inductor
CN112836656A (en) * 2021-02-07 2021-05-25 北京迈格威科技有限公司 Equipment control method and device and image acquisition system
CN113014810A (en) * 2021-02-25 2021-06-22 深圳市慧鲤科技有限公司 Positioning method and device, electronic equipment and storage medium
CN115174803A (en) * 2022-06-20 2022-10-11 平安银行股份有限公司 Automatic photographing method and related equipment

Similar Documents

Publication Publication Date Title
CN105187719A (en) Shooting method and terminal
EP4207048A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN107945135B (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN105488511B (en) The recognition methods of image and device
US8237853B2 (en) Image sensing apparatus and control method therefor
CN107862653B (en) Image display method, image display device, storage medium and electronic equipment
CN110287671B (en) Verification method and device, electronic equipment and storage medium
EP2009577A1 (en) Image-processing apparatus and method, program, and storage medium
CN110113515B (en) Photographing control method and related product
CN105678242B (en) Focusing method and device under hand-held certificate mode
US10027878B2 (en) Detection of object in digital image
KR20090075540A (en) Digital photographing apparatus and method for controlling the same
US20110267529A1 (en) Imaging apparatus
CN107690804B (en) Image processing method and user terminal
CN105279487A (en) Beauty tool screening method and system
CN104935698A (en) Photographing method of smart terminal, photographing device and smart phone
CN106131441A (en) Photographic method and device, electronic equipment
US20110273604A1 (en) Imaging apparatus
CN111131702A (en) Method and device for acquiring image, storage medium and electronic equipment
CN111970437B (en) Text shooting method, wearable device and storage medium
JP2007094535A (en) Authentication system and authentication method
US9652822B2 (en) Image correcting apparatus, image correcting method and computer readable recording medium recording program thereon
CN105049714B (en) A kind of character image method for previewing and device
CN112597886A (en) Ride fare evasion detection method and device, electronic equipment and storage medium
CN112036311A (en) Image processing method and device based on eye state detection and storage medium

Legal Events

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

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication