Summary of the invention
Main purpose of the present invention can be chosen the view that needs and take for a kind of image acquiring method is provided, and promotes image effect.
The present invention proposes a kind of image acquiring method, comprising:
The view that camera lens is taken in is identified, and extracted the sign of having identified view;
According to the selection of photographer to sign, keep the view related with selected sign;
After carrying out shooting, generate the image that keeps view.
Preferably, the described view that camera lens is taken in is identified, and the step of extracting the sign of having identified view specifically comprises:
Under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.
Preferably, described according to the selection of photographer to sign, the step that keeps the view related with selected sign specifically comprises:
When having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
Preferably, also comprise after described image processing method:
Use background image to replace the part of rejecting in image.
The present invention also proposes a kind of image acquiring device, comprising:
The view identification module is used for the view that camera lens is taken in is identified, and extracts the sign of having identified view;
Take and select module, be used for the selection to sign according to photographer, keep the view related with selected sign;
The image generation module is used for generating the image that keeps view after carrying out shooting.
Preferably, described view identification module specifically is used for:
Under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.
Preferably, described shooting selects module specifically to be used for:
When having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
Preferably, described image processing apparatus also comprises:
The image complementary module, the part that is used for that image is rejected uses background image to replace.
The present invention also proposes a kind of mobile terminal, comprising:
The view identification module is used for the view that camera lens is taken in is identified, and extracts the sign of having identified view;
Take and select module, be used for the selection to sign according to photographer, keep the view related with selected sign;
The image generation module is used for generating the image that keeps view after carrying out shooting.
Preferably, described view identification module specifically is used for:
Under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.
Preferably, described shooting selects module specifically to be used for:
When having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
Preferably, described mobile terminal also comprises:
The image complementary module, the part that is used for that image is rejected uses background image to replace.
The present invention can pass through the identification to personage in taking lens, and provides personage's facial characteristics of identification to select to photographer, keeps the selected personage of photographer in synthetic image, thereby makes photographer can obtain easily the image of required shooting.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, a kind of image acquiring method one embodiment of the present invention is proposed.This image processing method can comprise:
Step S11, the view that camera lens is taken in are identified, and are extracted the sign of having identified view;
Step S12, according to the selection of photographer to sign, keep with selected identifying related view;
Step S13, after carry out taking, generate the image that keeps view.
Above-mentioned steps S11 can specifically comprise: under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.Before image taking, can carry out the selection of screening-mode, such as needs realize that in the present embodiment, scheme can be selected the cleaning pattern of taking pictures.
Above-mentioned character contour feature is one of inherent important clue of human body behavior as a kind of shape facility.Contour feature describing method used in the present invention has star-like skeleton technique, Fourier to describe operator etc.Fourier is described operator and is described the general characteristics of profile with the low frequency part of coefficient, assigns to reflect the microscopic feature of profile with radio-frequency head.The present invention is on the basis of above-mentioned two kinds of profile describing methods, and the profile describing function by boundary point-radius also is described and analyzes the local feature of profile, can to block, the situation robustnesss such as loss of data and deformation are stronger.
Character contour of the present invention extracts with preliminary treatment and comprises the steps: that image denoising, target detection and background segment, shadow removal and profile extract.Image denoising refers to remove and be subject to various noise jamming when obtaining with transmitting image, and these noise jamming can be brought very large inconvenience to subsequent treatment, also affect to a certain extent the visual perception.In order to improve picture quality and to be convenient to various subsequent treatment, the method that image denoising of the present invention adopts gaussian filtering and neighborhood denoising to combine.Target detection of the present invention and background segment comprise the steps: to adopt the movement human in background subtraction point-score detection video sequence, one of model is in time with spatial variations and the background model of adaptive change, then present frame and background model are carried out difference, setting threshold, the binarization segmentation image obtains prospect and background.Shadow removal of the present invention comprises the steps: to remove when detecting moving target, the merging of the moving target that causes, geometry deformation, and the data of track rejection.Profile of the present invention extracts the edge following algorithm that comprises the steps: to adopt based on connectedness, extracts the profile of personage in whole image sequence.
Above-mentioned steps S12 can specifically comprise: when having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
When identifying in the view that camera lens is taken in when having a plurality of personage, the facial characteristics that can extract these a plurality of personages shows photographer, select which personage need to be retained in the image of final generation for photographer, thereby the personage who does not need to keep can be rejected from the view that camera lens is taken in.Thereby after photographer presses shutter execution shooting, can keep the selected character image of photographer and shooting background image etc. in the image of this shooting, non-selected character image has been rejected from view, can not be embodied in the image graph picture of this shooting.
With reference to Fig. 2, in another embodiment of the present invention, also can comprise after above-mentioned steps S13:
Step S14, use background image to replace the part rejected in image.
After above-mentioned non-selected character image is rejected from image, the situation of excalation will appear in the image of this image, so will affect image effect.Can be filled to this disappearance part by intercepting the background image that has entered camera lens in the present embodiment, perhaps fill up this disappearance part according to rebuilding this disappearance background image partly as the background image of camera lens, make image can not affect because excalation occurring whole structure.
Above-mentioned image acquiring method can pass through the identification to personage in taking lens, and provide personage's facial characteristics of identification to select to photographer, keeps the selected personage of photographer in synthetic image, thereby makes photographer can obtain easily the image of required shooting.
With reference to Fig. 3, a kind of image acquiring device 20 1 embodiment of the present invention are proposed.This image processing apparatus 20 can comprise: module 22 and image generation module 23 are selected in view identification module 21, shooting; This view identification module 21 is used for the view that camera lens is taken in is identified, and extracts the sign of having identified view; This is taken and selects module 22, is used for the selection to sign according to photographer, keeps the view related with selected sign; This image generation module 23 is used for generating the image that keeps view after carrying out shooting.
Above-mentioned view identification module 21 can specifically be used for: under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.Before image taking, can carry out the selection of screening-mode, such as needs realize that in the present embodiment, scheme can be selected the cleaning pattern of taking pictures.
Above-mentioned character contour feature is one of inherent important clue of human body behavior as a kind of shape facility.Contour feature describing method commonly used has star-like skeleton technique, Fourier descriptors etc.Fourier is described operator and is described the general characteristics of profile with the low frequency part of coefficient, assigns to reflect the microscopic feature of profile with radio-frequency head.On the basis of above-mentioned two kinds of profile describing methods, go back a kind of profile describing function that is called boundary point-radius of definable, can the local feature of profile be described and analyze, to block, the situation robustness such as loss of data and deformation is stronger.
Character contour extracts with pre-treatment step as follows: image denoising, target detection and background segment, shadow removal and profile extract.This image denoising: video sequence can be subject to various noise jamming obtaining and transmit often, and these noises can bring very large inconvenience to subsequent treatment, also affect to a certain extent the visual perception.In order to improve picture quality and to be convenient to various subsequent treatment, the method for many removal noises has been proposed, the method that algorithm adopts gaussian filtering and neighborhood denoising to combine.This target detection and background segment: adopt the movement human in background subtraction point-score detection video sequence, one of model is in time with spatial variations and the background model of adaptive change, then present frame and background model are carried out difference, setting threshold, the binarization segmentation image obtains prospect and background.This shadow removal: when detecting moving target, the shade of moving target projection also can detect the part into sport foreground, causes merging, the geometry deformation of moving target, even makes track rejection.This profile extracts: adopt the edge following algorithm based on connectedness, obtain to extract the profile of pedestrian in whole image sequence.
Above-mentioned shooting selects module 22 specifically to be used for: when having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
When identifying in the view that camera lens is taken in when having a plurality of personage, the facial characteristics that can extract these a plurality of personages shows photographer, select which personage need to be retained in the image of final generation for photographer, thereby the personage who does not need to keep can be rejected from the view that camera lens is taken in.Thereby after photographer presses shutter execution shooting, can keep the selected character image of photographer and shooting background image etc. in the image of this shooting, non-selected character image has been rejected from view, can not be embodied in the image graph picture of this shooting.
With reference to Fig. 4, in another embodiment of the present invention, above-mentioned image processing apparatus 20 also can comprise: image complementary module 24, the part that is used for that image is rejected uses background image to replace.
After above-mentioned non-selected character image is rejected from image, the situation of excalation will appear in the image of this image, so will affect image effect.Can be filled to this disappearance part by intercepting the background image that has entered camera lens in the present embodiment, perhaps fill up this disappearance part according to rebuilding this disappearance background image partly as the background image of camera lens, make image can not affect because excalation occurring whole structure.
Above-mentioned image acquiring device 20, can be by the identification to personage in taking lens, and provide personage's facial characteristics of identification to select to photographer, keep the selected personage of photographer in synthetic image, thereby make photographer can obtain easily the image of required shooting.
With reference to Fig. 5, an embodiment of a kind of mobile terminal 30 of the present invention is proposed.This mobile terminal 30 can comprise: module 22 and image generation module 23 are selected in view identification module 21, shooting; This view identification module 21 is used for the view that camera lens is taken in is identified, and extracts the sign of having identified view; This is taken and selects module 22, is used for the selection to sign according to photographer, keeps the view related with selected sign; This image generation module 23 is used for generating the image that keeps view after carrying out shooting.
Above-mentioned view identification module 21 can specifically be used for: under the cleaning pattern of taking pictures, personage's overall profile that camera lens is taken in is identified, and extracted personage's face as the sign of personage's overall profile.
Above-mentioned shooting selects module 22 specifically to be used for: when having a plurality of facial sign, described a plurality of facial signs are offered photographer select, the related personage's overall profile of not selected facial sign is rejected to allow to carry out from image again take.
Above-mentioned mobile terminal 30 also can comprise: image complementary module 24, the part that is used for that image is rejected uses background image to replace.
Above-mentioned view identification module 21, shooting selection module 22, image generation module 23 and image complementary module 24 specifically can be described in above-mentioned embodiment.
Image acquiring method in the present invention, image acquiring device, and mobile terminal can be used obtaining of still image and dynamic image.
The above is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.