CN106101529B - A kind of camera control method and mobile terminal - Google Patents
A kind of camera control method and mobile terminal Download PDFInfo
- Publication number
- CN106101529B CN106101529B CN201610402311.XA CN201610402311A CN106101529B CN 106101529 B CN106101529 B CN 106101529B CN 201610402311 A CN201610402311 A CN 201610402311A CN 106101529 B CN106101529 B CN 106101529B
- Authority
- CN
- China
- Prior art keywords
- object run
- mobile terminal
- motion track
- run body
- image
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of camera control method and mobile terminals, comprising: after the front camera for opening mobile terminal enters self-timer mode, detects whether that there are object run bodies by the rear camera of mobile terminal;After detecting the object run body, judge that the imaging area of the object run body accounts for the ratio of the shooting image area of the rear camera and whether is greater than default fractional threshold;If judging, the ratio is greater than the default fractional threshold, is taken pictures by the front camera.The front camera that the embodiment of the present invention can trigger mobile terminal by controlling the rear camera of mobile terminal be taken pictures, and reduced the probability of user's hand shaking in self-timer, improved self-timer and take pictures quality, and then the user experience is improved.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of camera control method and mobile terminal.
Background technique
The camera function configured in current mobile terminal have become embody mobile terminal performance indispensable index it
One.To improve camera function, facilitate user's self-timer, usually mobile terminal configuration front camera.Control front camera
Self-timer key is generally arranged at the front end of mobile terminal, such as the virtual key in mobile terminal on touching display screen, or setting
In the side of mobile terminal, such as volume control physical button.However, above-mentioned self-timer key is easy to cause user to produce in operation
Green hand trembles phenomenon, and the position of self-timer key limits the self-timer angle that user can adjust, and reduces user experience.
Summary of the invention
The embodiment of the invention provides a kind of camera control method and mobile terminal, can be by control mobile terminal after
The front camera for setting camera triggering mobile terminal is taken pictures, and is reduced the probability of user's hand shaking in self-timer, is improved
Self-timer is taken pictures quality, and then the user experience is improved.
In a first aspect, the embodiment of the present invention provides a kind of camera control method, comprising:
After the front camera for opening mobile terminal enters self-timer mode, detected by the rear camera of mobile terminal
With the presence or absence of object run body;
After detecting the object run body, judge that the imaging area of the object run body accounts for the rear camera
The ratio of shooting image area whether be greater than default fractional threshold;
If judging, the ratio is greater than the default fractional threshold, is taken pictures by the front camera.
Optionally, the imaging area for breaking the object run body accounts for the shooting image area of the rear camera
Whether ratio is greater than before default fractional threshold, the method also includes:
Detect the motion track of the object run body;
According to the corresponding relationship of preset motion track and image procossing, to the mobile terminal under the self-timer mode
Shooting show that image carries out corresponding with moving condition image procossing.
Optionally, the corresponding relationship of the preset motion track and image procossing includes:
If the motion track is first movement track, corresponding described image processing includes switching the shooting display figure
The filtering effects of picture;
If the motion track is the second motion track, corresponding described image processing includes adjusting the shooting display figure
Focal position as in.
Optionally, the imaging area of the judgement object run body accounts for the shooting image area of the rear camera
Ratio whether be greater than default fractional threshold, comprising:
When detected by the rear camera take pictures trigger action when, judge the imaging area of the object run body
Whether the ratio for accounting for the shooting image area of the rear camera is greater than default fractional threshold;
Wherein, it is default triggering motion track that the trigger action of taking pictures, which includes: the motion track of the object run body,
Or the imaged shape of the object run body is default triggering shape.
Optionally, the method also includes:
If judging, the ratio is less than the default fractional threshold, judges the object run body and the mobile terminal
Whether range information is less than pre-determined distance threshold value;
It is described to be taken pictures by the front camera, comprising:
If judging, the range information is less than pre-determined distance threshold value, is taken pictures by the front camera.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, the mobile terminal includes functional unit, described
Functional unit is for some or all of executing described in first aspect either method of the embodiment of the present invention step.
The third aspect, the embodiment of the invention provides a kind of mobile terminals, comprising:
Processor, memory, communication interface and communication bus, the processor, the memory and the communication interface
It is connected by the communication bus and completes mutual communication;
The memory is stored with executable program code, and the communication interface is for wirelessly communicating;
The processor is used to call the executable program code in the memory, executes the embodiment of the present invention the
Step some or all of described in one side either method.
In embodiment of the present invention, when the front camera for opening mobile terminal enters self-timer mode, movement can be passed through
The imaging area of the rear camera detection object run body of terminal, and judge that the imaging area accounts for the shooting figure of rear camera
Whether the ratio of image planes product is greater than default fractional threshold, it is determined whether and needs are taken pictures, if above-mentioned ratio is greater than default fractional threshold,
It is then taken pictures by front camera, without the shoot button of user's touch-control front camera, can be taken the photograph by preposition
As head is taken pictures.By the above-mentioned means, reduce the probability of user's hand shaking in self-timer, improves self-timer and take pictures quality, into
And the user experience is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of camera control method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another camera control method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of unit composition block diagram of mobile terminal disclosed by the embodiments of the present invention;
Fig. 4 is the unit composition block diagram of another mobile terminal disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another mobile terminal disclosed by the embodiments of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Embodiment of the present invention method is described below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of camera control method disclosed by the embodiments of the present invention.This method
It can the realization of the mobile terminal as described in Installation practice.As shown in Figure 1, this method may include following steps.
Step S101 passes through the postposition of mobile terminal after the front camera for opening mobile terminal enters self-timer mode
Camera detection whether there is object run body.
It in one embodiment, can be by mobile whole when the front camera for opening mobile terminal enters self-timer mode
The imaging area of the rear camera detection object run body at end.Specifically, when open mobile terminal take pictures application program when,
Or when triggering camera function in other applications, preposition take the photograph can be shown on the display interface of the application program of taking pictures
As head or the image of rear camera current shooting, and shooting image can be switched by the virtual switching key on display interface.
Optionally, can open this take pictures application program or triggering camera function when, while triggering and opening front camera and postposition
Camera works, and can also open front camera when detecting the operation for choosing self-timer mode.At this point, mobile terminal
Display interface can real-time display front camera shooting image.Front camera described in the embodiment of the present invention is configured in
Mobile terminal has the one side of display screen, and the rear camera is configured in opposite with the aforementioned one side for having display screen
On one side.
When the front camera for opening mobile terminal enters self-timer mode, can be examined by the rear camera of mobile terminal
It surveys and whether there is object run body., can wherein after the front camera by opening mobile terminal enters self-timer mode, it should
Object run body may include the finger for operating user, the palm or the operation object similar with finger or palm shape of user.
Certainly, object run body may include at least one finger.It, can be further after identifying object run body by rear camera
Determine whether user needs to carry out touch-control of taking pictures by the object run body.
It is described to judge that the imaging area of the object run body accounts for after detecting the object run body by step S102
Whether the ratio of the shooting image area of rear camera is greater than default fractional threshold.
In one embodiment, after detecting object run body, it may be determined that after the imaging area of the object run body accounts for
The ratio of shooting image area captured by camera is set, and then judges whether the ratio is greater than default fractional threshold.Specifically,
The imaging area of the object run body can be determined, and can pass through by obtaining pixel value of the object run body in shooting image
The whole pixel value of shooting figure determines the area of the shooting image, in turn, it may be determined that imaging area and shooting image area
Ratio.Wherein, when object run body is multiple fingers, the area ratio that multiple fingers account for shooting image can be calculated.Wherein, in advance
If fractional threshold may be configured as 0.5,0.8 or 1 etc., the embodiment of the present invention is without limitation.Optionally, when detecting object run body
It afterwards, can also be according to the variation tendency of the imaging area of object run body, it is determined whether can trigger and take pictures, such as detect target behaviour
It is descending or ascending for making the variation tendency of the imaging area of body, and imaging area accounts for the ratio of shooting image area
When value reaches default fractional threshold, then it can trigger and take pictures.
Step S103, if judging, the ratio is greater than the default fractional threshold, is carried out by the front camera
It takes pictures.
In one embodiment, if judging through the above way, ratio is greater than default fractional threshold, can be by preposition
Camera is taken pictures under self-timer mode.Specifically, if judging through the above way, ratio is greater than default fractional threshold,
Front camera can be triggered by, which showing, takes pictures, then is taken pictures by front camera, passes through without user preset
Self-timer key triggering front camera is taken pictures.User is avoided when taking pictures by front camera, needs touch-control self-timer
Key and the hand shaking phenomenon of taking pictures generated.If judging through the above way, ratio is less than default fractional threshold, repeats step
Rapid S102 and step S103, or repeat step S103.Specifically, object run body can be detected further, and judge that the target is grasped
Make the imaging area proportion of body, takes pictures until user triggers front camera by object run body.Optionally, if
Judge that ratio is less than default fractional threshold through the above way, then can also further judge by other means whether user needs
It triggers front camera to take pictures, such as by judging object run body at a distance from rear camera, if distance is less than
Pre-determined distance threshold value and failing judges that ratio shared by the imaging area of object run body is greater than default ratio by rear camera
When being worth threshold value, then it can equally trigger front camera and work, ensure that user carries out touch-control behaviour by rear camera
The flexibility and possibility of work.
Optionally, when detecting object run body by rear camera, and calculating the ratio of its occupied area,
Also the first interface can be being shown on touching display screen, image of first interface to show rear camera captured in real-time,
Certainly, the display image of front camera shooting can be used as second contact surface and be shown on touching display screen, which can fold
It is added on second contact surface, so that user can adjust in real time the position of object run body according to the picture image shown on the first interface
It sets, allows it to triggering front camera and take pictures.
In embodiment of the present invention, when the front camera for opening mobile terminal enters self-timer mode, movement can be passed through
The imaging area of the rear camera detection object run body of terminal, and judge that the imaging area accounts for the shooting figure of rear camera
Whether the ratio of image planes product is greater than default fractional threshold, it is determined whether and needs are taken pictures, if above-mentioned ratio is greater than default fractional threshold,
It is then taken pictures by front camera, without the shoot button of user's touch-control front camera, can be taken the photograph by preposition
As head is taken pictures.By the above-mentioned means, reduce the probability of user's hand shaking in self-timer, improves self-timer and take pictures quality, into
And the user experience is improved.
Referring to Fig. 2, Fig. 2 is the flow diagram of another camera control method disclosed by the embodiments of the present invention.The party
Method can the realization of the mobile terminal as described in Installation practice.As shown in Figure 1, this method may include following steps.
Step S201 passes through the postposition of mobile terminal after the front camera for opening mobile terminal enters self-timer mode
Camera detection whether there is object run body.
It in one embodiment, can be by mobile whole when the front camera for opening mobile terminal enters self-timer mode
The imaging area of the rear camera detection object run body at end.Specifically, when open mobile terminal take pictures application program when,
Or when triggering camera function in other applications, preposition take the photograph can be shown on the display interface of the application program of taking pictures
As head or the image of rear camera current shooting, and shooting image can be switched by the virtual switching key on display interface.
Optionally, can open this take pictures application program or triggering camera function when, while triggering and opening front camera and postposition
Camera works, and can also open front camera when detecting the operation for choosing self-timer mode.At this point, mobile terminal
Display interface can real-time display front camera shooting image.Front camera described in the embodiment of the present invention is configured in
Mobile terminal has the one side of display screen, and the rear camera is configured in opposite with the aforementioned one side for having display screen
On one side.
When the front camera for opening mobile terminal enters self-timer mode, can be examined by the rear camera of mobile terminal
It surveys and whether there is object run body., can wherein after the front camera by opening mobile terminal enters self-timer mode, it should
Object run body may include the finger for operating user, the palm or the operation object similar with finger or palm shape of user.
Certainly, object run body may include at least one finger.It, can be further after identifying object run body by rear camera
Determine whether user needs to carry out touch-control of taking pictures by the object run body.
Step S202 detects the motion track of the object run body after detecting the object run body.
In one embodiment, after detecting the object run body, it can detect the motion track of the object run body, into
And the display effect that front camera shoots image can be controlled by the motion track of object run body.Specifically, detection target
The motion track of operating body can be the two-dimensional movement track of object run body, can also be the three-dimensional motion track of object run body.
It, can be by the captured image recording object run body of rear camera every if detect the two-dimensional movement track of object run body
One frame shoots the position on image, and the position according to object run body on each frame shooting image within a preset time, draws
The two-dimensional movement track of object run body processed.If detect the three-dimensional motion track of object run body, in combination with infrared or laser
Sensor detects position motion track of the object run body apart from rear camera, so as to determine target behaviour in three-dimensional space
Make the motion track of body.
Step S203, according to the corresponding relationship of preset motion track and image procossing, to the mobile terminal described
Shooting under self-timer mode shows that image carries out image procossing corresponding with the moving condition.
It in one embodiment, can be according to default after detecting the motion track of object run body through the above way
Motion track and image procossing corresponding relationship, determine image procossing corresponding to the motion track of object run body, and can
Image, which carries out image procossing, to be shown to the shooting of front camera.Optionally, preset motion track is corresponding with image procossing
Relationship can include: the filtering effects of the corresponding switching display image in first movement track;The corresponding adjusting shooting of second motion track is aobvious
Focal position in diagram picture;The corresponding brightness etc. for adjusting shooting display image of third motion track.Certainly, it may also include other
Corresponding relationship wouldn't repeat herein.For example, first movement track can be to move left and right, the second motion track can be upper and lower
Mobile, third motion track can be mobile etc. clockwise or counterclockwise.By above-mentioned corresponding relationship, grasped according to the target detected
The motion track for making body is determined to the corresponding image processing operations of shooting display image.In this way, it can be further simplified
User's operation promotes user experience.
Step S204, when detected by the rear camera take pictures trigger action when, judge the object run body
The ratio of the imaging area shooting image area that accounts for the rear camera whether be greater than default fractional threshold.
In one embodiment, when by finger camera detection to take pictures trigger action when, then show user need lead to
It crosses front camera to take pictures, then can further judge that the imaging area of object run body accounts for the shooting image of rear camera
Whether the ratio of area is greater than default fractional threshold.Specifically, this is taken pictures, trigger action may include detecting object run body
The corresponding trigger action of taking pictures of motion track, such as the motion track of object run body is X-shaped shape or " V " shape shape, alternatively, target
The corresponding trigger action of taking pictures of the imaged shape of operating body, such as the imaged shape of object run body is " V " shape shape.Optionally, also
Timer of taking pictures can be opened after detecting object run body, when a timer expires, triggering judges area ratio and default ratio
It is worth the size of threshold value.Specifically, the object run body can be determined by obtaining pixel value of the object run body in shooting image
Imaging area, and can determine the area of the shooting image by shooting the whole pixel value of figure, in turn, it may be determined that imaging surface
The ratio of product and shooting image area.Wherein, when object run body is multiple fingers, multiple fingers can be calculated and account for shooting image
Area ratio.Wherein, default fractional threshold may be configured as 0.5,0.8 or 1 etc., and the embodiment of the present invention is without limitation.
Optionally, when detecting object run body by rear camera, and calculating the ratio of its occupied area,
Also the first interface can be being shown on touching display screen, image of first interface to show rear camera captured in real-time,
Certainly, the display image of front camera shooting can be used as second contact surface and be shown on touching display screen, which can fold
It is added on second contact surface, so that user can adjust in real time the position of object run body according to the picture image shown on the first interface
It sets, allows it to triggering front camera and take pictures.
When judging that above-mentioned ratio is greater than default fractional threshold, step S206 can be directly executed, that is, triggers preposition camera shooting
Head is taken pictures.
Step S205, if judge the ratio be less than the default fractional threshold, judge the object run body with it is described
Whether the range information of mobile terminal is less than pre-determined distance threshold value.
In one embodiment, when judging that ratio is less than default fractional threshold, it can further judge object run body
Whether it is less than pre-determined distance threshold value with the range information of mobile terminal, wherein the laser detector of mobile terminal postposition can be passed through
Or infrared detector detects object run body at a distance from mobile terminal, or between detection object run body and rear camera
Distance can further determine that whether user needs by preceding by judging whether the range information is less than pre-determined distance threshold value
Camera is set to take pictures.Wherein, range information can be the vertical range of object run body and mobile terminal, if detecting target
On operating body when the vertical range difference of multiple spot and mobile terminal, its average vertical distance can be calculated.
Step S206, if judging, the range information is less than pre-determined distance threshold value, is clapped by the front camera
According to.
In one embodiment, if distance is less than pre-determined distance threshold value and fails to judge that target is grasped by rear camera
When making ratio shared by the imaging area of body greater than default fractional threshold, then it can equally trigger front camera and work, protect
Flexibility and possibility that user carries out touch control operation by rear camera are demonstrate,proved.
In embodiment of the present invention, when the front camera for opening mobile terminal enters self-timer mode, movement can be passed through
The imaging area of the rear camera detection object run body of terminal, and judge that the imaging area accounts for the shooting figure of rear camera
Whether the ratio of image planes product is greater than default fractional threshold, it is determined whether and needs are taken pictures, if above-mentioned ratio is greater than default fractional threshold,
It is then taken pictures by front camera, without the shoot button of user's touch-control front camera, can be taken the photograph by preposition
As head is taken pictures.By the above-mentioned means, reduce the probability of user's hand shaking in self-timer, improves self-timer and take pictures quality, into
And the user experience is improved.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method
Method.
Referring to Fig. 3, Fig. 3 is a kind of unit composition block diagram of mobile terminal disclosed by the embodiments of the present invention.Such as Fig. 3 institute
Show, which may include detection unit 301, judging unit 302, photographing unit 303, in which:
Detection unit 301, after the front camera for opening mobile terminal enters self-timer mode, after mobile terminal
Camera detection is set with the presence or absence of object run body;
Judging unit 302, for after detecting the object run body, judging the imaging area of the object run body
Whether the ratio for accounting for the shooting image area of the rear camera is greater than default fractional threshold;
Photographing unit 303 passes through if judging that the ratio is greater than the default fractional threshold for the judging unit
The front camera is taken pictures.
Wherein, the function that detection unit 301, judging unit 302, photographing unit 303 are realized can be referring specifically to phase in Fig. 1
Answer the description of step.
In embodiment of the present invention, when the front camera for opening mobile terminal enters self-timer mode, movement can be passed through
The imaging area of the rear camera detection object run body of terminal, and judge that the imaging area accounts for the shooting figure of rear camera
Whether the ratio of image planes product is greater than default fractional threshold, it is determined whether and needs are taken pictures, if above-mentioned ratio is greater than default fractional threshold,
It is then taken pictures by front camera, without the shoot button of user's touch-control front camera, can be taken the photograph by preposition
As head is taken pictures.By the above-mentioned means, reduce the probability of user's hand shaking in self-timer, improves self-timer and take pictures quality, into
And the user experience is improved.
Referring to Fig. 4, Fig. 4 is a kind of unit composition block diagram of mobile terminal disclosed by the embodiments of the present invention.The movement is whole
End may include first detection unit 401, second detection unit 402, processing unit 403, the judgement of the first judging unit 404, second
Unit 405, photographing unit 406.
Wherein, first detection unit 401, for leading to after the front camera for opening mobile terminal enters self-timer mode
The rear camera for crossing mobile terminal detects whether that there are object run bodies;
Second detection unit 402, for detecting the motion track of the object run body;
Processing unit 403, for the corresponding relationship according to preset motion track and image procossing, to the mobile terminal
Shooting under the self-timer mode shows that image carries out image procossing corresponding with the moving condition;
Optionally, the corresponding relationship of the preset motion track and image procossing includes:
If the motion track is first movement track, corresponding described image processing includes switching the shooting display figure
The filtering effects of picture;
If the motion track is the second motion track, corresponding described image processing includes adjusting the shooting display figure
Focal position as in.
First judging unit 404, for taking pictures when the second detection unit 402 is detected by the rear camera
When trigger action, judge that the imaging area of the object run body accounts for the ratio of the shooting image area of the rear camera and is
It is no to be greater than default fractional threshold;
Wherein, it is default triggering motion track that the trigger action of taking pictures, which includes: the motion track of the object run body,
Or the imaged shape of the object run body is default triggering shape.
Second judgment unit 405, if judging that the ratio is less than the default ratio for first judging unit 404
Threshold value, judges whether the object run body and the range information of the mobile terminal are less than pre-determined distance threshold value;
The photographing unit 406, if judging that the range information is less than pre-determined distance for the second judgment unit 405
Threshold value is taken pictures by the front camera.
Wherein, first detection unit 401, second detection unit 402, processing unit 403, the first judging unit 404, second
The function that judging unit 405, photographing unit 406 are realized can be referring specifically to the description of corresponding steps in Fig. 1.
It should be noted that mobile terminal described in apparatus of the present invention embodiment is presented in the form of functional unit.
Term " unit " used herein above should be understood as meaning as widest as possible, for realizing function described by each " unit "
Object for example can be integrated circuit ASIC, single circuit, for executing the processing of one or more softwares or firmware program
Device (shared, dedicated or chipset) and memory, combinational logic circuit, and/or other conjunctions for realizing above-mentioned function are provided
Suitable component.
The embodiment of the invention also provides another mobile terminals, as shown in Figure 5, comprising: processor 101, memory
102, communication interface 103, communication bus 104;Wherein, processor 101, memory 102 and communication interface 103 pass through communication bus
104 connect and complete mutual communication;The wireless communication that processor 101 passes through communication interface 103 control and External cell net;
Communication interface 103 include but is not limited to antenna, amplifier, transceiver, coupler, LNA (Low Noise Amplifier, it is low
Noise amplifier), duplexer etc..Memory 102 comprises at least one of the following: random access memory, nonvolatile memory
And external memory, executable program code is stored in memory 102, which being capable of bootstrap processor
The method specifically disclosed in 101 execution embodiment of the present invention method, comprising the following steps:
The processor 101 passes through mobile terminal after the front camera for opening mobile terminal enters self-timer mode
Rear camera detects whether that there are object run bodies;
The processor 101 judges that the imaging area of the object run body accounts for after detecting the object run body
Whether the ratio of the shooting image area of the rear camera is greater than default fractional threshold;And
If the processor 101 judges that the ratio is greater than the default fractional threshold, pass through the front camera
It takes pictures.
In embodiment of the present invention, when the front camera for opening mobile terminal enters self-timer mode, movement can be passed through
The imaging area of the rear camera detection object run body of terminal, and judge that the imaging area accounts for the shooting figure of rear camera
Whether the ratio of image planes product is greater than default fractional threshold, it is determined whether and needs are taken pictures, if above-mentioned ratio is greater than default fractional threshold,
It is then taken pictures by front camera, without the shoot button of user's touch-control front camera, can be taken the photograph by preposition
As head is taken pictures.By the above-mentioned means, reduce the probability of user's hand shaking in self-timer, improves self-timer and take pictures quality, into
And the user experience is improved.
In addition, the executable program code stored in above-mentioned memory 102 is also used to execute above-mentioned method shown in Fig. 2
Correlation step.It wouldn't repeat herein.
The embodiment of the invention also provides another mobile terminals, as shown in fig. 6, for ease of description, illustrate only with
The relevant part of the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.The movement
Terminal can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, by taking mobile terminal is mobile phone as an example:
Fig. 6 shows the block diagram of the part-structure of mobile phone relevant to mobile terminal provided in an embodiment of the present invention.Ginseng
Fig. 6 is examined, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit
940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980,
And the equal components of power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 6 is not constituted to mobile phone
It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 6 to mobile phone:
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one
A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition,
RF circuit 910 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more
Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division
Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service
(Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence etc.;Storage data area, which can be stored, uses created data etc. according to mobile phone.In addition, memory 920 may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input equipment 930 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick, fingerprint recognition mould group etc. are more
Kind.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 940 may include display screen 941, optionally, can use liquid crystal display (Liquid Crystal
Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Display screen 941.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display screen 941, proximity sensor can when mobile phone is moved in one's ear, close display screen 941 and/or
Backlight.As a kind of motion sensor, accelerometer sensor can detect all directions on (generally three axis) acceleration it is big
It is small, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, phase
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960
It is changed to audio data, then by after the processing of audio data output processor 980, such as another mobile phone is sent to through RF circuit 910,
Or audio data is exported to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shown
WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 980 can wrap
Include one or more core processing units;Preferably, processor 980 can integrate application processor and modem processor,
In, the main processing operation system of application processor, user interface and application program etc., modem processor are mainly handled wirelessly
Communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 980 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
Any embodiment in earlier figures 1- embodiment shown in Fig. 2, each step method process can be based on the knots of the mobile phone
Structure is realized.
In earlier figures 3- embodiment shown in Fig. 4, each unit function can be realized based on the structure of the mobile phone.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey
Sequence, the program include some or all of any camera control method recorded in above method embodiment step when executing
Suddenly.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical 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.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention
Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English:
Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and
Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention
There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (9)
1. a kind of camera control method characterized by comprising
After the front camera for opening mobile terminal enters self-timer mode, detected by the rear camera of the mobile terminal
With the presence or absence of object run body;
After detecting the object run body, the motion track of the object run body is detected;
According to the corresponding relationship of preset motion track and image procossing, to bat of the mobile terminal under the self-timer mode
It takes the photograph display image and carries out image procossing corresponding with the motion track;Wherein, different motion tracks corresponds to different images
Processing;
The first interface and second contact surface are shown on the touching display screen of mobile terminal, wherein first interface is to aobvious
Show that the image of rear camera captured in real-time, the second contact surface are used to show the display image of front camera shooting;
Judge that the imaging area of the object run body accounts for the ratio of the shooting image area of the rear camera and whether is greater than
Default fractional threshold;
If judging, the ratio is greater than the default fractional threshold, is taken pictures by the front camera.
2. method as described in claim 1, which is characterized in that the corresponding relationship packet of the preset motion track and image procossing
It includes:
If the motion track is first movement track, corresponding described image processing includes switching the shooting display image
Filtering effects;
If the motion track is the second motion track, corresponding described image processing includes adjusting the shooting to show in image
Focal position.
3. such as any one of claim 1-2 the method, which is characterized in that the imaging area of the judgement object run body
Whether the ratio for accounting for the shooting image area of the rear camera is greater than default fractional threshold, comprising:
When detected by the rear camera take pictures trigger action when, judge that the imaging area of the object run body accounts for institute
Whether the ratio for stating the shooting image area of rear camera is greater than default fractional threshold;
Wherein, it is default triggering motion track that the trigger action of taking pictures, which includes: the motion track of the object run body, or
The imaged shape of the object run body is default triggering shape.
4. method as claimed in claim 3, which is characterized in that the method also includes:
If judging, the ratio is less than the default fractional threshold, judges the object run body at a distance from the mobile terminal
Whether information is less than pre-determined distance threshold value;
It is described to be taken pictures by the front camera, comprising:
If judging, the range information is less than pre-determined distance threshold value, is taken pictures by the front camera.
5. a kind of mobile terminal characterized by comprising
First detection unit, for passing through mobile terminal after the front camera for opening mobile terminal enters self-timer mode
Rear camera detects whether that there are object run bodies;
Second detection unit, for after detecting the object run body, detecting the motion track of the object run body;
Processing unit, for the corresponding relationship according to preset motion track and image procossing, to the mobile terminal described
Shooting under self-timer mode shows that image carries out image procossing corresponding with the motion track;Wherein, different motion track
Corresponding different image procossing;
The processing unit is also used to control shows the first interface and second contact surface on the touching display screen of mobile terminal,
In, image of first interface to show rear camera captured in real-time, the second contact surface is for showing preposition camera shooting
The display image of head shooting;
First judging unit, for after detecting the object run body, judging that the imaging area of the object run body accounts for
Whether the ratio of the shooting image area of the rear camera is greater than default fractional threshold;
Photographing unit, if judging that the ratio is greater than the default fractional threshold for the judging unit, before described
Camera is set to take pictures.
6. mobile terminal as claimed in claim 5, which is characterized in that the preset motion track is corresponding with image procossing to close
System includes:
If the motion track is first movement track, corresponding described image processing includes switching the shooting display image
Filtering effects;
If the motion track is the second motion track, corresponding described image processing includes adjusting the shooting to show in image
Focal position.
7. the mobile terminal as described in claim any one of 5-6, which is characterized in that first judging unit is used for:
When the second detection unit is detected by the rear camera takes pictures trigger action, the object run is judged
Whether the ratio that the imaging area of body accounts for the shooting image area of the rear camera is greater than default fractional threshold;
Wherein, it is default triggering motion track that the trigger action of taking pictures, which includes: the motion track of the object run body, or
The imaged shape of the object run body is default triggering shape.
8. mobile terminal as claimed in claim 7, which is characterized in that further include:
Second judgment unit, if judging that the ratio is less than the default fractional threshold, judgement for first judging unit
Whether the range information of the object run body and the mobile terminal is less than pre-determined distance threshold value;
The photographing unit passes through if judging that the range information is less than pre-determined distance threshold value for the second judgment unit
The front camera is taken pictures.
9. a kind of mobile terminal characterized by comprising
Processor, memory, communication interface and communication bus, the processor, the memory and the communication interface pass through
The communication bus connects and completes mutual communication;
The memory is stored with executable program code, and the communication interface is for wirelessly communicating;
The processor is used to call the executable program code in the memory, executes as claim 1-4 is any
Method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610402311.XA CN106101529B (en) | 2016-06-07 | 2016-06-07 | A kind of camera control method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610402311.XA CN106101529B (en) | 2016-06-07 | 2016-06-07 | A kind of camera control method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106101529A CN106101529A (en) | 2016-11-09 |
CN106101529B true CN106101529B (en) | 2019-05-21 |
Family
ID=57228243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610402311.XA Expired - Fee Related CN106101529B (en) | 2016-06-07 | 2016-06-07 | A kind of camera control method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106101529B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168536A (en) * | 2017-05-19 | 2017-09-15 | 广东小天才科技有限公司 | Examination question searching method, examination question searcher and electric terminal |
CN107295251B (en) * | 2017-06-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN107333025B (en) * | 2017-06-30 | 2020-04-03 | 北京金山安全软件有限公司 | Image data processing method and device, electronic equipment and storage medium |
CN111246105B (en) * | 2020-01-22 | 2022-01-28 | 维沃移动通信有限公司 | Photographing method, electronic device, and computer-readable storage medium |
CN111669505B (en) * | 2020-06-30 | 2022-09-20 | 维沃移动通信(杭州)有限公司 | Camera starting method and device |
CN114554069A (en) * | 2020-11-24 | 2022-05-27 | 深圳市万普拉斯科技有限公司 | Terminal, task running method and device thereof, and storage medium |
CN113378139B (en) * | 2021-06-11 | 2022-11-29 | 平安国际智慧城市科技股份有限公司 | Interface content peep-proof method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101907923A (en) * | 2010-06-29 | 2010-12-08 | 汉王科技股份有限公司 | Information extraction method, device and system |
CN104463782A (en) * | 2013-09-16 | 2015-03-25 | 联想(北京)有限公司 | Image processing method, device and electronic apparatus |
CN104683680A (en) * | 2013-11-28 | 2015-06-03 | 中国移动通信集团公司 | A method, device and mobile terminal for automatically taking a picture |
CN104902187A (en) * | 2015-06-04 | 2015-09-09 | 李亚峰 | Self-portrait control method and control system for mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2462887B (en) * | 2008-09-01 | 2011-01-26 | Wing Chi Winnie Hui | Improvements in digital cameras |
CN103220467A (en) * | 2013-04-10 | 2013-07-24 | 广东欧珀移动通信有限公司 | Intelligent shooting method for mobile terminal and system thereof |
CN103269415A (en) * | 2013-04-16 | 2013-08-28 | 广东欧珀移动通信有限公司 | Automatic photo taking method for face recognition and mobile terminal |
CN103501413B (en) * | 2013-10-14 | 2017-01-25 | Tcl移动通信科技(宁波)有限公司 | Method and system for controlling post camera to focus and take pictures with front camera |
-
2016
- 2016-06-07 CN CN201610402311.XA patent/CN106101529B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101907923A (en) * | 2010-06-29 | 2010-12-08 | 汉王科技股份有限公司 | Information extraction method, device and system |
CN104463782A (en) * | 2013-09-16 | 2015-03-25 | 联想(北京)有限公司 | Image processing method, device and electronic apparatus |
CN104683680A (en) * | 2013-11-28 | 2015-06-03 | 中国移动通信集团公司 | A method, device and mobile terminal for automatically taking a picture |
CN104902187A (en) * | 2015-06-04 | 2015-09-09 | 李亚峰 | Self-portrait control method and control system for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106101529A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106101529B (en) | A kind of camera control method and mobile terminal | |
CN106055962B (en) | A kind of solution lock control method and mobile terminal | |
CN103400108B (en) | Face identification method, device and mobile terminal | |
CN106502826B (en) | Data backup and transmission method and mobile terminal | |
CN107870790A (en) | PUSH message processing method and Related product based on game application | |
CN106534288B (en) | A kind of data transmission method and mobile terminal | |
CN110248254A (en) | Display control method and Related product | |
CN107292235B (en) | fingerprint acquisition method and related product | |
CN106484283A (en) | A kind of display control method and mobile terminal | |
CN106681860B (en) | A kind of data back up method and data backup device | |
CN106302808A (en) | Data transmission method and mobile terminal | |
CN106331502A (en) | Terminal and its filter photographing method and device | |
CN106502824B (en) | Data back up method and Cloud Server | |
CN106469028B (en) | A kind of data migration method and mobile terminal | |
CN106484326B (en) | A kind of data transmission processing method and mobile terminal | |
CN103744592A (en) | Information processing method and terminal | |
CN107766139B (en) | Application management method and device | |
CN107241552A (en) | A kind of image acquiring method, device, storage medium and terminal | |
CN104519262A (en) | Method, device for acquiring video data, and terminal | |
CN110442297A (en) | Multi-screen display method, split screen display available device and terminal device | |
CN106249992A (en) | A kind of webpage control method and mobile terminal | |
CN104424307A (en) | Intelligent terminal application classifying method, system and intelligent terminal, | |
CN107330867B (en) | Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment | |
CN106569916A (en) | Data backup method and mobile terminal | |
CN106648460B (en) | Step counting data filtering method and intelligent terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190521 |
|
CF01 | Termination of patent right due to non-payment of annual fee |