CN109561249A - Adjust the method and device of focal length - Google Patents
Adjust the method and device of focal length Download PDFInfo
- Publication number
- CN109561249A CN109561249A CN201710881467.5A CN201710881467A CN109561249A CN 109561249 A CN109561249 A CN 109561249A CN 201710881467 A CN201710881467 A CN 201710881467A CN 109561249 A CN109561249 A CN 109561249A
- Authority
- CN
- China
- Prior art keywords
- face
- focal length
- preset
- described image
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/67—Focus control based on electronic image sensor signals
-
- 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
Abstract
The disclosure is directed to a kind of method and devices for adjusting focal length, for improving shooting effect when portrait.The described method includes: obtaining the image comprising face;The face is identified from described image;Judge whether the face meets preset Focussing condition;When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
Description
Technical field
This disclosure relates to communicate and computer disposal field, more particularly to the method and device of adjustment focal length.
Background technique
With the development of electronic technology, the equipment such as mobile terminal, digital camera, tablet computer all have camera function.With
Family, which can according to need, manually adjusts focal length, to obtain preferable shooting effect.But it manually adjusts and increases user's operation
Burden, this is a urgent problem to be solved.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method and device for adjusting focal length.
According to the first aspect of the embodiments of the present disclosure, a kind of method adjusting focal length is provided, comprising:
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment can be according to image
In face automatically adjust focal length, reduce the manual operation of user.
In one embodiment, described to judge whether the face meets preset Focussing condition, it includes at least down
One of column step:
Judge whether the position of the face is located at the central area of described image;It is located at described image in the position
When central area, determine that the face meets preset Focussing condition;
Judge whether the ratio of the size of the face and the size of described image is greater than preset proportion threshold value, described
When the ratio of the size of the size and described image of face is greater than preset proportion threshold value, determine that the face meets preset coke
Away from regularization condition.
The technical scheme provided by this disclosed embodiment can include the following benefits: present embodiments providing and a variety of sentences
Disconnected foundation, can be according to the position of face or the size of face to determine whether needing to focus.
In one embodiment, the adjustment factor is not more than the ratio of described image and the central area.
The technical scheme provided by this disclosed embodiment can include the following benefits: system is adjusted described in the present embodiment
Number is not more than the ratio of described image and the central area, focuses available preferable effect in the range.
It is in one embodiment, described that focal length is adjusted according to preset adjustment factor, comprising:
According to the ratio of the size of the face and the size of described image, preset adjustment factor is determined;
Focal length is adjusted according to determining adjustment factor.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment is according to the face
Size and described image size ratio, determine preset adjustment factor, the image effect after focusing can be improved.
In one embodiment, the method also includes:
When the face meets preset Focussing condition, current photographing mode is switched to portrait and is taken pictures mould
Formula.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment realizes to be cut automatically
Portrait photographing mode is changed to, user's manual operation is reduced.
In one embodiment, the method also includes:
Judge whether current photographing mode is portrait photographing mode;
It is described to judge whether the face meets preset Focussing condition, comprising:
When current photographing mode is portrait photographing mode, judge whether the face meets preset Focussing item
Part.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment realizes to be cut automatically
Portrait photographing mode is changed to, user's manual operation is reduced.
According to the second aspect of an embodiment of the present disclosure, a kind of device adjusting focal length is provided, comprising:
Module is obtained, for obtaining the image comprising face;
Identification module, for identifying the face from described image;
First judgment module, for judging whether the face meets preset Focussing condition;
Module is adjusted, for when the face meets preset Focussing condition, according to preset adjustment factor tune
Whole focal length.
In one embodiment, the first judgment module includes at least one of following modules:
First judging submodule, for judging whether the position of the face is located at the central area of described image;Institute
Position determines that the face meets preset Focussing condition when the central area of described image;
Second judgment submodule, for judging it is pre- whether the ratio of the size of the face and the size of described image is greater than
If proportion threshold value, the size and described image of the face size ratio be greater than preset proportion threshold value when, determine
The face meets preset Focussing condition.
In one embodiment, the adjustment factor is not more than the ratio of described image and the central area.
In one embodiment, the adjustment module includes:
Coefficient submodule determines preset tune for the ratio according to the size of the size and described image of the face
Save coefficient;
Adjusting submodule, for adjusting focal length according to determining adjustment factor.
In one embodiment, described device further include:
Mode module, for when the face meets preset Focussing condition, current photographing mode to be switched
For portrait photographing mode.
In one embodiment, described device further include:
Second judgment module, for judging whether current photographing mode is portrait photographing mode;
The first judgment module includes:
Third judging submodule, for whether judging the face when current photographing mode is portrait photographing mode
Meet preset Focussing condition.
According to the third aspect of an embodiment of the present disclosure, a kind of device adjusting focal length is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment.
Fig. 2 is a kind of schematic diagram of image shown according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of image shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment.
Fig. 5 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of device for adjusting focal length shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of first judgment module shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram for adjusting module shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of device for adjusting focal length shown according to an exemplary embodiment.
Figure 10 is a kind of block diagram of device for adjusting focal length shown according to an exemplary embodiment.
Figure 11 is a kind of block diagram of first judgment module shown according to an exemplary embodiment.
Figure 12 is a kind of block diagram of device shown according to an exemplary embodiment.
Figure 13 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In the related technology, user can zoom in or out focal length when shooting image manually, preferable to obtain effect
Image.It manually adjusts focal length and brings burden to the operation of user, be also unfavorable for quickly clearly capturing image.
To solve the above problems, the present embodiment can identify the face in image, then automatically adjusted according to face burnt
Away from reducing the manual operation of user, improve user experience.
Fig. 1 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment, as shown in Figure 1, should
Method can be realized by photographing devices such as mobile terminals, comprising the following steps:
In a step 101, the image comprising face is obtained.
In a step 102, the face is identified from described image.
In step 103, judge whether the face meets preset Focussing condition.
At step 104, it when the face meets preset Focussing condition, is adjusted according to preset adjustment factor
Focal length.
The present embodiment can identify in image whether there is face after obtaining image, and face is determined when there is face.Judge institute
State whether face meets preset Focussing condition, when the face meets preset Focussing condition, according to default
Adjustment factor adjust focal length.For example, by Focussing to 1.2 times.Compared to common 1.0 times of focal lengths, slightly amplify focal length,
To protrude the personage in image.User is reduced to focus manually.
In one embodiment, described to judge whether the face meets preset Focussing condition, it includes at least down
One of column step: step A1 and step A2.
In step A1, judge whether the position of the face is located at the central area of described image;In institute's position
When the central area of described image, determine that the face meets preset Focussing condition.
The size of central area can be decided according to the actual requirements in the present embodiment, for example, by the 50% of picture centre
Region is set as central area.As described in Figure 2, central area shown in 201 accounts for the 50% of whole image.It should if face is located at
In central area, it is determined that face is the object mainly shot, suitable for the bust shot to portrait.If face is not at
Central area, then it is not main reference object, therefore that the portrait, which may be to pass by without the slight background portrait into picture,
Bust shot can not be used.Also, if face is not at central area, after amplifying focal length, which may not be
In image.Image effect is influenced instead.
If face is located in the central area, focal length has been amplified to relatively high value (greater than preset adjusting at this time
Coefficient), such as 2.0, then it can keep 2.0 focal length, or focal length is adjusted according to preset 1.2 adjustment factor.
In step A2, judge whether the ratio of the size of the face and the size of described image is greater than preset ratio
Threshold value determines the face when the ratio of the size of the size and described image of the face is greater than preset proportion threshold value
Meet preset Focussing condition.
As shown in figure 3, the size of face is l1*w1, the size of image is l2*w2.Judge the size l1*w1 and figure of face
Whether the ratio of the size l2*w2 of picture is greater than preset proportion threshold value (such as 1/15).If the size of face and the size of image
Ratio be greater than preset proportion threshold value, it is determined that face is the object mainly shot, suitable for the bust shot to portrait.Such as
The ratio of the size of the size and image of fruit face is not more than preset proportion threshold value, then the portrait may be to pass by without slight
It is not main reference object into the background portrait of picture, therefore bust shot can not be used.
If the ratio of the size of the size and image of face is greater than preset proportion threshold value, focal length has been amplified at this time
Relatively high value, such as 2.0, then can keep 2.0 focal length, or adjust focal length according to preset 1.2 adjustment factor.
Step A1 and step A2, when meeting two conditions, can determine that the face meets preset coke in conjunction with implementation
Away from regularization condition.
In one embodiment, the adjustment factor is not more than the ratio of described image and the central area.
Adjustment factor is not more than the ratio of described image and the central area, is a proper range, can be with
Obtain preferable bust shot effect.If adjustment factor is greater than the ratio of described image and the central area, may put
The face in central area is set to remove described image after big shooting.
In one embodiment, the step 104 includes: step B1 and step B2.
In step bl is determined, according to the ratio of the size of the face and the size of described image, preset adjusting system is determined
Number.
In step B2, focal length is adjusted according to determining adjustment factor.
The present embodiment can preset the ratio of the size of face and the size of described image, corresponding with adjustment factor
Relationship.Adjustment factor can change according to the ratio equal proportion, and can also gradually successively decrease variation.As shown in Table 1 and Table 2.
Table 1
Ratio t | Adjustment factor k |
1/15<t≤2/15 | 1.5 |
2/15<t≤3/15 | 1.4 |
3/15<t≤4/15 | 1.3 |
…… | …… |
Table 2
Ratio t | Adjustment factor k |
1/15<t≤4/15 | 1.5 |
4/15<t≤6/15 | 1.4 |
6/15<t≤7/15 | 1.3 |
…… | …… |
In one embodiment, the method also includes step C.
In step C, when the face meets preset Focussing condition, current photographing mode is switched as people
As photographing mode.
Photographing mode can be switched to portrait automatically and clapped by the present embodiment when face meets preset Focussing condition
It does not need then to switch if it is being portrait photographing mode according to mode.Reduce the manual handover operation of user.
In one embodiment, the method also includes step D1.
In step D1, judge whether current photographing mode is portrait photographing mode;
The step 103 includes: step D2.
In step d 2, when current photographing mode is portrait photographing mode, it is default to judge whether the face meets
Focussing condition.
The present embodiment can also automatically adjust focal length when activating portrait photographing mode, to be suitble to portrait to take pictures.It reduces and uses
Family manual operation.
Realization process is discussed in detail below by several embodiments.
Fig. 4 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment, as shown in figure 4, should
Method can be realized by photographing devices such as mobile terminals, comprising the following steps:
In step 401, the image comprising face is obtained.
In step 402, the face is identified from described image.
In step 403, judge whether the position of the face is located at the central area of described image;In institute's position
When the central area of described image, determine that the face meets preset Focussing condition.Continue step 404.Described
When position is not located at the central area of described image, focal length can not be automatically adjusted, is taken pictures according to current focal length.
In step 404, current photographing mode is switched to portrait photographing mode.
In step 405, focal length is adjusted according to preset adjustment factor.
Fig. 5 is a kind of flow chart of method for adjusting focal length shown according to an exemplary embodiment, as shown in figure 5, should
Method can be realized by photographing devices such as mobile terminals, comprising the following steps:
In step 501, the image comprising face is obtained.
In step 502, the face is identified from described image.
In step 503, judge whether current photographing mode is portrait photographing mode.It is people in current photographing mode
When as photographing mode, continue step 504.When current photographing mode is not portrait photographing mode, terminate this process, it can be with
It takes pictures according to current photographing mode.
In step 504, judge whether the ratio of the size of the face and the size of described image is greater than preset ratio
Example threshold value determines the people when the ratio of the size of the size and described image of the face is greater than preset proportion threshold value
Face meets preset Focussing condition.Continue step 505.The size and described image of the face size ratio not
When greater than preset proportion threshold value, focal length can not be automatically adjusted, is taken pictures according to current focal length.
In step 505, according to the ratio of the size of the face and the size of described image, preset adjusting system is determined
Number.
In step 506, focal length is adjusted according to determining adjustment factor.
Above-described embodiment can carry out various combinations according to actual needs.
By the realization process described above for having understood adjustment focal length, which is realized by mobile terminal or computer, under
Face is introduced for the internal structure and function of equipment.
Fig. 6 is a kind of schematic device for adjusting focal length shown according to an exemplary embodiment.Referring to Fig. 6, the device
It include: to obtain module 601, identification module 602, first judgment module 603 and adjustment module 604.
Module 601 is obtained, for obtaining the image comprising face.
Identification module 602, for identifying the face from described image.
First judgment module 603, for judging whether the face meets preset Focussing condition.
Module 604 is adjusted, for when the face meets preset Focussing condition, according to preset adjustment factor
Adjust focal length.
In one embodiment, one of following modules are included at least as shown in fig. 7, the first judgment module 603: the
One judging submodule 701 and second judgment submodule 702.
First judging submodule 701, for judging whether the position of the face is located at the central area of described image;?
When the position is located at the central area of described image, determine that the face meets preset Focussing condition.
Whether second judgment submodule 702, the ratio for judging the size of the face and the size of described image are big
In preset proportion threshold value, when the ratio of the size of the size and described image of the face is greater than preset proportion threshold value,
Determine that the face meets preset Focussing condition.
In one embodiment, the adjustment factor is not more than the ratio of described image and the central area.
In one embodiment, as shown in figure 8, the adjustment module 604 includes: coefficient submodule 801 and adjustment submodule
Block 802.
Coefficient submodule 801 determines preset for the ratio according to the size of the size and described image of the face
Adjustment factor.
Adjusting submodule 802, for adjusting focal length according to determining adjustment factor.
In one embodiment, as shown in figure 9, described device further include: mode module 901.
Mode module 901, for when the face meets preset Focussing condition, current photographing mode to be cut
It is changed to portrait photographing mode.
In one embodiment, as shown in Figure 10, described device further include: the second judgment module 1001.
Second judgment module 1001, for judging whether current photographing mode is portrait photographing mode;
As shown in figure 11, the first judgment module 603 includes: third judging submodule 1101.
Third judging submodule 1101, for judging the face when current photographing mode is portrait photographing mode
Whether preset Focussing condition is met.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 12 is shown according to an exemplary embodiment a kind of for adjusting the block diagram of the device 1200 of focal length.For example,
Device 1200 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device,
Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 2, device 1200 may include following one or more components: processing component 1202, memory 1204,
Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module
1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in device 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1206 provides power supply for the various assemblies of device 1200.Power supply module 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of power supply.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When device 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of device 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1200
The position change of one component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and
The temperature change of device 1200.Sensor module 1214 may include proximity sensor, be configured in not any object
It is detected the presence of nearby objects when reason contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are passed
Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of device adjusting focal length, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
The processor can be additionally configured to:
It is described to judge whether the face meets preset Focussing condition, include at least one of the following steps:
Judge whether the position of the face is located at the central area of described image;It is located at described image in the position
When central area, determine that the face meets preset Focussing condition;
Judge whether the ratio of the size of the face and the size of described image is greater than preset proportion threshold value, described
When the ratio of the size of the size and described image of face is greater than preset proportion threshold value, determine that the face meets preset coke
Away from regularization condition.
The processor can be additionally configured to:
The adjustment factor is not more than the ratio of described image and the central area.
The processor can be additionally configured to:
It is described that focal length is adjusted according to preset adjustment factor, comprising:
According to the ratio of the size of the face and the size of described image, preset adjustment factor is determined;
Focal length is adjusted according to determining adjustment factor.
The processor can be additionally configured to:
The method also includes:
When the face meets preset Focussing condition, current photographing mode is switched to portrait and is taken pictures mould
Formula.
The processor can be additionally configured to:
The method also includes:
Judge whether current photographing mode is portrait photographing mode;
It is described to judge whether the face meets preset Focussing condition, comprising:
When current photographing mode is portrait photographing mode, judge whether the face meets preset Focussing item
Part.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device executes, so that mobile terminal is able to carry out a kind of method for adjusting focal length, which comprises
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
Instruction in the storage medium can also include:
It is described to judge whether the face meets preset Focussing condition, include at least one of the following steps:
Judge whether the position of the face is located at the central area of described image;It is located at described image in the position
When central area, determine that the face meets preset Focussing condition;
Judge whether the ratio of the size of the face and the size of described image is greater than preset proportion threshold value, described
When the ratio of the size of the size and described image of face is greater than preset proportion threshold value, determine that the face meets preset coke
Away from regularization condition.
Instruction in the storage medium can also include:
The adjustment factor is not more than the ratio of described image and the central area.
Instruction in the storage medium can also include:
It is described that focal length is adjusted according to preset adjustment factor, comprising:
According to the ratio of the size of the face and the size of described image, preset adjustment factor is determined;
Focal length is adjusted according to determining adjustment factor.
Instruction in the storage medium can also include:
The method also includes:
When the face meets preset Focussing condition, current photographing mode is switched to portrait and is taken pictures mould
Formula.
Instruction in the storage medium can also include:
The method also includes:
Judge whether current photographing mode is portrait photographing mode;
It is described to judge whether the face meets preset Focussing condition, comprising:
When current photographing mode is portrait photographing mode, judge whether the face meets preset Focussing item
Part.
Figure 13 is shown according to an exemplary embodiment a kind of for adjusting the block diagram of the device 1300 of focal length.For example,
Device 1300 may be provided as a computer.Referring to Fig.1 3, it further comprises one that device 1300, which includes processing component 1322,
A or multiple processors, and the memory resource as representated by memory 1332, can be by processing component 1322 for storing
The instruction of execution, such as application program.The application program stored in memory 1332 may include one or more every
One corresponds to the module of one group of instruction.In addition, processing component 1322 is configured as executing instruction, to execute above method adjustment
Focal length.
Device 1300 can also include that a power supply module 1326 be configured as the power management of executive device 1300, and one
Wired or wireless network interface 1350 is configured as device 1300 being connected to network and input and output (I/O) interface
1358.Device 1300 can be operated based on the operating system for being stored in memory 1332, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (13)
1. a kind of method for adjusting focal length characterized by comprising
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
2. the method for adjustment focal length according to claim 1, which is characterized in that described to judge whether the face meets pre-
If Focussing condition, include at least one of the following steps:
Judge whether the position of the face is located at the central area of described image;It is located at the center of described image in the position
When region, determine that the face meets preset Focussing condition;
Judge whether the ratio of the size of the face and the size of described image is greater than preset proportion threshold value, in the face
Size and described image size ratio be greater than preset proportion threshold value when, determine that the face meets preset focal length tune
Shelf-regulating Conditions.
3. the method for adjustment focal length according to claim 2, which is characterized in that the adjustment factor is not more than described image
With the ratio of the central area.
4. the method for adjustment focal length according to claim 1, which is characterized in that described to be adjusted according to preset adjustment factor
Focal length, comprising:
According to the ratio of the size of the face and the size of described image, preset adjustment factor is determined;
Focal length is adjusted according to determining adjustment factor.
5. the method for adjustment focal length according to claim 1, which is characterized in that the method also includes:
When the face meets preset Focussing condition, current photographing mode is switched to portrait photographing mode.
6. the method for adjustment focal length according to claim 1, which is characterized in that the method also includes:
Judge whether current photographing mode is portrait photographing mode;
It is described to judge whether the face meets preset Focussing condition, comprising:
When current photographing mode is portrait photographing mode, judge whether the face meets preset Focussing condition.
7. a kind of device for adjusting focal length characterized by comprising
Module is obtained, for obtaining the image comprising face;
Identification module, for identifying the face from described image;
First judgment module, for judging whether the face meets preset Focussing condition;
Module is adjusted, for adjusting according to preset adjustment factor burnt when the face meets preset Focussing condition
Away from.
8. the device of adjustment focal length according to claim 7, which is characterized in that the first judgment module includes at least
One of following modules:
First judging submodule, for judging whether the position of the face is located at the central area of described image;In institute's rheme
Setting in described image central area when, determine that the face meets preset Focussing condition;
Second judgment submodule, for judging it is preset whether the ratio of the size of the face and the size of described image is greater than
Proportion threshold value, when the ratio of the size of the size and described image of the face is greater than preset proportion threshold value, described in determination
Face meets preset Focussing condition.
9. the device of adjustment focal length according to claim 8, which is characterized in that the adjustment factor is not more than described image
With the ratio of the central area.
10. the device of adjustment focal length according to claim 7, which is characterized in that the adjustment module includes:
Coefficient submodule determines preset adjusting system for the ratio according to the size of the size and described image of the face
Number;
Adjusting submodule, for adjusting focal length according to determining adjustment factor.
11. the device of adjustment focal length according to claim 7, which is characterized in that described device further include:
Mode module, for when the face meets preset Focussing condition, current photographing mode to be switched as people
As photographing mode.
12. the device of adjustment focal length according to claim 7, which is characterized in that described device further include:
Second judgment module, for judging whether current photographing mode is portrait photographing mode;
The first judgment module includes:
Third judging submodule, for judging whether the face meets when current photographing mode is portrait photographing mode
Preset Focussing condition.
13. a kind of device for adjusting focal length characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the image comprising face;
The face is identified from described image;
Judge whether the face meets preset Focussing condition;
When the face meets preset Focussing condition, focal length is adjusted according to preset adjustment factor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710881467.5A CN109561249A (en) | 2017-09-26 | 2017-09-26 | Adjust the method and device of focal length |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710881467.5A CN109561249A (en) | 2017-09-26 | 2017-09-26 | Adjust the method and device of focal length |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109561249A true CN109561249A (en) | 2019-04-02 |
Family
ID=65862860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710881467.5A Pending CN109561249A (en) | 2017-09-26 | 2017-09-26 | Adjust the method and device of focal length |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109561249A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225240A (en) * | 2019-04-28 | 2019-09-10 | 努比亚技术有限公司 | A kind of filming control method, terminal and computer readable storage medium |
CN111263066A (en) * | 2020-02-18 | 2020-06-09 | Oppo广东移动通信有限公司 | Composition guiding method, composition guiding device, electronic equipment and storage medium |
CN112022109A (en) * | 2020-11-06 | 2020-12-04 | 南京诺源医疗器械有限公司 | Medical fluorescence imaging image data acquisition system and acquisition method thereof |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150660A (en) * | 2006-09-19 | 2008-03-26 | 富士胶片株式会社 | Imaging apparatus, method, and program |
CN101996044A (en) * | 2009-08-24 | 2011-03-30 | 三星电子株式会社 | Method and apparatus for controlling zoom using a touch screen |
CN102693632A (en) * | 2012-04-27 | 2012-09-26 | 徐贵力 | Monitoring device and monitoring method based on visual image |
CN102984454A (en) * | 2012-11-15 | 2013-03-20 | 广东欧珀移动通信有限公司 | System and method and mobile phone capable of automatically adjusting focal length of camera |
CN103108120A (en) * | 2011-11-14 | 2013-05-15 | 三星电子株式会社 | Zoom control method and apparatus |
CN103581543A (en) * | 2012-07-18 | 2014-02-12 | 三星电子株式会社 | Photographing apparatus, photographing control method, and eyeball recognition apparatus |
CN103595917A (en) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | Mobile terminal and focusing method thereof |
US20140184854A1 (en) * | 2012-12-28 | 2014-07-03 | Motorola Mobility Llc | Front camera face detection for rear camera zoom function |
JP2015070287A (en) * | 2013-09-26 | 2015-04-13 | 京セラ株式会社 | Portable terminal with camera and imaging method |
CN104519266A (en) * | 2013-09-30 | 2015-04-15 | 鸿富锦精密工业(深圳)有限公司 | Photographing device and adjusting system and adjusting method thereof |
CN104574359A (en) * | 2014-11-03 | 2015-04-29 | 南京邮电大学 | Student tracking and positioning method based on primary and secondary cameras |
CN104956659A (en) * | 2013-01-09 | 2015-09-30 | 索尼公司 | Image processing device, image processing method and program |
CN106454139A (en) * | 2016-12-22 | 2017-02-22 | 广东欧珀移动通信有限公司 | Shooting method and mobile terminal |
-
2017
- 2017-09-26 CN CN201710881467.5A patent/CN109561249A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150660A (en) * | 2006-09-19 | 2008-03-26 | 富士胶片株式会社 | Imaging apparatus, method, and program |
CN101996044A (en) * | 2009-08-24 | 2011-03-30 | 三星电子株式会社 | Method and apparatus for controlling zoom using a touch screen |
CN103108120A (en) * | 2011-11-14 | 2013-05-15 | 三星电子株式会社 | Zoom control method and apparatus |
WO2013073766A1 (en) * | 2011-11-14 | 2013-05-23 | Samsung Electronics Co., Ltd. | Zoom control method and apparatus, and digital photographing apparatus |
CN102693632A (en) * | 2012-04-27 | 2012-09-26 | 徐贵力 | Monitoring device and monitoring method based on visual image |
CN103581543A (en) * | 2012-07-18 | 2014-02-12 | 三星电子株式会社 | Photographing apparatus, photographing control method, and eyeball recognition apparatus |
CN102984454A (en) * | 2012-11-15 | 2013-03-20 | 广东欧珀移动通信有限公司 | System and method and mobile phone capable of automatically adjusting focal length of camera |
US20140184854A1 (en) * | 2012-12-28 | 2014-07-03 | Motorola Mobility Llc | Front camera face detection for rear camera zoom function |
CN104956659A (en) * | 2013-01-09 | 2015-09-30 | 索尼公司 | Image processing device, image processing method and program |
JP2015070287A (en) * | 2013-09-26 | 2015-04-13 | 京セラ株式会社 | Portable terminal with camera and imaging method |
CN104519266A (en) * | 2013-09-30 | 2015-04-15 | 鸿富锦精密工业(深圳)有限公司 | Photographing device and adjusting system and adjusting method thereof |
CN103595917A (en) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | Mobile terminal and focusing method thereof |
CN104574359A (en) * | 2014-11-03 | 2015-04-29 | 南京邮电大学 | Student tracking and positioning method based on primary and secondary cameras |
CN106454139A (en) * | 2016-12-22 | 2017-02-22 | 广东欧珀移动通信有限公司 | Shooting method and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225240A (en) * | 2019-04-28 | 2019-09-10 | 努比亚技术有限公司 | A kind of filming control method, terminal and computer readable storage medium |
CN111263066A (en) * | 2020-02-18 | 2020-06-09 | Oppo广东移动通信有限公司 | Composition guiding method, composition guiding device, electronic equipment and storage medium |
CN111263066B (en) * | 2020-02-18 | 2021-07-20 | Oppo广东移动通信有限公司 | Composition guiding method, composition guiding device, electronic equipment and storage medium |
CN112022109A (en) * | 2020-11-06 | 2020-12-04 | 南京诺源医疗器械有限公司 | Medical fluorescence imaging image data acquisition system and acquisition method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105991930B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
US10375296B2 (en) | Methods apparatuses, and storage mediums for adjusting camera shooting angle | |
CN108419016B (en) | Shooting method and device and terminal | |
EP3032821B1 (en) | Method and device for shooting a picture | |
US20170034430A1 (en) | Video recording method and device | |
WO2016008246A1 (en) | Shooting parameter adjusting method and apparatus | |
RU2628473C2 (en) | Method and device for sound signal optimisation | |
US10230891B2 (en) | Method, device and medium of photography prompts | |
CN104683691B (en) | Image pickup method, device and equipment | |
CN106131416B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
EP3133874A1 (en) | Method and apparatus for starting energy saving mode | |
CN106357934B (en) | Screen locking control method and device | |
JP2011504339A (en) | System and method for generating photos with variable image quality | |
CN106303192B (en) | Terminal control method and terminal | |
CN105512615B (en) | Image processing method and device | |
CN105657186B (en) | Method for controlling volume and device | |
CN111695382A (en) | Fingerprint collection area determining method and fingerprint collection area determining device | |
CN104460185A (en) | Automatic focusing method and device | |
CN104219445A (en) | Method and device for adjusting shooting modes | |
CN107426489A (en) | Processing method, device and terminal during shooting image | |
CN104980662A (en) | Method for adjusting imaging style in shooting process, device thereof and imaging device | |
CN109561249A (en) | Adjust the method and device of focal length | |
CN108845787A (en) | Method, apparatus, terminal and the storage medium that audio is adjusted | |
CN109284053A (en) | Comment information display methods and device, mobile terminal and storage medium | |
CN108848303A (en) | Shoot reminding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190402 |
|
RJ01 | Rejection of invention patent application after publication |