CN108833794A - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN108833794A
CN108833794A CN201810983325.4A CN201810983325A CN108833794A CN 108833794 A CN108833794 A CN 108833794A CN 201810983325 A CN201810983325 A CN 201810983325A CN 108833794 A CN108833794 A CN 108833794A
Authority
CN
China
Prior art keywords
image
rear camera
mobile terminal
preset
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.)
Granted
Application number
CN201810983325.4A
Other languages
Chinese (zh)
Other versions
CN108833794B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810983325.4A priority Critical patent/CN108833794B/en
Publication of CN108833794A publication Critical patent/CN108833794A/en
Application granted granted Critical
Publication of CN108833794B publication Critical patent/CN108833794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of image pickup method and mobile terminal, to solve after current photographer shoots the person of being taken using mobile terminal rear camera, the problem of shooting effect difference.The method is applied to be equipped with the mobile terminal of front camera and rear camera, including:Man face image acquiring is carried out respectively by the front camera and the rear camera;When the front camera does not collect target face, and the rear camera collects the target face, judge whether the rear camera acquired image meets preset imaging effect, the target face is set in the terminal in advance;When the acquired image meets preset imaging effect, shot by the rear camera.

Description

A kind of image pickup method and mobile terminal
Technical field
The present invention relates to computer field more particularly to a kind of image pickup methods and mobile terminal.
Background technique
Mobile terminal with shooting function is very popular, and in order to adapt to different photographed scenes, mobile terminal is usual Front camera and rear camera can be assembled respectively in front and back, and under normal circumstances, the imaging of rear camera Effect would generally be better than front camera, so, when the person of being taken wishes through rear camera to be oneself shooting, usually need It wants other photographer to cooperate, namely needs rear camera of the photographer by mobile terminal, for the person's of being taken progress Shooting.
However, for the limited shooting skill of photographer, and to the courtesy and respect of photographer, the person of being taken is generally not It may require that shooting effect, and photographer's longer time will not be occupied, generally not so as to cause the satisfaction to shooting effect It is high.So needing to propose a kind of image pickup method, the person of being taken is clapped using the rear camera of mobile terminal in photographer After taking the photograph, the person of being taken is improved to the satisfaction of image.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve current photographer using after mobile terminal It sets after camera shoots the person of being taken, the problem of shooting effect difference.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, the method is applied to be equipped with preposition camera shooting the embodiment of the invention provides a kind of image pickup method The mobile terminal of head and rear camera, including:
Man face image acquiring is carried out respectively by the front camera and the rear camera;
When the front camera does not collect target face, and the rear camera collects the target face When, judge whether the rear camera acquired image meets preset imaging effect, the target face is to exist in advance It is set in mobile terminal;
When the acquired image meets preset imaging effect, shot by the rear camera.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, the mobile terminal is equipped with front camera With the mobile terminal of rear camera, including:Acquisition unit, judging unit and shooting unit, wherein
The acquisition unit, for carrying out facial image respectively by the front camera and the rear camera and adopting Collection;
The judging unit, for not collecting target face when the front camera, and the rear camera is adopted When collecting the target face, judge whether the rear camera acquired image meets preset imaging effect, it is described Target face is set in the terminal in advance;
The shooting unit, for passing through the postposition when the acquired image meets preset imaging effect Camera is shot.
The third aspect, the embodiment of the invention also provides a kind of terminal device, which includes processor, memory And it is stored in the computer program that can be run on the memory and on the processor, the computer program is by the place Manage the step of realizing the above method when device executes.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium The step of storing computer program on storage media, the above method realized when the computer program is executed by processor.
In embodiments of the present invention, when the mobile terminal for being equipped with front camera and rear camera enters screening-mode Afterwards, man face image acquiring is carried out respectively by two cameras, when front camera does not collect target face, and rear camera When collecting target face, judge whether rear camera acquired image meets preset imaging effect, then when meeting It is shot by rear camera.That is, after opening image pickup mode, when mobile terminal has determined that non-targeted face is (right The photographer answered) by rear camera be target face (the corresponding person of being taken) shoot when, judge collected figure Seem it is no reach preset effect, when reaching if pass through rear camera and shot.According to this method, the person of being taken can be with It oneself will be set as target face in advance and preset imaging effect requirement, when mobile terminal judges that meeting this requires, It can voluntarily shoot, so as to improve shooting effect after photographer takes pictures, to improve the person of being taken to image Satisfaction.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram for the image pickup method that one embodiment of the invention provides;
Fig. 2 is the flow diagram for the image pickup method that one embodiment of the invention provides;
Fig. 3 is the structural block diagram for the mobile terminal that one embodiment of the invention provides;
A kind of hardware structural diagram of Fig. 4 mobile terminal of embodiment to realize the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
As previously mentioned, when the person of being taken wishes through rear camera to be oneself shooting, it usually needs shooting in addition Person cooperates, for example the person of being taken can be the owner of mobile terminal, when owner wishes for oneself shooting with specific building Natural landscape photo or when wishing to shoot photograph of the whole family for oneself and household, it will usually request passerby as photographer, And owner can not excessively require imaging effect at this time, and will not occupy passerby's longer time.That is, passerby is to mobile whole End take pictures that performance is unfamiliar with, technique for taking is not high and the time it is shorter when, shooting effect is generally undesirable, also allows for Owner is not high to the satisfaction of shooting effect.
Based on drawbacks described above, the present embodiment provides a kind of image pickup methods, to solve current photographer using after mobile terminal It sets after camera shoots the person of being taken, the problem of shooting effect difference improves shooting effect, to mention to a certain extent Satisfaction of the height person of being taken to image.This method can using in the terminal, can specifically apply currently compared with In intelligent mobile terminal for prevalence, and it can be equipped with front camera and rear camera on mobile terminals, and for The quantity of front camera and rear camera, without limitation.The executing subject that then assume that this method is mobile terminal.
Fig. 1 is the flow diagram for the image pickup method that one embodiment of the invention provides, and be may comprise steps of:
Step 11:Man face image acquiring is carried out respectively by front camera and rear camera.
When person's of being taken (being referred to as target user) is expected that by and (may also be referred to as utilizing) mobile terminal to oneself When being shot, it will usually screening-mode is opened in the terminal, such as in currently more popular intelligent mobile terminal, User can be by clicking camera or other are used to open the application of shooting function, to open screening-mode, so as to utilize Camera carries out Image Acquisition.Specifically such as after opening screening-mode, Image Acquisition can be carried out first with front camera, Or Image Acquisition is carried out first with rear camera.
By the agency of above, in order to reach preferable shooting effect, it is generally desirable to pass through rear camera by target user It is shot, so can generally confirm whether the rear camera of mobile terminal is acquiring image after opening screening-mode, and It is displayed in the display interface.That is, confirmation is fast behind the door when triggering, whether the photo of shooting is the collected figure of rear camera Picture.Hereafter, photographer can be that target user shoots by the rear camera of mobile terminal.
This step is clapped to determine whether photographed scene is user in addition to target user for target user It takes the photograph, the positional relationship that can use mobile terminal front camera and rear camera is determined, specifically, front camera and rear camera For two opposite directions, and photographer is aspectant with the person of being taken, it is possible to pass through front camera and rear camera Man face image acquiring is carried out respectively, to judge photographer and the person of being taken, if meet above-mentioned photographed scene.
Step 12:When front camera does not collect target face, and rear camera collects target face, judgement Whether rear camera acquired image meets preset imaging effect.
Recognition of face can be a kind of biological identification technology for carrying out identification based on facial feature information of people, lead to Image or video flowing of the camera acquisition containing face, and detection and tracking face in the picture are crossed, and then to the people detected Face carries out face recognition, usually also referred to as Identification of Images, face recognition.
In this step, can determine whether photographed scene is user in addition to target user by recognition of face, It is being that target user shoots.Specifically, it can be determined otherwise by being known to target face, and target Face can be to be set in the terminal in advance, for example target face can be the owner of mobile terminal and be adopted using camera Collect the face-image of oneself and sets.By the agency of above, after opening screening-mode, it will usually utilize rear camera meeting Image Acquisition is carried out, but recognition of face can be carried out using front camera and rear camera simultaneously in this step, determines that front camera is adopted Whether including whether including target face in target face and rear camera acquired image in the image collected, when After being determined for compliance with above-mentioned photographed scene, then it may determine that whether rear camera acquired image meets preset imaging effect Fruit.
Further, for judging whether to meet photographed scene, it can first judge whether front camera collects target Face, if do not collect namely collected face do not include target face, may determine that whether rear camera collects Target face, if collecting at this time, can determine to meet the user in addition to target user is being target user's progress The photographed scene of shooting;If rear camera does not collect target face, deterministic process can be re-started, or passes through display Interface is prompted, for example the prompt of " finding owner " can be shown in display interface, to assist photographer to utilize as early as possible Rear camera collects target face.In addition it is also possible to first judge whether rear camera collects target face, if acquisition It arrives, then may determine that whether front camera collects target face, if not collecting, can also determine to meet except target User other than user is being the photographed scene that target user is shot.
It further, may include that mobile terminal is imitated for the preset composition of screening-mode for preset imaging effect Fruit, human face expression effect etc. namely the imaging effect can be used for characterizing the effect of each element in image.For patterning effect For, it can be the position of personage, landscape in the picture, for example by machine learning, can identify in the acquired images Personage, animal, plant, building, natural landscape etc. out specifically such as can be people so as to preset some patterning effects The lower-left or lower right of object building in the picture;For human face expression effect, it can be and identify that expression is being smiled, Deng.These preset imaging effects can be what mobile terminal was downloaded from server-side, be also possible to be shot according to the history of user Behavior is obtained by machine learning.For the screening-mode, it is properly termed as AI intelligent mode in practical applications, namely by moving Dynamic terminal carries out intelligent decision.
Hereafter, it can be determined that whether rear camera acquired image meets preset imaging effect, that is, in determination After meeting above-mentioned photographed scene out, it can be determined that rear camera acquired image is made whether to meet preset imaging effect Fruit, for example can be described in leading portion, after identifying building and personage in the acquired images, it can be determined that personage It whether is personage in the lower left or lower right of building with the positional relationship of building in the picture;For another example when collected After identifying face in image, it can be determined that whether human face expression is in smile state, etc..And in practical applications, Ke Yigen Real-time judge is carried out according to the real-time acquired image of mobile terminal, namely after acquired image changes, for example examined Measure the appearance such as position, the angle of mobile terminal variation after, then can be judged with real-time perfoming, or according to the preset time interval into Row judgement, such as judgement in 1 second are primary, etc..
Step 13:When acquired image meets preset imaging effect, shot by rear camera.
By the agency of, preset imaging effect can be mobile terminal and be used for table for screening-mode is preset in abovementioned steps Levy patterning effect, the human face expression effect of each element etc. in image, and can according to acquired image to whether meet it is pre- If imaging effect judged that then this step is when judging that acquired image meets preset imaging effect, by rear It sets camera to be shot, for example to be shot, and the image of shooting can be stored in mobile shifting with automatic trigger shutter In the memory of dynamic terminal.
In practical applications, it is possible to the case where acquired image is unsatisfactory for preset imaging effect occur, so being In this case, promotion imaging effect as much as possible, in one embodiment, this method can also include:
When acquired image does not meet preset imaging effect, judge whether acquired image meets preset figure As quality requirements are continuously shot when meeting the pre-set image condition by rear camera.
Specifically, which can be used for through optical technology index characterization each in image, such as can be with Including white balance index, exposure index, focus index, sensitivity index etc..For example server-side can be to popular image Machine learning is carried out, obtains the combination of each optical technology index, and the combination is determined as picture quality condition, it can also be by moving Dynamic terminal carries out machine learning according to the favorite image that user selectes, so that it is determined that going out the image comprising each optical technology index Quality requirements.And in practical applications, machine learning is constantly evolved, for example can be changed according to public aesthetic tendency, Or be changed according to the favorite different images of user, so existing picture quality condition might have deviation, at this time can To be continuously shot by rear camera, for example it can be shot and be saved with continuous trigger shutter.
In one embodiment, in order to save process resource and storage resource, " good enough " can shot Just stop being continuously shot after image, so, this method can also include:It is preset when being higher than in the image being continuously shot there are weight When the image of weight, then stop shooting.Wherein, which can determine according to the pixel of image, for characterizing the view of image Feel effect.Specifically, pixel extraction can be carried out to popular image, pass through pixel by way of machine learning Position, combination, the size etc. of point, the available weight for being similar to evaluate visual effect, exist when in the image being continuously shot When weight is higher than the image of preset weights, then explanation has taken the preferable image of visual effect, can then stop shooting at this time, And the image that will be above preset weights is stored.
Namely in the method, mobile terminal can without photographer trip key in the case where, make photographer without Perception shoot, and stores in memory, and in practical applications, photographer can also be pressed to the figure of shutter generation As being saved, selected by target user.
The method provided using the above embodiment of the present invention, when the movement for being equipped with front camera and rear camera After terminal enters screening-mode, man face image acquiring is carried out respectively by two cameras, when front camera does not collect target Face, and when rear camera collects target face, judge rear camera acquired image whether meet it is preset at As effect, then passes through rear camera when meeting and shot.That is, after opening image pickup mode, when mobile terminal determines There is non-targeted face (corresponding photographer) to shoot by rear camera for target face (the corresponding person of being taken) out When, judge whether acquired image reaches preset effect, when reaching if pass through rear camera and shot.According to this Method, the person of being taken oneself will can be set as target face in advance and preset imaging effect requirement, when mobile terminal is sentenced It is disconnected go out when meeting this and requiring, can voluntarily shoot, so as to shooting effect be improved, to mention after photographer takes pictures Satisfaction of the height person of being taken to image.
Based on the comparable invention thinking of above method embodiment, the present embodiment provides another image pickup method, to solve After photographer shoots the person of being taken using mobile terminal rear camera at present, the problem of shooting effect difference, certain Shooting effect is improved in degree, to improve the person of being taken to the satisfaction of image.Assuming that the executing subject of this method can also To be mobile terminal.
Fig. 2 is the flow diagram for the image pickup method that one embodiment of the invention provides, and be may comprise steps of:
Step 21:According to collected sample image, and the personage's desired locations specified in sample image, generate packet The image template of the relationship containing image element position.
By the agency of, imaging effect may include patterning effect, for example obtained by machine learning in the aforementioned embodiment Patterning effect etc..And in this step, self-setting can be carried out to patterning effect by user.Specifically, user can be first Sample image is collected using the camera of mobile terminal, for example can be comprising specific buildings, specific natural landscape etc., and Refer in sample image and make personage's desired locations, for example can be building left or right side, the lower section of specific natural landscape Deng, thus mobile terminal can personage's desired locations according to sample image and in sample image, generating includes pictorial element The image template of positional relationship.For example it may include the positional relationship of personage and specific buildings in the image template.
Step 22:Preset stylistic effects instruction is received, determines preset stylistic effects.
Stylistic effects can refer to the various special-effects for realizing image, for example, may include various filtering effects, Or user is to preset color effect of image etc., wherein filtering effects may include it is stylized, fuzzy, sharpen, rendering etc., and The developer of mobile terminal can generate the various stylistic effects for being easy to user's understanding according to the combination of various filtering effects, than Such as personage's effect, landscape effect, movement effects, black and white effect.And in order to shoot the desired stylistic effects of user, In this step, preset stylistic effects instruction can also be received after the relationship of setting position, thus the style effect of specified image Fruit, for example receive preset personage's effect, landscape effect, movement effects, black and white effect etc., to specify the style of image to imitate Fruit, be also possible to the specified various filters to image includes the combination of sequence and degree.
It should be noted that step 21 and step 22 execution sequence in no particular order, it can executed after first carrying out step 21 Step 22, step 21 or after first carrying out step 22 is executed, also may be performed simultaneously.
Step 23:Man face image acquiring is carried out respectively by front camera and rear camera.
This step can be similar with the step 11 of previous embodiment, can be distinguished by front camera and rear camera Man face image acquiring is carried out, so that it is determined that whether photographed scene is user in addition to target user out, it is being target user It is shot, details are not described herein again.
Step 24:When front camera does not collect target face, and rear camera collects the target face, Judge whether the matching degree of rear camera acquired image and image template is more than or equal to preset threshold.
If introduced above, after determining photographed scene is above-mentioned scene, it can be determined that the collected figure of rear camera As the matching degree with image template shows each image in acquired image if matching degree is more than or equal to preset threshold The positional relationship of element is close with desired positional relationship.
Step 25:When acquired image and the matching degree of image template are higher than preset threshold, pass through rear camera It is shot.
When the positional relationship of pictorial element each in acquired image is close with positional relationship desired in image template, It can then be shot by rear camera.
Preset stylistic effects are had confirmed in abovementioned steps, then in order to further increase the satisfaction to imaging effect Degree is shot by rear camera, may include:By rear camera, shot with preset stylistic effects. It specifically, can be when collecting image, and being more than or equal to preset threshold with the matching degree of image template, by stylistic effects Preset stylistic effects are set as, then are shot by triggering shutter, and in practical applications, stylistic effects and touching are set Shutter is sent out, can be executed on backstage, to accomplish user's unaware.
In practical applications, it is possible to the acquired image and matching degree of image template is lower namely collected figure As in, the positional relationship of each pictorial element differs farther out with image template set by user, collects at this time in order to improve Image and image template matching degree, in one embodiment, this step can also include:
When acquired image and the matching degree of image template are less than preset threshold, according to acquired image and image Template determines the displacement and/or rotation direction of mobile terminal;According to the displacement and/or rotation direction determined, by mobile whole End is prompted.
It, can be according to acquired image when the matching degree of acquired image and image template is lower in this step With image template, the displacement and/or rotation direction of mobile terminal are determined, namely position and/or direction are carried out to mobile terminal Correction.Specifically, using the mode of images match, displacement and amount of spin that mobile terminal needs are determined.Can first it divide It is other that feature extraction is carried out to image template and acquired image, and the feature extraction result of two images is matched, it utilizes The location and shape of similar feature respectively in the picture determine displacement and/or rotation direction that mobile terminal needs.
After determining displacement and/or rotation direction, shifting can be passed through according to the displacement and/or rotation direction determined Dynamic terminal is prompted, and so as to subsequent after mobile terminal is subjected to displacement or is rotated, continues to judge that rear camera is collected Whether the matching degree of image and image template is more than or equal to preset threshold.
In practical applications, it is possible to for the case where mistake or temporary variations are arranged, acquired image and figure occur As the matching degree of template is less than preset threshold, in order in this case, promotion imaging effect as much as possible, in a kind of embodiment party In formula, this method can also include:
When acquired image and the matching degree of image template are less than preset threshold, judge whether acquired image is full The preset picture quality condition of foot is continuously shot when meeting the pre-set image condition by rear camera.
When in the image being continuously shot there are weight be higher than preset weights image when, then stop shooting.
Similar to the above embodimentsly, which determines according to the pixel of image, for characterizing the visual effect of image, And the picture quality can be used for characterizing each optical technology index in image.Specific implementation can be with above-described embodiment class Seemingly, details are not described herein again.
The method provided using the above embodiment of the present invention, can be with capturing sample image, and designated person desired locations, And the image template comprising image element position relationship is set, when the mobile terminal for being equipped with front camera and rear camera Into after screening-mode, man face image acquiring is carried out respectively by two cameras, when front camera does not collect target face, And rear camera is when collecting target face, judge rear camera acquired image and image template whether match compared with Height then passes through rear camera when higher and is shot.That is, first setting image template according to demand, mould is imaged opening After formula, when mobile terminal has determined that non-targeted face (corresponding photographer) is (corresponding for target face by rear camera The person of being taken) when being shot, judge whether acquired image is consistent with image template, if being consistent, taken the photograph by postposition As head is shot.According to this method, the person of being taken oneself can will be set as target face in advance and preset comprising position The image template for setting relationship can voluntarily be shot when mobile terminal judges that meeting this requires, so as to photographer into After row is taken pictures, shooting effect is improved, to improve the person of being taken to the satisfaction of image.
Based on the comparable invention thinking of above method embodiment, the embodiment of the present invention provides a kind of mobile terminal, with solution When certainly installing application program, elapsed time is excessive, installation effectiveness is low, shortens the time of installation application program to a certain extent, To improve installation effectiveness.Fig. 3 is the structural block diagram for the mobile terminal that one embodiment of the invention provides, which can be with Including:Acquisition unit 31, judging unit 32 and shooting unit 33, wherein
The acquisition unit 31 can be used for carrying out facial image respectively by front camera and rear camera adopting Collection;
The judging unit 32 can be used for not collecting target face when front camera, and rear camera acquires When to the target face, judge whether rear camera acquired image meets preset imaging effect, the target person Face is set in the terminal in advance;
The shooting unit 33 can be used for when the acquired image meets preset imaging effect, by rear Camera is set to be shot.
In one embodiment, the mobile terminal further includes the first setting unit, be can be used for:
Before the execution of acquisition unit 31 carries out man face image acquiring respectively by front camera and rear camera,
According to collected sample image, and the personage's desired locations specified in the sample image, generation include The image template of image element position relationship;Then
The judging unit 32, can be used for:
It is default to judge whether the matching degree of rear camera acquired image and described image template is more than or equal to Threshold value;Then
The shooting unit 33, can be used for:
When the matching degree of the acquired image and described image template is more than or equal to preset threshold, by rear Camera is set to be shot.
In one embodiment, the mobile terminal further includes the second setting unit, be can be used for:
Before the execution of acquisition unit 31 carries out man face image acquiring respectively by front camera and rear camera,
Preset stylistic effects instruction is received, determines preset stylistic effects;Then
The shooting unit 33, can be used for:
By rear camera, shot with the preset stylistic effects.
In one embodiment, the mobile terminal further includes determination unit, prompt unit, wherein
The determination unit, for when the matching degree of acquired image and described image template is less than preset threshold, According to acquired image and described image template, the displacement and/or rotation direction of mobile terminal are determined;
The prompt unit, for being prompted by mobile terminal according to the displacement and/or rotation direction determined.
In one embodiment, the judging unit 32, can be also used for:
When acquired image does not meet preset imaging effect, judge whether acquired image meets preset figure As quality requirements;
The shooting unit 33, can be also used for:
When meeting the pre-set image condition, it is continuously shot using rear camera;
When in the image being continuously shot there are weight be higher than preset weights image when, then stop shooting, the weight root It is determined according to the pixel of image, for characterizing the visual effect of image.
As seen from the above-described embodiment, when the mobile terminal for being equipped with front camera and rear camera enters screening-mode Afterwards, man face image acquiring is carried out respectively by two cameras, when front camera does not collect target face, and rear camera When collecting target face, judge whether rear camera acquired image meets preset imaging effect, then when meeting It is shot by rear camera.That is, after opening image pickup mode, when mobile terminal has determined that non-targeted face is (right The photographer answered) by rear camera be target face (the corresponding person of being taken) shoot when, judge collected figure Seem it is no reach preset effect, when reaching if pass through rear camera and shot.According to this method, the person of being taken can be with It oneself will be set as target face in advance and preset imaging effect requirement, when mobile terminal judges that meeting this requires, It can voluntarily shoot, so as to improve shooting effect after photographer takes pictures, to improve the person of being taken to image Satisfaction.
A kind of hardware structural diagram of Fig. 4 mobile terminal of each embodiment to realize the present invention.It can be realized Fig. 1's The each process realized in embodiment of the method.To avoid repeating, which is not described herein again.
The mobile terminal 400 includes but is not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated Enter unit 404, sensor 405, display unit 406, object input unit 407, interface unit 408, memory 409, processor The components such as 410 and power supply 411.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 3 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, input unit 404 can be used for executing operations described below:
Man face image acquiring is carried out respectively by front camera and rear camera;
Processor 410 can be used for executing operations described below:
When the front camera does not collect target face, and the rear camera collects the target face When, judge whether the rear camera acquired image meets preset imaging effect, the target face is to exist in advance It is set in mobile terminal;
When the acquired image meets preset imaging effect, shot by the rear camera.
According to mobile terminal provided in this embodiment, when be equipped with the mobile terminal of front camera and rear camera into After entering screening-mode, man face image acquiring is carried out respectively by two cameras, when front camera does not collect target face, and When rear camera collects target face, judge whether rear camera acquired image meets preset imaging effect, Then pass through rear camera when meeting to be shot.That is, after opening image pickup mode, when mobile terminal has determined non-mesh When mark face (corresponding photographer) is shot by rear camera for target face (the corresponding person of being taken), judgement is adopted Whether the image collected reaches preset effect, when reaching if pass through rear camera and shot.According to this method, clapped The person of taking the photograph oneself will can be set as target face in advance and preset imaging effect requirement, judge to meet when mobile terminal and be somebody's turn to do It is required that when, it can voluntarily shoot, so as to improve shooting effect after photographer takes pictures, to improve the person of being taken To the satisfaction of image.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 401 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 402 for object and accesses, as helpful object is received It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 403 can be received by radio frequency unit 401 or network module 402 or in memory 409 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loudspeaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor (Graphics Processing Unit, GPU) 1031 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 401 is converted in the case where telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is used to show the information by object input or is supplied to the information of object.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
Object input unit 407 can be used for receiving the number or character information of input, and generate pair with mobile terminal As setting and the related key signals input of function control.Specifically, object input unit 407 include touch panel 4071 and Other input equipments 4072.Touch panel 4071, also referred to as touch screen, the touch operation of collectible object on it or nearby (for example object uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071 Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection The touch orientation of device test object, and touch operation bring signal is detected, transmit a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 4071.In addition to touch panel 4071, object input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touching The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 400 or can be used in 400 He of mobile terminal Data are transmitted between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, object interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, and memory 409 is stored in On memory 409 and the computer program that can run on the processor 410, the computer program are executed by processor 410 Each process of the above-mentioned shooting image pickup method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned shooting image pickup method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (11)

1. a kind of image pickup method, which is characterized in that the method is applied to be equipped with the shifting of front camera and rear camera Dynamic terminal, including:
Man face image acquiring is carried out respectively by the front camera and the rear camera;
When the front camera does not collect target face, and the rear camera collects the target face, sentence Whether the rear camera acquired image of breaking meets preset imaging effect, and the target face is in advance mobile whole It is set in end;
When the acquired image meets preset imaging effect, shot by the rear camera.
2. the method as described in claim 1, which is characterized in that described to pass through the front camera and the rear camera Before carrying out man face image acquiring respectively, the method also includes:
According to collected sample image, and the personage's desired locations specified in the sample image, generating includes image The image template of element position relationship;Then
It is described to judge whether the rear camera acquired image meets preset imaging effect, including:
It is default to judge whether the matching degree of the rear camera acquired image and described image template is more than or equal to Threshold value;Then
It is described to be shot when the acquired image meets preset imaging effect by the rear camera, packet It includes:
When the matching degree of the acquired image and described image template is more than or equal to the preset threshold, pass through institute Rear camera is stated to be shot.
3. method according to claim 2, which is characterized in that described to pass through the front camera and the rear camera Before carrying out man face image acquiring respectively, the method also includes:
Preset stylistic effects instruction is received, determines preset stylistic effects;Then
It is described to be shot by the rear camera, including:
By the rear camera, shot with the preset stylistic effects.
4. method according to claim 2, which is characterized in that the method also includes:
When the matching degree of the acquired image and described image template is less than preset threshold, according to the collected figure Picture and described image template, determine the displacement and/or rotation direction of the mobile terminal;
According to the displacement determined and/or rotation direction, prompted by the mobile terminal.
5. the method as described in claim 1, which is characterized in that the method also includes:
When the acquired image does not meet preset imaging effect, it is default to judge whether the acquired image meets Picture quality condition;
When meeting the pre-set image condition, it is continuously shot using the rear camera;
When in the image being continuously shot there are weight be higher than preset weights image when, then stop shooting, the weight is according to figure The pixel of picture determines, for characterizing the visual effect of image.
6. a kind of mobile terminal, which is characterized in that the mobile terminal is equipped with the movement of front camera and rear camera Terminal, including:Acquisition unit, judging unit and shooting unit, wherein
The acquisition unit, for carrying out man face image acquiring respectively by the front camera and the rear camera;
The judging unit, for not collecting target face when the front camera, and the rear camera collects When the target face, judge whether the rear camera acquired image meets preset imaging effect, the target Face is set in the terminal in advance;
The shooting unit, for being imaged by the postposition when the acquired image meets preset imaging effect Head is shot.
7. mobile terminal as claimed in claim 6, which is characterized in that the mobile terminal further includes the first setting unit, is used In:
Before acquisition unit execution carries out man face image acquiring respectively by the front camera and the rear camera,
According to collected sample image, and the personage's desired locations specified in the sample image, generating includes image The image template of element position relationship;Then
The judging unit, is used for:
It is default to judge whether the matching degree of the rear camera acquired image and described image template is more than or equal to Threshold value;Then
The shooting unit, is used for:
When the matching degree of the acquired image and described image template is more than or equal to the preset threshold, pass through institute Rear camera is stated to be shot.
8. mobile terminal as claimed in claim 7, which is characterized in that the mobile terminal further includes the second setting unit, is used In:
Before acquisition unit execution carries out man face image acquiring respectively by the front camera and the rear camera,
Preset stylistic effects instruction is received, determines preset stylistic effects;Then
The shooting unit, is used for:
By the rear camera, shot with the preset stylistic effects.
9. mobile terminal as claimed in claim 7, which is characterized in that the mobile terminal further includes determination unit, prompt list Member, wherein
The determination unit, for when the matching degree of the acquired image and described image template is less than preset threshold, According to the acquired image and described image template, the displacement and/or rotation direction of the mobile terminal are determined;
The prompt unit, for being mentioned by the mobile terminal according to the displacement and/or rotation direction determined Show.
10. mobile terminal as claimed in claim 6, which is characterized in that the judging unit is also used to:
When the acquired image does not meet preset imaging effect, it is default to judge whether the acquired image meets Picture quality condition;
The shooting unit, is also used to:
When meeting the pre-set image condition, it is continuously shot using the rear camera;.
When in the image being continuously shot there are weight be higher than preset weights image when, then stop shooting, the weight is according to figure The pixel of picture determines, for characterizing the visual effect of image.
11. a kind of mobile terminal, which is characterized in that including:It memory, processor and is stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in image pickup method the step of.
CN201810983325.4A 2018-08-27 2018-08-27 Shooting method and mobile terminal Active CN108833794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810983325.4A CN108833794B (en) 2018-08-27 2018-08-27 Shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810983325.4A CN108833794B (en) 2018-08-27 2018-08-27 Shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108833794A true CN108833794A (en) 2018-11-16
CN108833794B CN108833794B (en) 2020-11-10

Family

ID=64151560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810983325.4A Active CN108833794B (en) 2018-08-27 2018-08-27 Shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108833794B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995509A (en) * 2021-02-24 2021-06-18 深圳市沃特沃德信息有限公司 Camera switching method and device based on mobile terminal and computer equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168418A (en) * 2014-06-30 2014-11-26 宇龙计算机通信科技(深圳)有限公司 Image acquisition device, image acquisition method and terminal
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN104539836A (en) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 Terminal
CN104536559A (en) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 Terminal control method
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104935698A (en) * 2015-06-23 2015-09-23 上海卓易科技股份有限公司 Photographing method of smart terminal, photographing device and smart phone
CN106231175A (en) * 2016-07-09 2016-12-14 东莞市华睿电子科技有限公司 A kind of method that terminal gesture is taken pictures
CN106534673A (en) * 2016-10-26 2017-03-22 上海与德信息技术有限公司 Feature recognition-based photographing method and device
CN107613193A (en) * 2017-08-24 2018-01-19 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN104168418A (en) * 2014-06-30 2014-11-26 宇龙计算机通信科技(深圳)有限公司 Image acquisition device, image acquisition method and terminal
CN104539836A (en) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 Terminal
CN104536559A (en) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 Terminal control method
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104935698A (en) * 2015-06-23 2015-09-23 上海卓易科技股份有限公司 Photographing method of smart terminal, photographing device and smart phone
CN106231175A (en) * 2016-07-09 2016-12-14 东莞市华睿电子科技有限公司 A kind of method that terminal gesture is taken pictures
CN106534673A (en) * 2016-10-26 2017-03-22 上海与德信息技术有限公司 Feature recognition-based photographing method and device
CN107613193A (en) * 2017-08-24 2018-01-19 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995509A (en) * 2021-02-24 2021-06-18 深圳市沃特沃德信息有限公司 Camera switching method and device based on mobile terminal and computer equipment
CN112995509B (en) * 2021-02-24 2022-11-11 深圳市沃特沃德信息有限公司 Camera switching method and device based on mobile terminal and computer equipment

Also Published As

Publication number Publication date
CN108833794B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN107770438B (en) A kind of photographic method and mobile terminal
CN107580184B (en) A kind of image pickup method and mobile terminal
CN108540724A (en) A kind of image pickup method and mobile terminal
CN109660719A (en) A kind of information cuing method and mobile terminal
CN109547694A (en) A kind of image display method and terminal device
CN110365907A (en) A kind of photographic method, device and electronic equipment
CN109639969A (en) A kind of image processing method, terminal and server
CN107483836B (en) A kind of image pickup method and mobile terminal
CN108833709A (en) A kind of the starting method and mobile terminal of camera
CN108462826A (en) A kind of method and mobile terminal of auxiliary photo-taking
CN109218626A (en) A kind of photographic method and terminal
CN108307106A (en) A kind of image processing method, device and mobile terminal
CN109474787A (en) A kind of photographic method, terminal device and storage medium
CN109544486A (en) A kind of image processing method and terminal device
CN109669611A (en) Fitting method and terminal
CN110505401A (en) A kind of camera control method and electronic equipment
CN109819167A (en) A kind of image processing method, device and mobile terminal
CN108848309A (en) A kind of camera programm starting method and mobile terminal
CN108683850A (en) A kind of shooting reminding method and mobile terminal
CN108881544A (en) A kind of method taken pictures and mobile terminal
CN108174081B (en) A kind of image pickup method and mobile terminal
CN109246351A (en) A kind of patterning process and terminal device
CN109688325A (en) A kind of image display method and terminal device
CN109120853A (en) A kind of long exposure image image pickup method and terminal
CN109104578A (en) A kind of image processing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant