CN106713659B - A kind of panorama shooting method and mobile terminal - Google Patents

A kind of panorama shooting method and mobile terminal Download PDF

Info

Publication number
CN106713659B
CN106713659B CN201710042716.1A CN201710042716A CN106713659B CN 106713659 B CN106713659 B CN 106713659B CN 201710042716 A CN201710042716 A CN 201710042716A CN 106713659 B CN106713659 B CN 106713659B
Authority
CN
China
Prior art keywords
camera
gesture
image
shooting
feature
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.)
Active
Application number
CN201710042716.1A
Other languages
Chinese (zh)
Other versions
CN106713659A (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 CN201710042716.1A priority Critical patent/CN106713659B/en
Publication of CN106713659A publication Critical patent/CN106713659A/en
Application granted granted Critical
Publication of CN106713659B publication Critical patent/CN106713659B/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/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture

Abstract

The embodiment of the invention provides a kind of panorama shooting method and mobile terminals, are related to field of communication technology.The embodiment of the present invention is instructed by receiving the pan-shot of mobile terminal user's input, control camera carries out shooting feature detection, when camera detection is to when having the default first object object for starting shooting feature, control camera starts to acquire image, when camera detection is to when having default the second target object for terminating shooting feature, terminate the acquisition image of camera, generates panoramic picture.According to the first object object and the second target object detected, it carries out beginning and end and acquires image, realize the shooting of the panoramic picture of no coverage limitation, it can be realized starting position and the end position of flexible selection shooting, realize the field range that unrestricted choice needs to shoot, operation is easier, enhances the activity and interest of entire shooting process, it ensure that the accuracy of panoramic picture, so that captured panoramic picture can satisfy the demand of user.

Description

A kind of panorama shooting method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of panorama shooting methods and mobile terminal.
Background technique
With advances in technology with the aggravation of market competition, requirement of the people to the performance of mobile terminal is also higher and higher, Wherein, it is capable of providing basic device one of of the camera of shooting function as mobile terminal, the performance of mobile terminal is risen Important role is arrived.
Currently, most of mobile terminals have the function of pan-shot, can be shot more by using pan-shot Content realizes the shooting in more people and the shooting with landscape.
Current pan-shot limits the range of shooting, and user must be moved to some position as requested and could complete Shooting, so that user can not choose at random the content for needing to shoot, it is sometimes necessary to the content of shooting all complete by shooting, But because not reaching the shift position of requirement, entire shooting process is not over;Or to must continue to mobile mobile terminal straight The shift position of requirement is reached, entire shooting could be completed, and cause to photograph the content that some users are not desired to photograph, captured Panoramic picture effect is undesirable, cannot flexibly select starting position and the end position of shooting.
Summary of the invention
The embodiment of the present invention provides a kind of panorama shooting method and mobile terminal, to solve prior art establishing shot range Panorama shooting method, cannot flexibly select the starting position of shooting and the problem of end position.
In a first aspect, the embodiment of the invention provides a kind of panorama shooting methods, comprising:
Receive the pan-shot instruction of mobile terminal user's input;
Control camera carries out shooting feature detection;
When the camera detection is to the default first object object for starting shooting feature, the camera is controlled Start to acquire image, and real-time perfoming image mosaic;
When the camera detection is to default the second target object for terminating shooting feature, terminate the camera Acquisition image, and terminate image mosaic operation, generate panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic.
Second aspect, the embodiment of the invention also provides a kind of mobile terminals, comprising:
Pan-shot command reception module, for receiving the pan-shot instruction of mobile terminal user's input;
Feature detection module is shot, carries out shooting feature detection for controlling camera;
Image capture module, for when the camera detection is to the default first object object for starting to shoot feature When, it controls the camera and starts to acquire image, and real-time perfoming image mosaic;
Panoramic picture generation module, for when the camera detection to second target with default end shooting feature When object, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic.
In this way, the pan-shot by receiving mobile terminal user's input instructs in the embodiment of the present invention, camera is controlled Shooting feature detection is carried out, when the camera detection is to the default first object object for starting shooting feature, control The camera starts to acquire image, and real-time perfoming image mosaic, when the camera detection terminates shooting to default When the second target object of feature, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panorama sketch Picture.According to the first object object and the second target object detected, carries out beginning and end and acquire image, realize no shooting The shooting of the panoramic picture of scope limitation can be realized starting position and the end position of flexible selection shooting, to realize Unrestricted choice needs the field range shot, ends automatically Image Acquisition according to the second target object detected, operates simpler Just, the activity and interest of entire shooting process are enhanced, ensure that the accuracy of panoramic picture, is not in that user is not desired to The content photographed only generates the content that user needs to shoot, so that captured panoramic picture can satisfy the demand of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows the flow chart of one of one panorama shooting method according to embodiments of the present invention;
Fig. 2 shows the flow charts of one of two panorama shooting method according to embodiments of the present invention;
Fig. 3 shows the flow chart of one of three panorama shooting method according to embodiments of the present invention;
Fig. 4 shows the flow chart of one of four panorama shooting method according to embodiments of the present invention;
Fig. 5 shows one of one of the embodiment of the present invention five structural block diagram of mobile terminal;
Fig. 5 a shows the two of the structural block diagram of one of the embodiment of the present invention five mobile terminal;
Figure 5b shows that the three of the structural block diagram of one of the embodiment of the present invention five mobile terminal;
Fig. 5 c shows the four of the structural block diagram of one of the embodiment of the present invention five mobile terminal;
Fig. 6 shows the structural block diagram of one of the embodiment of the present invention six mobile terminal;
Fig. 7 shows the structural schematic diagram of one of the embodiment of the present invention seven mobile terminal.
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.
Embodiment one
Referring to Fig.1, show a kind of flow chart of panorama shooting method of the embodiment of the present invention one, can specifically include as Lower step:
Step 101, the pan-shot instruction of mobile terminal user's input is received.
In the embodiment of the present invention, user opens the camera of mobile terminal, in camera when needing to carry out pan-shot Mode in select panorama photographing mode, then mobile terminal enters panorama photographing mode, clicks shooting button, receives mobile terminal The pan-shot instruction of user's input.The pan-shot includes preposition pan-shot and postposition pan-shot.
Step 102, control camera carries out shooting feature detection.
In the embodiment of the present invention, after receiving the pan-shot instruction of mobile terminal user's input, mobile terminal control is taken the photograph As head carries out shooting feature detection, target object of the identification with shooting feature.
Wherein, the shooting feature includes gesture feature and face characteristic.
Step 103, when the camera detection is to the default first object object for starting shooting feature, institute is controlled Camera is stated to start to acquire image, and real-time perfoming image mosaic.
In the embodiment of the present invention, when the camera detection of mobile terminal is to the default first object for starting to shoot feature When object, control camera starts to acquire image, and the image currently acquired is stored in buffer zone, subsequent processing is waited, When camera acquires image again, the image acquired again is stored in buffer zone, and it is stored in buffer zone Image carries out real-time concatenation.
For example, being controlled when the camera detection of mobile terminal is to when having the default first object object for starting shooting feature Image A1 is stored in buffer zone by camera collection image A1 processed, and control camera continues to acquire image, collects image A2 When, image A2 is stored in buffer zone, concatenation is carried out with image A1 stored in buffer zone and obtains image A12 continues image A12 and A3 carrying out concatenation after collecting image A3, until terminating Image Acquisition.
Step 104, when the camera detection is to default the second target object for terminating shooting feature, terminate institute The acquisition image of camera is stated, and terminates image mosaic operation, generates panoramic picture.
In the embodiment of the present invention, user continues to control mobile terminal acquisition image, when the camera detection of mobile terminal arrives When with default the second target object for terminating shooting feature, terminate the acquisition image of camera, and there will be default end to clap It takes the photograph in the image deposit buffer zone of the second target object of feature, carries out image with image stored in the buffer zone Concatenation terminates image mosaic operation, generates panoramic picture, panoramic picture is saved in when whole image, which is spliced, to be completed In the photograph album of mobile terminal.
In the embodiment of the present invention, the pan-shot by receiving mobile terminal user's input is instructed, and control camera carries out Feature detection is shot, when the camera detection is to the default first object object for starting shooting feature, described in control Camera starts to acquire image, and real-time perfoming image mosaic, when the camera detection terminates to shoot feature to default The second target object when, terminate the acquisition image of the camera, and terminate image mosaic operation, generate panoramic picture.Root According to the first object object and the second target object detected, carries out beginning and end and acquire image, realize no coverage The shooting of the panoramic picture of limitation can be realized starting position and the end position of flexible selection shooting, to realize freedom Selection needs the field range shot, ends automatically Image Acquisition according to the second target object detected, operates easier, increasing The strong activity and interest of entire shooting process, ensure that the accuracy of panoramic picture, is not in that user is not desired to photograph Content, only generate user and need the content that shoots, so that captured panoramic picture can satisfy the demand of user.
Embodiment two
Referring to Fig. 2, show a kind of flow chart of panorama shooting method of the embodiment of the present invention two, can specifically include as Lower step:
Step 201, the first gesture of mobile terminal user's input is obtained.
In the embodiment of the present invention, user can preset some hand before carrying out pan-shot in the terminal Gesture shoots some gesture as first gesture as first gesture or user in advance, and this is not restricted for the embodiment of the present invention. Obtain the first gesture of mobile terminal user's input.
For example, presetting " scissors hand " as first gesture.
Step 202, the first gesture is determined as first object object, the first object object is for triggering camera shooting Head acquisition image, and real-time perfoming image mosaic.
In the embodiment of the present invention, the first gesture for the mobile terminal user's input that will acquire is determined as first object pair As, first object object is for triggering camera collection image, and real-time perfoming image mosaic, when detecting first object object When, trigger camera collection image, and real-time perfoming image mosaic.
For example, first gesture " scissors hand " is determined as first object object, and when detecting " scissors hand ", triggering camera shooting Head acquisition image, and real-time perfoming image mosaic.
Step 203, the second gesture of mobile terminal user's input is obtained.
In the embodiment of the present invention, some gesture can be preset in the terminal as second gesture or user Some gesture is shot in advance as second gesture, and this is not restricted for the embodiment of the present invention.Obtain mobile terminal user's input Second gesture, second gesture are same or different with first gesture.
For example, presetting " clenching fist " as second gesture.
Step 204, the second gesture is determined as the second target object, second target object is for triggering camera shooting Head terminates acquisition image and terminates image mosaic operation.
In the embodiment of the present invention, the second gesture for the mobile terminal user's input that will acquire is determined as the second target pair As, the second target object terminates to acquire image for triggering camera and terminates image mosaic operation, when detecting the second target When object, triggering camera terminates to acquire image, and terminates image mosaic operation.
For example, second gesture " clenching fist " is determined as the second target object, when detecting " clenching fist ", camera knot is triggered Beam acquires image, and terminates image mosaic operation.
Step 205, the pan-shot instruction of mobile terminal user's input is received.
In the embodiment of the present invention, user opens the camera of mobile terminal, in camera when needing to carry out pan-shot Mode in select panorama photographing mode, then mobile terminal enters panorama photographing mode, and panorama photographing mode includes gesture identification Mode, number recognition mode and general mode.General mode is similar with the implementation of current panorama photographing mode, does not use Embodiments of the present invention are not repeated them here secondary.
After user selects hand gesture recognition mode, shooting button is clicked, receives the pan-shot of mobile terminal user's input Instruction.
Step 206, control camera carries out gesture feature detection.
In the embodiment of the present invention, when user selects hand gesture recognition mode, then shooting feature includes gesture feature, receives movement After the pan-shot instruction of terminal user's input, mobile terminal initiation gesture identification, control camera carries out gesture feature inspection It surveys.
Step 207, when the camera detection to first gesture and the first gesture is located at the pre- of shooting preview picture If when central area, controlling the camera and starting to acquire image, and real-time perfoming image mosaic.
In the embodiment of the present invention, the camera of user's control mobile terminal acquires image since side, when camera is examined It measures first gesture and when first gesture is located at the default center region of shooting preview picture, controls the camera of mobile terminal Start to acquire image, and real-time perfoming image mosaic.
Wherein, when shooting feature includes gesture feature, first object object is first gesture, default to start to shoot feature Are as follows: first gesture is located at the default center region of shooting preview picture.
Only when the first gesture that camera detection arrives is located at the default center region of shooting preview picture, just start to adopt Collection image does not start acquisition figure when first gesture is located at the left or right side in the default center region of shooting preview picture Picture.
For example, when camera detection to first gesture " scissors hand ", and first gesture " scissors hand " is located at shooting preview picture When the default center region in face, the camera for controlling mobile terminal starts to acquire image, and real-time perfoming image mosaic.
Step 208, when the camera detection to second gesture and the second gesture is located at the pre- of shooting preview picture If when central area, terminating the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.
In the embodiment of the present invention, user continues to control mobile terminal acquisition image, when the camera detection of mobile terminal arrives Second gesture and when second gesture is located at the default center region of shooting preview picture, terminates the acquisition image of camera, and tie Beam images concatenation generates panoramic picture.
Wherein, when shoot feature include gesture feature when, the second target object be second gesture, second gesture with it is first-hand Gesture is same or different, and presetting terminates shooting feature are as follows: second gesture is located at the default center region of shooting preview picture.
Only when the second gesture that camera detection arrives is located at the default center region of shooting preview picture, just terminate to adopt Collection image does not terminate acquisition figure when second gesture is located at the left or right side in the default center region of shooting preview picture Picture.
For example, when camera detection " is clenched fist " to second gesture, and second gesture " clenching fist " is located at shooting preview picture When default center region, terminate the acquisition image of camera, and terminate image mosaic operation, generates panoramic picture.
For example, 20 people form a ring, the gesture of first man is first gesture " scissors hand ", the hand of last people Gesture is second gesture " clenching fist ", then can shoot the panoramic picture of 360 degree of field range, for first gesture and second gesture Position can be arbitrarily arranged, and so as to realize starting position and the end position of flexible selection shooting, realize no bat Take the photograph the shooting of the panoramic picture of scope limitation.
In the embodiment of the present invention, according to the first gesture and second gesture detected, and first gesture and second gesture are equal Beginning and end is carried out positioned at the default center region of shooting preview picture and acquires image, realizes the complete of no coverage limitation The shooting of scape image can be realized starting position and the end position of flexible selection shooting, to realize unrestricted choice needs The field range of shooting ends automatically Image Acquisition according to the second gesture detected, and operation is easier, enhances entire shooting The activity and interest of process, ensure that the accuracy of panoramic picture, are not in the content that user is not desired to photograph, only generate User needs the content shot, so that captured panoramic picture can satisfy the demand of user, and first gesture and second-hand Gesture is located at the default center region of shooting preview picture, guarantees the integrality of panoramic picture.
Embodiment three
Referring to Fig. 3, show a kind of flow chart of panorama shooting method of the embodiment of the present invention three, can specifically include as Lower step:
Step 301, the first numerical value of mobile terminal user's input is obtained.
In the embodiment of the present invention, in the case that more people take pictures, before carrying out pan-shot, user needs to predefine the The number of one gesture inputs the first numerical value in the terminal, obtains the first numerical value of mobile terminal user's input.
For example, presetting " scissors hand " as first gesture, and the number of first gesture " scissors hand " is 5, then obtains First numerical value 5 of mobile terminal user's input.
Step 302, first numerical value is determined as first threshold.
In the embodiment of the present invention, the first numerical value of the mobile terminal user's input that will acquire is determined as first threshold.Its In, first threshold is used to identify the acquisition image for terminating camera, and terminates the number value of image mosaic operation.
For example, the first numerical value 5 is determined as first threshold, then first threshold is 5.
Step 303, the pan-shot instruction of mobile terminal user's input is received.
This step is similar with step 205 principle in embodiment two, and this will not be detailed here.
Step 304, control camera carries out gesture feature detection.
This step is similar with step 206 principle in embodiment two, and this will not be detailed here.
Step 305, when the camera detection to first gesture and the first gesture is located at the pre- of shooting preview picture If when central area, controlling the camera and starting to acquire image, and real-time perfoming image mosaic.
In the embodiment of the present invention, the camera of user's control mobile terminal acquires image since side, when camera is examined It measures first gesture and when first gesture is located at the default center region of shooting preview picture, controls the camera of mobile terminal Start to acquire image, and real-time perfoming image mosaic.
Some gesture can be preset as first gesture or user in mobile terminal shoot some gesture work in advance For first gesture, or the gesture recognized for the first time according to mobile terminal, as first gesture, the embodiment of the present invention is not done herein Limitation.
For example, preset " scissors hand " as first gesture, when camera detection to first gesture " scissors hand ", and the When one gesture " scissors hand " is located at the default center region of shooting preview picture, the camera for controlling mobile terminal starts acquisition figure Picture, and real-time perfoming image mosaic.
Step 306, number calculating is carried out based on the first gesture, obtains total number of persons value M.
In the embodiment of the present invention, when carrying out Image Acquisition, when first gesture is located at the default center of shooting preview picture When region, record is carried out number calculating based on first gesture, determines that first gesture goes out once with the number of first gesture Existing number, obtains total number of persons value M, and M is the integer greater than 0.
For example, number calculating is carried out with first gesture " scissors hand ", when first gesture " scissors hand " appears in shooting preview When the default center region of picture, a number is recorded, total number of persons M is determined according to the number that first gesture " scissors hand " occurs.
Step 307, the size relation of M and preset first threshold are detected.
In the embodiment of the present invention, total number of persons value M is compared with preset first threshold, detection total number of persons value M and pre- If first threshold size relation.
For example, first threshold is 5, according to the total number of persons value M being calculated, it is compared with first threshold 5, detects total people The size relation of numerical value M and first threshold 5.
Step 308, when M is equal to the default center area that the first threshold and M gesture are located at the shooting preview picture When domain, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.
In the embodiment of the present invention, user continue control mobile terminal acquisition image, when total number of persons value M be equal to first threshold, And M gesture terminates the acquisition image of the camera when being located at the default center region of shooting preview picture, and terminates image Concatenation generates panoramic picture.
Wherein, when shooting feature includes gesture feature, the second target object is M gesture, and M is the integer greater than 0, in advance If terminating shooting feature are as follows: M is equal to first threshold and M gesture is located at the default center region of shooting preview picture.
Occur multiple identical first gestures when more people take pictures, will cause interference between multiple identical first gestures, First threshold is preset, when the total number of persons M being calculated with first gesture is equal to first threshold and M gesture is positioned at described When the default center region of shooting preview picture, terminate acquisition image, eliminates and done caused by there are multiple identical first gestures It disturbs, realizes pan-shot when having multiple identical first gestures, improve the accuracy of pan-shot viewfinder range.
For example, there is 10 people, everyone has done various gestures, and preset first threshold is 5, when total number of persons value M is 5, And the 5th gesture of the 5th people terminates the acquisition image of the camera when being located at the default center region of shooting preview picture, And terminate image mosaic operation, generate panoramic picture.
In the embodiment of the present invention, according to the first gesture and M gesture detected, and first gesture and the equal position of M gesture It when the default center region of shooting preview picture, carries out beginning and end and acquires image, realize no coverage limitation The shooting of panoramic picture can be realized starting position and the end position of flexible selection shooting, to realize that unrestricted choice needs The content to be shot ends automatically Image Acquisition according to the M gesture detected, and operation is easier, enhances and entirely shot The activity and interest of journey, ensure that the accuracy of panoramic picture, be not in the content that user is not desired to photograph, and only generate and use Family needs the content shot, so that captured panoramic picture can satisfy the demand of user;First gesture and M gesture are located at The default center region of shooting preview picture, guarantees the integrality of panoramic picture;In the case where more people take pictures, can set in advance First threshold is set, when total number of persons M is equal to first threshold and M gesture is located at the default center region of the shooting preview picture When, terminate acquisition image, interference caused by there are multiple same gestures is eliminated when more people take pictures, realization there are multiple same gestures When pan-shot, improve the accuracy of pan-shot viewfinder range.
Example IV
Referring to Fig. 4, show a kind of flow chart of panorama shooting method of the embodiment of the present invention four, can specifically include as Lower step:
Step 401, the second value of mobile terminal user's input is obtained.
In the embodiment of the present invention, in the case that more people take pictures, before carrying out pan-shot, user, which needs to predefine, to be needed The number to be shot inputs second value in the terminal, obtains the second value of mobile terminal user's input.
For example, predefining the number for needing to shoot is 6, then the second value 6 of mobile terminal user's input is obtained.
Step 402, the second value is determined as second threshold.
In the embodiment of the present invention, the second value for the mobile terminal user's input that will acquire is determined as second threshold.Its In, second threshold is used to identify the acquisition image for terminating camera, and terminates the number value of image mosaic operation.
For example, second value 6 is determined as second threshold, then second threshold is 6.
Step 403, the pan-shot instruction of mobile terminal user's input is received.
In the embodiment of the present invention, user opens the camera of mobile terminal, in camera when needing to carry out pan-shot Mode in select panorama photographing mode, then mobile terminal enters panorama photographing mode, and panorama photographing mode includes gesture identification Mode, number recognition mode and general mode.After user selects number recognition mode, shooting button is clicked, is received mobile whole The pan-shot instruction of end subscriber input.
Step 404, control camera carries out facial features localization.
In the embodiment of the present invention, when user selects number recognition mode, then shooting feature includes face characteristic, receives movement After the pan-shot instruction of terminal user's input, mobile terminal starts recognition of face, and control camera carries out face characteristic inspection It surveys.
Step 405, when the camera detection to the first face and first face is located at the shooting preview picture Default center region when, control the camera and start to acquire image, and real-time perfoming image mosaic.
In the embodiment of the present invention, the camera of user's control mobile terminal acquires image since side, when camera is examined It measures the first face and when the first face is located at the default center region of shooting preview picture, controls the camera and start to adopt Collect image, and real-time perfoming image mosaic.
Wherein, when shooting feature includes face characteristic, first object object is the first face, default to start to shoot feature Are as follows: the first face is located at the default center region of shooting preview picture.
Only when the first face that camera detection arrives is located at the default center region of shooting preview picture, just start to adopt Collection image does not start acquisition figure when the first face is located at the left or right side in the default center region of shooting preview picture Picture.
Can according to the second of the first distance and the right face of left side face and leftmost edge and the right edge away from From determining that face is located in image when the difference of the first distance and the second distance is less than or equal to given threshold Between.
Step 406, number calculating is carried out based on first face, obtains total number of persons value N.
In the embodiment of the present invention, when carrying out Image Acquisition, when the first face is located at the default center of shooting preview picture When region, a number is recorded, number calculating is carried out based on the first face, obtains total number of persons value N, N is whole greater than 0 Number.
For example, number calculating is carried out with the first face, when the first face appears in the default center area of shooting preview picture When domain, a number is recorded, when a face occurs again in the default center region of shooting preview picture, records one again Number determines total number of persons N according to the number of face.
Step 407, the size relation of N and preset second threshold are detected.
In the embodiment of the present invention, total number of persons value N is compared with preset second threshold, detection total number of persons value N and pre- If second threshold size relation.
For example, second threshold is 6, according to the total number of persons value N being calculated, it is compared with second threshold 6, detects total people The size relation of numerical value of N and second threshold 6.
Step 408, when N is equal to the default center area that the second threshold and N face are located at the shooting preview picture When domain, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.
In the embodiment of the present invention, user continue control mobile terminal acquisition image, when total number of persons value N be equal to second threshold, And N face terminates the acquisition image of the camera when being located at the default center region of shooting preview picture, and terminates image Concatenation generates panoramic picture.
Wherein, when shooting feature includes face characteristic, the second target object is N face, and N is the integer greater than 0, in advance If terminating shooting feature are as follows: N is equal to second threshold and N face is located at the default center region of shooting preview picture.
For example, preset second threshold be 6, when total number of persons value N be 6, and the 6th face be located at shooting preview picture preset When central area, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.
In the embodiment of the present invention, according to the first face and N face detected, and the first face and the equal position of N face It when the default center region of shooting preview picture, carries out beginning and end and acquires image, realize no coverage limitation The shooting of panoramic picture can be realized starting position and the end position of flexible selection shooting, to realize that unrestricted choice needs The field range to be shot ends automatically Image Acquisition according to the N face detected, and operation is easier, enhances entire bat The activity and interest for taking the photograph process, ensure that the accuracy of panoramic picture, are not in the content that user is not desired to photograph, only give birth to The content shot is needed at user, so that captured panoramic picture can satisfy the demand of user;First face and N face Positioned at the default center region of shooting preview picture, guarantee the integrality of panoramic picture;It, can be pre- in the case where more people take pictures Second threshold is first set, when total number of persons N is equal to second threshold and N face is located at the default center region of shooting preview picture When, terminate acquisition image, realizes pan-shot when there are more people, improve the accuracy of pan-shot viewfinder range.
Embodiment five
Referring to Fig. 5, the structural block diagram of one of the embodiment of the present invention five mobile terminal is shown.
The mobile terminal 500 includes: pan-shot command reception module 501, shoots feature detection module 502, image Acquisition module 503, panoramic picture generation module 504.
Pan-shot command reception module 501, for receiving the pan-shot instruction of mobile terminal user's input.
Feature detection module 502 is shot, carries out shooting feature detection for controlling camera.
Image capture module 503, for when the camera detection is to the default first object for starting to shoot feature When object, controls the camera and start to acquire image, and real-time perfoming image mosaic.
Panoramic picture generation module 504, for when the camera detection to second with default end shooting feature When target object, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.
Wherein, the shooting feature includes gesture feature and face characteristic.
Referring to Fig. 5 a, on the basis of Fig. 5, the shooting feature detection module 502 further comprises: gesture feature detection Unit 5021 carries out gesture feature detection for controlling camera.Then described image acquisition module 503 further comprises: first Gestures detection unit 5031, for when the camera detection is to first gesture and the first gesture is located at shooting preview picture When the default center region in face, controls the camera and start to acquire image, and real-time perfoming image mosaic.Wherein, described One target object is the first gesture, and described preset starts to shoot feature are as follows: the first gesture is located at shooting preview picture Default center region.The panoramic picture generation module 504 further comprises: second gesture detection unit 5041, for working as The camera detection terminates to second gesture and when the second gesture is located at the default center region of shooting preview picture The acquisition image of the camera, and terminate image mosaic operation, generate panoramic picture.Wherein, second target object is The second gesture, the second gesture and the first gesture are same or different, and the default end shoots feature are as follows: institute State the default center region that second gesture is located at shooting preview picture.
Optionally, the mobile terminal 500 can also include: that first gesture obtains module 505, mobile whole for obtaining The first gesture of end subscriber input;First object object determining module 506, for the first gesture to be determined as first object Object, the first object object is for triggering camera collection image, and real-time perfoming image mosaic;Second gesture obtains mould Block 507, for obtaining the second gesture of mobile terminal user's input;Second target object determining module 508, for by described the Two gestures are determined as two target objects, and second target object terminates to acquire image and terminate image to spell for triggering camera Connect operation.
Referring to Fig. 5 b, on the basis of Fig. 5, the shooting feature detection module 502 further comprises: gesture feature detection Unit 5021 carries out gesture feature detection for controlling camera.Then described image acquisition module 503 further comprises: first Gestures detection unit 5031, for when the camera detection is to first gesture and the first gesture is located at shooting preview picture When the default center region in face, controls the camera and start to acquire image, and real-time perfoming image mosaic.The panoramic picture Generation module 504 further comprises: the first Image Acquisition end unit 5042, for being equal to the first threshold and M as M When gesture is located at the default center region of the shooting preview picture, terminate the acquisition image of the camera, and terminate image Concatenation generates panoramic picture.Wherein, the second target object is the M gesture, and M is the integer greater than 0, described default Terminate shooting feature are as follows: M is equal to the first threshold and M gesture is located at the default center region of the shooting preview picture.
Optionally, the mobile terminal 500 can also include: that the first numerical value obtains module 509, mobile whole for obtaining First numerical value of end subscriber input;First threshold determining module 510, for first numerical value to be determined as first threshold;Its In, the first threshold terminates the number value of image mosaic operation for identifying the acquisition image for terminating the camera;The One number computing module 511 obtains total number of persons value M for carrying out number calculating based on the first gesture;First threshold Detection module 512, for detecting the size relation of M Yu preset first threshold.
Referring to Fig. 5 c, on the basis of Fig. 5, the shooting feature detection module 502 further comprises: facial features localization Unit 5022 carries out facial features localization for controlling camera.Then described image acquisition module 503 further comprises: first Face datection unit 5032 is used for when the camera detection to the first face and first face is located at the shooting in advance Look at picture default center region when, control the camera and start to acquire image, and real-time perfoming image mosaic.Wherein, institute Stating first object object is first face, and described preset starts to shoot feature are as follows: first face is located at the shooting The default center region of preview screen.The panoramic picture generation module 504, further comprise: the second Image Acquisition terminates list Member 5043, for when N is equal to the second threshold and N face and is located at the default center region of the shooting preview picture, Terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture.Wherein, the second target object is The N face, N are the integer greater than 0, and the default end shoots feature are as follows: N is equal to the second threshold and N face Positioned at the default center region of the shooting preview picture.
Optionally, the mobile terminal 500 can also include: that second value obtains module 513, mobile whole for obtaining The second value of end subscriber input;Second threshold determining module 514, for the second value to be determined as second threshold;Its In, the second threshold terminates the number value of image mosaic operation for identifying the acquisition image for terminating the camera;The Two number computing modules 515 obtain total number of persons value N for carrying out number calculating based on first face;Second threshold Detection module 516, for detecting the size relation of N Yu preset second threshold.
In the embodiment of the present invention, according to the first object object and the second target object detected, beginning and end is carried out Image is acquired, the shooting of the panoramic picture of no coverage limitation is realized, can be realized the start bit of flexible selection shooting It sets and end position, thus realize the field range that unrestricted choice needs to shoot, it is automatic according to the second target object detected Terminate Image Acquisition, operation is easier, enhances the activity and interest of entire shooting process, ensure that the standard of panoramic picture True property is not in the content that user is not desired to photograph, and the content that user needs to shoot only is generated, so that captured panoramic picture It can satisfy the demand of user.
Embodiment six
Referring to Fig. 6, the structural block diagram of the mobile terminal of the embodiment of the present invention six is shown.
The mobile terminal 600 of the embodiment of the present invention includes: at least one processor 601, memory 602, at least one net Network interface 604, user interface 603 and camera 606.Various components in mobile terminal 600 are coupled in by bus system 605 Together.It is understood that bus system 605 is for realizing the connection communication between these components.It includes that data are total that bus system 605, which is removed, It further include power bus, control bus and status signal bus in addition except line.It, will be each in Fig. 6 but for the sake of clear explanation Kind bus is all designated as bus system 605.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, processor 601 are used to receive the pan-shot instruction of mobile terminal user's input;Control Camera processed carries out shooting feature detection;When the camera detection is to the default first object object for starting to shoot feature When, it controls the camera and starts to acquire image, and real-time perfoming image mosaic;When the camera detection is to default knot When beam shoots the second target object of feature, terminate the acquisition image of the camera, and terminate image mosaic operation, generates complete Scape image;Wherein, the shooting feature includes gesture feature and face characteristic.The method that the embodiments of the present invention disclose can be with It is realized applied in processor 601, or by processor 601.Processor 601 may be a kind of IC chip, have letter Number processing capacity.During realization, each step of the above method can pass through the integration logic of the hardware in processor 601 The instruction of circuit or software form is completed.Above-mentioned processor 601 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or Other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute this hair Disclosed each method, step and logic diagram in bright embodiment.General processor can be microprocessor or the processor It is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in firmly Part decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module It can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, In the storage medium of this fields such as register maturation.The storage medium is located at memory 602, and processor 601 reads memory 602 In information, in conjunction with its hardware complete the above method the step of.
Camera 606 carries out Image Acquisition when user carries out pan-shot.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (App LicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for executing herein described function In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, when control camera carries out shooting feature detection, be also used to: control camera carries out processor 601 Gesture feature detection;Then processor 601 is when the camera detection is to the default first object pair for starting to shoot feature As when, control the camera and start to acquire image, and when real-time perfoming image mosaic, be also used to: when the camera detection To first gesture and when the first gesture is located at the default center region of shooting preview picture, controls the camera and start Acquire image, and real-time perfoming image mosaic;Wherein, the first object object is the first gesture, the default beginning Shoot feature are as follows: the first gesture is located at the default center region of shooting preview picture.
Optionally, processor 601 is when the camera detection to second target pair with default end shooting feature As when, terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to: when generating panoramic picture when described Camera detection terminates described to second gesture and when the second gesture is located at the default center region of shooting preview picture The acquisition image of camera, and terminate image mosaic operation, generate panoramic picture;Wherein, second target object is described Second gesture, the second gesture and the first gesture are same or different, and the default end shoots feature are as follows: described the Two gestures are located at the default center region of shooting preview picture.
Optionally, processor 601 starts to acquire image in the control camera, and after real-time perfoming image mosaic, It is also used to: carrying out number calculating based on the first gesture, obtain total number of persons value M;Detect M and preset first threshold Size relation;Then processor 601 is when the camera detection is to when having default the second target object for terminating shooting feature, Terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to when generating panoramic picture: described in being equal to as M First threshold and when M gesture is located at the default center region of the shooting preview picture, terminates the acquisition figure of the camera Picture, and terminate image mosaic operation, generate panoramic picture;Wherein, the second target object is the M gesture, and M is greater than 0 Integer, the default end shoot feature are as follows: M is equal to the first threshold and M gesture is located at the shooting preview picture Default center region.
Optionally, when control camera carries out shooting feature detection, be also used to: control camera carries out processor 601 Facial features localization;Then processor 601 is when the camera detection is to the default first object pair for starting to shoot feature As when, control the camera and start to acquire image, and when real-time perfoming image mosaic, be also used to: when the camera detection To the first face and when first face is located at the default center region of the shooting preview picture, the camera is controlled Start to acquire image, and real-time perfoming image mosaic;Wherein, the first object object is first face, described default Start to shoot feature are as follows: first face is located at the default center region of the shooting preview picture.
Optionally, processor 601 starts to acquire image in the control camera, and after real-time perfoming image mosaic, It is also used to: carrying out number calculating based on first face, obtain total number of persons value N;Detect N and preset second threshold Size relation;Then processor 601 is when the camera detection is to when having default the second target object for terminating shooting feature, Terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to when generating panoramic picture: described in being equal to as N Second threshold and when N face is located at the default center region of the shooting preview picture, terminates the acquisition figure of the camera Picture, and terminate image mosaic operation, generate panoramic picture;Wherein, the second target object is the N face, and N is greater than 0 Integer, the default end shoot feature are as follows: N is equal to the second threshold and N face is located at the shooting preview picture Default center region.
Optionally, processor 601 is also used to before receiving the pan-shot instruction of mobile terminal user's input: being obtained The first gesture of mobile terminal user's input;The first gesture is determined as first object object, the first object object For triggering camera collection image, and real-time perfoming image mosaic;Obtain the second gesture of mobile terminal user's input;By institute It states second gesture and is determined as the second target object, second target object terminates to acquire image and end for triggering camera Image mosaic operation.
Optionally, processor 601 is also used in the pan-shot instruction for receiving mobile terminal user's input: obtaining movement First numerical value of terminal user's input;First numerical value is determined as first threshold;Obtain the of mobile terminal user's input Two numerical value;The second value is determined as second threshold;Wherein, the first threshold and the second threshold are used to identify Terminate the acquisition image of the camera, and terminates the number value of image mosaic operation.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
In the embodiment of the present invention, according to the first object object and the second target object detected, beginning and end is carried out Image is acquired, the shooting of the panoramic picture of no coverage limitation is realized, can be realized the start bit of flexible selection shooting It sets and end position, thus realize the field range that unrestricted choice needs to shoot, it is automatic according to the second target object detected Terminate Image Acquisition, operation is easier, enhances the activity and interest of entire shooting process, ensure that the standard of panoramic picture True property is not in the content that user is not desired to photograph, and the content that user needs to shoot only is generated, so that captured panoramic picture It can satisfy the demand of user.
Embodiment seven
Referring to Fig. 7, the structural schematic diagram of the mobile terminal of the embodiment of the present invention seven is shown.
The mobile terminal of the embodiment of the present invention can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 7 includes radio frequency (RadioFrequency, RF) circuit 710, memory 720, input unit 730, display unit 740, processor 760, voicefrequency circuit 770, WiFi (WirelessFidelity) module 780,790 and of power supply Camera 7110.
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal User setting and function control related signal input.Specifically, in the embodiment of the present invention, which can be with Including touch panel 731.Touch panel 731, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user uses the operation of finger, stylus any suitable object or attachment on touch panel 731), and according to setting in advance Fixed formula drives corresponding attachment device.Optionally, touch panel 731 may include touch detecting apparatus and touch controller two A part.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then The processor 760 is given, and order that processor 760 is sent can be received and executed.Furthermore, it is possible to using resistance-type, electricity The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch panel 731.In addition to touch panel 731, input unit 730 Can also include other input equipments 732, other input equipments 732 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 740 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal.Display unit 740 may include display panel 741, optionally, can use LCD or organic light emission The forms such as diode (OrganicLight-EmittingDiode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device 760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Camera 7110 carries out Image Acquisition when user carries out pan-shot.
Wherein processor 760 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in first memory 721, and is called and is stored in Data in second memory 722 execute the various functions and processing data of mobile terminal, to carry out to mobile terminal whole Monitoring.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 760 are used to receive the pan-shot instruction of mobile terminal user's input;Control Camera processed carries out shooting feature detection;When the camera detection is to the default first object object for starting to shoot feature When, it controls the camera and starts to acquire image, and real-time perfoming image mosaic;When the camera detection is to default knot When beam shoots the second target object of feature, terminate the acquisition image of the camera, and terminate image mosaic operation, generates complete Scape image;Wherein, the shooting feature includes gesture feature and face characteristic.
Optionally, when control camera carries out shooting feature detection, be also used to: control camera carries out processor 760 Gesture feature detection;Then processor 760 is when the camera detection is to the default first object pair for starting to shoot feature As when, control the camera and start to acquire image, and when real-time perfoming image mosaic, be also used to: when the camera detection To first gesture and when the first gesture is located at the default center region of shooting preview picture, controls the camera and start Acquire image, and real-time perfoming image mosaic;Wherein, the first object object is the first gesture, the default beginning Shoot feature are as follows: the first gesture is located at the default center region of shooting preview picture.
Optionally, processor 760 is when the camera detection to second target pair with default end shooting feature As when, terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to: when generating panoramic picture when described Camera detection terminates described to second gesture and when the second gesture is located at the default center region of shooting preview picture The acquisition image of camera, and terminate image mosaic operation, generate panoramic picture;Wherein, second target object is described Second gesture, the second gesture and the first gesture are same or different, and the default end shoots feature are as follows: described the Two gestures are located at the default center region of shooting preview picture.
Optionally, processor 760 starts to acquire image in the control camera, and after real-time perfoming image mosaic, It is also used to: carrying out number calculating based on the first gesture, obtain total number of persons value M;Detect M and preset first threshold Size relation;Then processor 760 is when the camera detection is to when having default the second target object for terminating shooting feature, Terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to when generating panoramic picture: described in being equal to as M First threshold and when M gesture is located at the default center region of the shooting preview picture, terminates the acquisition figure of the camera Picture, and terminate image mosaic operation, generate panoramic picture;Wherein, the second target object is the M gesture, and M is greater than 0 Integer, the default end shoot feature are as follows: M is equal to the first threshold and M gesture is located at the shooting preview picture Default center region.
Optionally, when control camera carries out shooting feature detection, be also used to: control camera carries out processor 760 Facial features localization;Then processor 760 is when the camera detection is to the default first object pair for starting to shoot feature As when, control the camera and start to acquire image, and when real-time perfoming image mosaic, be also used to: when the camera detection To the first face and when first face is located at the default center region of the shooting preview picture, the camera is controlled Start to acquire image, and real-time perfoming image mosaic;Wherein, the first object object is first face, described default Start to shoot feature are as follows: first face is located at the default center region of the shooting preview picture.
Optionally, processor 760 starts to acquire image in the control camera, and after real-time perfoming image mosaic, It is also used to: carrying out number calculating based on first face, obtain total number of persons value N;Detect N and preset second threshold Size relation;Then processor 760 is when the camera detection is to when having default the second target object for terminating shooting feature, Terminate the acquisition image of the camera, and terminate image mosaic operation and be also used to when generating panoramic picture: described in being equal to as N Second threshold and when N face is located at the default center region of the shooting preview picture, terminates the acquisition figure of the camera Picture, and terminate image mosaic operation, generate panoramic picture;Wherein, the second target object is the N face, and N is greater than 0 Integer, the default end shoot feature are as follows: N is equal to the second threshold and N face is located at the shooting preview picture Default center region.
Optionally, processor 760 is also used to before receiving the pan-shot instruction of mobile terminal user's input: being obtained The first gesture of mobile terminal user's input;The first gesture is determined as first object object, the first object object For triggering camera collection image, and real-time perfoming image mosaic;Obtain the second gesture of mobile terminal user's input;By institute It states second gesture and is determined as the second target object, second target object terminates to acquire image and end for triggering camera Image mosaic operation.
Optionally, processor 760 is also used in the pan-shot instruction for receiving mobile terminal user's input: obtaining movement First numerical value of terminal user's input;First numerical value is determined as first threshold;Obtain the of mobile terminal user's input Two numerical value;The second value is determined as second threshold;Wherein, the first threshold and the second threshold are used to identify Terminate the acquisition image of the camera, and terminates the number value of image mosaic operation.
As it can be seen that in the embodiment of the present invention, according to the first object object and the second target object detected, start and Terminate acquisition image, realizes the shooting of the panoramic picture of no coverage limitation, can be realized opening for flexible selection shooting Beginning position and end position, so that the field range that unrestricted choice needs to shoot is realized, according to the second target object detected Image Acquisition is ended automatically, operation is easier, enhances the activity and interest of entire shooting process, ensure that panoramic picture Accuracy, be not in the content that user is not desired to photograph, only generate user and need the content that shoots, so that captured panorama Image can satisfy the demand of user.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of panorama shooting method, applied to the mobile terminal with camera, which is characterized in that the described method includes:
Receive the pan-shot instruction of mobile terminal user's input;
Control camera carries out shooting feature detection;
When the camera detection is to the default first object object for starting shooting feature, controls the camera and start Acquire image, and real-time perfoming image mosaic;
When the camera detection is to default the second target object for terminating shooting feature, terminate adopting for the camera Collect image, and terminate image mosaic operation, generates panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic;
Wherein, the control camera carries out the step of shooting feature detection, comprising:
It controls camera and carries out gesture feature detection;
It is then described when the camera detection is to the default first object object for starting shooting feature, control the camera shooting Head starts to acquire image, and the step of real-time perfoming image mosaic, comprising:
When the camera detection to first gesture and the first gesture is located at the default center region of shooting preview picture When, it controls the camera and starts to acquire image, and real-time perfoming image mosaic;
Wherein, the first object object is the first gesture, and described preset starts to shoot feature are as follows: the first gesture position In the default center region of shooting preview picture;
Wherein, the control camera starts to acquire image, and after the step of real-time perfoming image mosaic, the method Further include:
Number calculating is carried out based on the first gesture, obtains total number of persons value M;
Detect the size relation of M and preset first threshold;
It is then described when the camera detection is to default the second target object for terminating shooting feature, terminate the camera shooting The acquisition image of head, and the step of terminating image mosaic operation, generating panoramic picture, comprising:
When M is equal to the first threshold and M gesture is located at the default center region of the shooting preview picture, terminate institute The acquisition image of camera is stated, and terminates image mosaic operation, generates panoramic picture;
Wherein, the second target object is the M gesture, and M is the integer greater than 0, and the default end shoots feature are as follows: M etc. In the first threshold and M gesture is located at the default center region of the shooting preview picture.
2. the method according to claim 1, wherein described when the camera detection terminates to clap to default When taking the photograph the second target object of feature, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panorama sketch The step of picture, comprising:
When the camera detection to second gesture and the second gesture is located at the default center region of shooting preview picture When, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, second target object is the second gesture, and the second gesture is identical as the first gesture or not Together, the default end shoots feature are as follows: the second gesture is located at the default center region of shooting preview picture.
3. the method according to claim 1, wherein the pan-shot for receiving mobile terminal user's input refers to Before the step of enabling, the method also includes:
Obtain the first gesture of mobile terminal user's input;
The first gesture is determined as first object object, the first object object is used to trigger camera collection image, And real-time perfoming image mosaic;
Obtain the second gesture of mobile terminal user's input;
The second gesture is determined as the second target object, second target object terminates acquisition figure for triggering camera Picture and end image mosaic operation.
4. the method according to claim 1, wherein the pan-shot for receiving mobile terminal user's input refers to Before the step of enabling, the method also includes:
Obtain the first numerical value of mobile terminal user's input;
First numerical value is determined as first threshold;
Obtain the second value of mobile terminal user's input;
The second value is determined as second threshold;
Wherein, the first threshold and the second threshold, which are used to mark, terminates the acquisition image of the camera, and terminates The number value of image mosaic operation.
5. a kind of panorama shooting method, applied to the mobile terminal with camera, which is characterized in that the described method includes:
Receive the pan-shot instruction of mobile terminal user's input;
Control camera carries out shooting feature detection;
When the camera detection is to the default first object object for starting shooting feature, controls the camera and start Acquire image, and real-time perfoming image mosaic;
When the camera detection is to default the second target object for terminating shooting feature, terminate adopting for the camera Collect image, and terminate image mosaic operation, generates panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic;
Wherein, the control camera carries out the step of shooting feature detection, comprising:
It controls camera and carries out facial features localization;
It is then described when the camera detection is to the default first object object for starting shooting feature, control the camera shooting Head starts to acquire image, and the step of real-time perfoming image mosaic, comprising:
When the camera detection to the first face and first face is located at the default center area of the shooting preview picture When domain, controls the camera and start to acquire image, and real-time perfoming image mosaic;
Wherein, the first object object is first face, and described preset starts to shoot feature are as follows: first face position In the default center region of the shooting preview picture;
Wherein, the control camera starts to acquire image, and after the step of real-time perfoming image mosaic, the method Further include:
Number calculating is carried out based on first face, obtains total number of persons value N;
Detect the size relation of N and preset second threshold;
It is then described when the camera detection is to default the second target object for terminating shooting feature, terminate the camera shooting The acquisition image of head, and the step of terminating image mosaic operation, generating panoramic picture, comprising:
When N is equal to the second threshold and N face is located at the default center region of the shooting preview picture, terminate institute The acquisition image of camera is stated, and terminates image mosaic operation, generates panoramic picture;
Wherein, the second target object is the N face, and N is the integer greater than 0, and the default end shoots feature are as follows: N etc. In the second threshold and N face is located at the default center region of the shooting preview picture.
6. according to the method described in claim 5, it is characterized in that, the pan-shot for receiving mobile terminal user's input refers to Before the step of enabling, the method also includes:
Obtain the first numerical value of mobile terminal user's input;
First numerical value is determined as first threshold;
Obtain the second value of mobile terminal user's input;
The second value is determined as second threshold;
Wherein, the first threshold and the second threshold, which are used to mark, terminates the acquisition image of the camera, and terminates The number value of image mosaic operation.
7. a kind of mobile terminal characterized by comprising
Pan-shot command reception module, for receiving the pan-shot instruction of mobile terminal user's input;
Feature detection module is shot, carries out shooting feature detection for controlling camera;
Image capture module, for when the camera detection to have it is default start to shoot the first object object of feature when, The camera is controlled to start to acquire image, and real-time perfoming image mosaic;
Panoramic picture generation module, for when the camera detection to second target object with default end shooting feature When, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic;
Wherein, the shooting feature detection module, comprising:
Gesture feature detection unit carries out gesture feature detection for controlling camera;
Then described image acquisition module includes:
First gesture detection unit is used for when the camera detection to first gesture and the first gesture is located at shooting in advance Look at picture default center region when, control the camera and start to acquire image, and real-time perfoming image mosaic;
Wherein, the first object object is the first gesture, and described preset starts to shoot feature are as follows: the first gesture position In the default center region of shooting preview picture;
Further include:
First number computing module obtains total number of persons value M for carrying out number calculating based on the first gesture;
First threshold detection module, for detecting the size relation of M Yu preset first threshold;
Then the panoramic picture generation module includes:
First Image Acquisition end unit, for when M is equal to the first threshold and M gesture is located at shooting preview picture When the default center region in face, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, the second target object is the M gesture, and M is the integer greater than 0, and the default end shoots feature are as follows: M etc. In the first threshold and M gesture is located at the default center region of the shooting preview picture.
8. mobile terminal according to claim 7, which is characterized in that the panoramic picture generation module, comprising:
Second gesture detection unit is used for when the camera detection to second gesture and the second gesture is located at shooting in advance Look at picture default center region when, terminate the acquisition image of the camera, and terminate image mosaic operation, generate panorama sketch Picture;
Wherein, second target object is the second gesture, and the second gesture is identical as the first gesture or not Together, the default end shoots feature are as follows: the second gesture is located at the default center region of shooting preview picture.
9. mobile terminal according to claim 7, which is characterized in that further include:
First gesture obtains module, for obtaining the first gesture of mobile terminal user's input;
First object object determining module, for the first gesture to be determined as first object object, the first object pair As for triggering camera collection image, and real-time perfoming image mosaic;
Second gesture obtains module, for obtaining the second gesture of mobile terminal user's input;
Second target object determining module, for the second gesture to be determined as the second target object, second target pair As terminating to acquire image and terminate image mosaic to operate for triggering camera.
10. mobile terminal according to claim 7, which is characterized in that further include:
First numerical value obtains module, for obtaining the first numerical value of mobile terminal user's input;
First threshold determining module, for first numerical value to be determined as first threshold;
Second value obtains module, for obtaining the second value of mobile terminal user's input;
Second threshold determining module, for the second value to be determined as second threshold;
Wherein, the first threshold and the second threshold, which are used to mark, terminates the acquisition image of the camera, and terminates The number value of image mosaic operation.
11. a kind of mobile terminal characterized by comprising
Pan-shot command reception module, for receiving the pan-shot instruction of mobile terminal user's input;
Feature detection module is shot, carries out shooting feature detection for controlling camera;
Image capture module, for when the camera detection to have it is default start to shoot the first object object of feature when, The camera is controlled to start to acquire image, and real-time perfoming image mosaic;
Panoramic picture generation module, for when the camera detection to second target object with default end shooting feature When, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, the shooting feature includes gesture feature and face characteristic;
Wherein, the shooting feature detection module, comprising:
Facial features localization unit carries out facial features localization for controlling camera;
Then described image acquisition module includes:
First face detection unit, for when the camera detection is to the first face and first face is located at the bat When taking the photograph the default center region of preview screen, controls the camera and start to acquire image, and real-time perfoming image mosaic;
Wherein, the first object object is first face, and described preset starts to shoot feature are as follows: first face position In the default center region of the shooting preview picture;
Further include:
Second number computing module obtains total number of persons value N for carrying out number calculating based on first face;
Second threshold detection module, for detecting the size relation of N Yu preset second threshold;
Then the panoramic picture generation module includes:
Second Image Acquisition end unit, for when N is equal to the second threshold and N face is located at shooting preview picture When the default center region in face, terminate the acquisition image of the camera, and terminate image mosaic operation, generates panoramic picture;
Wherein, the second target object is the N face, and N is the integer greater than 0, and the default end shoots feature are as follows: N etc. In the second threshold and N face is located at the default center region of the shooting preview picture.
12. mobile terminal according to claim 11, which is characterized in that further include:
First numerical value obtains module, for obtaining the first numerical value of mobile terminal user's input;
First threshold determining module, for first numerical value to be determined as first threshold;
Second value obtains module, for obtaining the second value of mobile terminal user's input;
Second threshold determining module, for the second value to be determined as second threshold;
Wherein, the first threshold and the second threshold, which are used to mark, terminates the acquisition image of the camera, and terminates The number value of image mosaic operation.
CN201710042716.1A 2017-01-20 2017-01-20 A kind of panorama shooting method and mobile terminal Active CN106713659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710042716.1A CN106713659B (en) 2017-01-20 2017-01-20 A kind of panorama shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710042716.1A CN106713659B (en) 2017-01-20 2017-01-20 A kind of panorama shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106713659A CN106713659A (en) 2017-05-24
CN106713659B true CN106713659B (en) 2019-11-05

Family

ID=58908915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710042716.1A Active CN106713659B (en) 2017-01-20 2017-01-20 A kind of panorama shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106713659B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174095A (en) * 2017-12-28 2018-06-15 努比亚技术有限公司 Photographic method, mobile terminal and computer-readable medium based on smiling face's identification
CN113890996A (en) * 2017-12-29 2022-01-04 深圳市大疆创新科技有限公司 Image processing method, mobile platform, control equipment and system
JP2020113974A (en) * 2019-01-11 2020-07-27 株式会社リコー Imaging device, method, and program
CN110458114B (en) * 2019-08-13 2022-02-01 杜波 Method and device for determining number of people and storage medium
CN112749448B (en) * 2019-10-31 2022-02-08 北京国联视讯信息技术股份有限公司 Space measurement system and method based on parameter big data identification
CN114071003B (en) * 2020-08-06 2024-03-12 北京外号信息技术有限公司 Shooting method and system based on optical communication device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158647A (en) * 2010-01-26 2011-08-17 索尼公司 Imaging control apparatus, imaging control method, and program
CN104065873A (en) * 2013-03-22 2014-09-24 卡西欧计算机株式会社 Image Acquisition Apparatus And Image Acquisition Method
CN106210526A (en) * 2016-07-29 2016-12-07 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5533048B2 (en) * 2010-03-08 2014-06-25 ソニー株式会社 Imaging control apparatus and imaging control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158647A (en) * 2010-01-26 2011-08-17 索尼公司 Imaging control apparatus, imaging control method, and program
CN104065873A (en) * 2013-03-22 2014-09-24 卡西欧计算机株式会社 Image Acquisition Apparatus And Image Acquisition Method
CN106210526A (en) * 2016-07-29 2016-12-07 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Also Published As

Publication number Publication date
CN106713659A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN107257439B (en) A kind of image pickup method and mobile terminal
CN106027907B (en) A kind of method and mobile terminal of adjust automatically camera
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN107317993B (en) A kind of video call method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN107181913B (en) A kind of photographic method and mobile terminal
WO2019001152A1 (en) Photographing method and mobile terminal
CN107172361B (en) A kind of method and mobile terminal of pan-shot
CN105959564B (en) A kind of photographic method and mobile terminal
CN107155064B (en) A kind of image pickup method and mobile terminal
CN106210526A (en) A kind of image pickup method and mobile terminal
CN107404577B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106973237B (en) A kind of image pickup method and mobile terminal
CN107277353B (en) A kind of method taken pictures and mobile terminal
CN105959574B (en) A kind of photographic method and mobile terminal
CN107194907B (en) A kind of screenshot synthetic method and mobile terminal
CN106993139B (en) A kind of image pickup method and mobile terminal
CN107509040A (en) A kind of photographic method and mobile terminal

Legal Events

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