CN110062166A - Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing - Google Patents
Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing Download PDFInfo
- Publication number
- CN110062166A CN110062166A CN201910340500.2A CN201910340500A CN110062166A CN 110062166 A CN110062166 A CN 110062166A CN 201910340500 A CN201910340500 A CN 201910340500A CN 110062166 A CN110062166 A CN 110062166A
- Authority
- CN
- China
- Prior art keywords
- roi frame
- frame
- ratio
- size
- roi
- 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/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
-
- 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/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- 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
- H04N23/675—Focus control based on electronic image sensor signals comprising setting of focusing regions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of method, apparatus, mobile terminal and storage mediums for improving face auto-focusing, are applied to mobile terminal, which comprises multiple default ROI frames when mobile terminal built-in camera focusing are arranged;Determine the ratio between the multiple default ROI frame;According to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;According to the size of the multiple default ROI frame, the pixel of the multiple default ROI frame is determined, the pixel of determining the multiple default ROI frame is participated in calculating the value of Fv.Through the embodiment of the present invention, participate in calculating the value of Fv according to the pixel of two or more default ROI frames, the pixel that parameter calculates greatly increases, and promotes the Fv result of auto-focusing, to improve insufficient light or unevenly cause the position of face focusing less accurate, user experience is improved.
Description
Technical field
The present invention relates to field of mobile terminals, in particular to a kind of method, apparatus for improving face auto-focusing, movement are eventually
End and storage medium.
Background technique
Currently, mobile terminal becomes increasingly popular, more and more using the user of mobile terminal, and user routine use is mobile eventually
End is also more and more frequent, so that mobile terminal has become one of essential mobile device of user.
Mobile terminal built-in camera generally all has face identification functions, when there is face in camera lens, face focusing
By face recognition algorithms, judge whether scene face occurs, if there is face, mobile terminal built-in camera can be automatically in people
The position of face draws focus frame, and current picture is focused in the position of face, is framed face with a focus frame.Frame people
After face, according to the facial size of face recognition algorithms feedback and position, ROI (the Region Of that auto-focusing needs is determined
Interest, area-of-interest) frame size and position.The size of face ROI frame needs to include entire face in image
Size, auto-focusing process can according to the pixel in face ROI frame, calculate focusing need Fv value.According to face position
Fv value determines the position of focusing motor, so that focusing is in clearest point.
But lead to people due to insufficient light or unevenly when perhaps taking pictures by flash lamp under half-light environment
The position of face focusing is less accurate, causes auto-focusing process that can not determine that clearest picture causes the photo taken to compare
Now fuzzy or secondary clear situation.
The generation of above situation, so that user thinks the camera function of mobile terminal, there are flaws, influence user experience.
Summary of the invention
In view of this, it is provided in an embodiment of the present invention it is a kind of improve the method, apparatus of face auto-focusing, mobile terminal and
Storage medium, participates in calculating the value of Fv according to the pixel of two or more default ROI frames, and the pixel that parameter calculates increases
Add, promote the Fv of auto-focusing as a result, to improve insufficient light or unevenly cause face focus position it is less accurate,
Improve user experience.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of an embodiment of the present invention, a kind of method of the raising face auto-focusing provided is applied to move
Dynamic terminal, which comprises
Multiple default ROI frames when mobile terminal built-in camera focusing are set;
Determine the ratio between the multiple default ROI frame;
According to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;
According to the size of the multiple default ROI frame, the pixel of the multiple default ROI frame is determined, described in determining
The pixel of multiple default ROI frames participates in calculating the value of Fv.
In a possible design, the default ROI frame includes at least following two ROI frame: face part ROI frame,
Neck part ROI frame, upper part of the body torso portion ROI frame.
Ratio in a possible design, between the multiple default ROI frame of determination;It include: with described pre-
If face part ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame;
Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size,
Vertical dimension is the second ratio of the face part ROI frame horizontal size;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the of the face part ROI frame horizontal size
Three ratios, vertical dimension are the 4th ratio of the face part ROI frame horizontal size.
In a possible design, the ratio according between the multiple default ROI frame is determined the multiple pre-
If the size of ROI frame;It include: that the size of default face part ROI frame, including horizontal ruler are determined according to face recognition algorithms feedback
Very little and vertical dimension.
In a possible design, the ratio according between the multiple default ROI frame is determined the multiple pre-
If the size of ROI frame;Include:
The neck part ROI frame and the face part ROI frame are on same central axes, the people is positioned next to
Immediately below the ROI frame of face part;
According to first ratio and the second ratio, the horizontal size of the neck part ROI frame and vertical is determined respectively
Size.
In a possible design, the ratio according between the multiple default ROI frame is determined the multiple pre-
If the size of ROI frame;Include:
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to
Immediately below the neck part ROI frame;
According to the third ratio and the 4th ratio, the horizontal size of the upper part of the body torso portion ROI frame is determined respectively
And vertical dimension.
In a possible design, the size according to the multiple default ROI frame is determined the multiple default
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of ROI frame;Include:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame of above-mentioned determination, pixel, the upper half of the neck part ROI frame
At least two or more participation in the pixel of body stem portion ROI frame calculates the value of Fv.
A kind of other side according to an embodiment of the present invention, the device of the raising face auto-focusing provided, is applied to
Mobile terminal, described device include: setup module, ratio-dependent module, size determining module, pixel determining module, in which:
The setup module, multiple default ROI frames when for mobile terminal built-in camera focusing to be arranged;;
The ratio-dependent module, for determining the ratio between the multiple default ROI frame;
The size determining module, for determining the multiple default according to the ratio between the multiple default ROI frame
The size of ROI frame;
The pixel determining module determines the multiple default ROI for the size according to the multiple default ROI frame
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of frame.
Other side according to an embodiment of the present invention, a kind of mobile terminal provided, comprising: memory, processor and
It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing
Device realizes a kind of the step of method of raising face auto-focusing provided in an embodiment of the present invention when executing.
Other side according to an embodiment of the present invention, a kind of storage medium provided are stored on the storage medium
The program of the method for face auto-focusing is improved, the program of the method for improving face auto-focusing is real when being executed by processor
A kind of the step of method of existing raising face auto-focusing provided in an embodiment of the present invention.
Compared with the relevant technologies, the embodiment of the present invention provides a kind of implementation method using prompt operation and device, movement
Terminal and storage medium are applied to mobile terminal, comprising: multiple default ROI when mobile terminal built-in camera focusing are arranged
Frame;Determine the ratio between the multiple default ROI frame;According to the ratio between the multiple default ROI frame, determine described more
The size of a default ROI frame;According to the size of the multiple default ROI frame, the pixel of the multiple default ROI frame is determined, it will
The pixel of determining the multiple default ROI frame participates in calculating the value of Fv.Through the embodiment of the present invention, according to two or more
The pixel of default ROI frame participates in calculating the value of Fv, and the pixel that parameter calculates greatly increases, promote the Fv of auto-focusing as a result, from
And the position improved insufficient light or unevenly face is caused to be focused is less accurate, improves user experience.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of method for improving face auto-focusing provided in an embodiment of the present invention;
ROI frame schematic layout pattern when Fig. 4 is a kind of raising face auto-focusing provided in an embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram of device for improving face auto-focusing provided in an embodiment of the present invention;
Fig. 6 is a kind of flow diagram of method for improving face auto-focusing provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
It should be noted that description and claims of the invention are received and the term " first " in above-mentioned attached drawing, " the
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 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 GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Mobile terminal built-in camera generally all has face identification functions, when there is face in camera lens, face focusing
By face recognition algorithms, judge whether scene face occurs, if there is face, mobile terminal built-in camera can be automatically in people
The position of face draws focus frame, and current picture is focused in the position of face, is framed face with a focus frame.Frame people
After face, according to the facial size of face recognition algorithms feedback and position, ROI (the Region Of that auto-focusing needs is determined
Interest, area-of-interest) frame size and position.The size of face ROI frame needs to include entire face in image
Size, auto-focusing process can according to the pixel in face ROI frame, calculate focusing need Fv value.According to face position
Fv value determines the position of focusing motor, so that focusing is in clearest point.
When insufficient light or it is uneven when, the pixel in face ROI frame, which is unable to fully to provide effective information, leads to Fv value
Calculated result inaccuracy, causes auto-focusing process that can not determine clearest picture.
Please refer to Fig. 3 and Fig. 4.The embodiment of the present invention provides a kind of method for improving face auto-focusing, is applied to movement
Terminal, which comprises
Step S1, be arranged multiple default ROI when the mobile terminal built-in camera is focused (Region Of Interest,
Area-of-interest) frame;
Step S2, the ratio between the multiple default ROI frame is determined;
Step S3, according to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;
Step S4, it according to the size of the multiple default ROI frame, determines the pixel of the multiple default ROI frame, will determine
The multiple default ROI frame pixel participate in calculate Fv value.
Further, in the step S1, the default ROI frame includes at least following two ROI frame: face part ROI
Frame 1, neck part ROI frame 2, upper part of the body torso portion ROI frame 3.As shown in Figure 4.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with wherein
One default ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with described
Default face part ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame
Example;Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size,
Vertical dimension is the second ratio of the face part ROI frame horizontal size;Preferably, first ratio is 80%, described
Second ratio is 33%;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the of the face part ROI frame horizontal size
Three ratios, vertical dimension are the 4th ratio of the face part ROI frame horizontal size;Preferably, the third ratio is
125%, the 4th ratio is 100%.
Further, in the step S3, the ratio according between the multiple default ROI frame is determined described more
The size of a default ROI frame;Include:
The size of default face part ROI frame, including horizontal size and miter square are determined according to face recognition algorithms feedback
It is very little;
The neck part ROI frame and the face part ROI frame are on same central axes, the people is positioned next to
Immediately below the ROI frame of face part, according to first ratio and the second ratio, the level of the neck part ROI frame is determined respectively
Size and vertical dimension;
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to
Immediately below the neck part ROI frame, according to the third ratio and the 4th ratio, the upper part of the body torso portion is determined respectively
The horizontal size and vertical dimension of ROI frame.
Further, in the step S4, the size according to the multiple default ROI frame is determined the multiple pre-
If the pixel of ROI frame, the pixel of determining the multiple default ROI frame is participated in calculating the value of Fv;Include:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame of above-mentioned determination, pixel, the upper half of the neck part ROI frame
At least two or more participation in the pixel of body stem portion ROI frame calculates the value of Fv.
In this way, participating in calculating the value of Fv according to the pixel of two or more default ROI frames, the pixel that parameter calculates is significantly
Increase, promotes the Fv of auto-focusing as a result, to improve insufficient light or unevenly cause the position of face focusing less quasi-
Really.
The embodiment of the present invention provides a kind of method for improving face auto-focusing, is applied to mobile terminal, the method packet
It includes: multiple default ROI frames when mobile terminal built-in camera focusing is set;Determine the ratio between the multiple default ROI frame
Example;According to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;According to the multiple pre-
If the size of ROI frame, the pixel of the multiple default ROI frame is determined, the pixel of determining the multiple default ROI frame is participated in
Calculate the value of Fv.Through the embodiment of the present invention, participate in calculating the value of Fv, ginseng according to the pixel of two or more default ROI frames
The pixel that number calculates greatly increases, and promotes the Fv of auto-focusing as a result, to improve insufficient light or unevenly lead to face
The position of focusing is less accurate, improves user experience.
Please refer to Fig. 4 and Fig. 5.The embodiment of the present invention provides a kind of device for improving face auto-focusing, is applied to movement
Terminal, described device include: setup module 10, ratio-dependent module 20, size determining module 30, pixel determining module 40,
In:
The setup module 10, multiple default ROI frames when for mobile terminal built-in camera focusing to be arranged;
The ratio-dependent module 20, for determining the ratio between the multiple default ROI frame;
The size determining module 30, for determining the multiple pre- according to the ratio between the multiple default ROI frame
If the size of ROI frame;
The pixel determining module 40 determines the multiple default for the size according to the multiple default ROI frame
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of ROI frame.
Further, the default ROI frame includes at least following two ROI frame: face part ROI frame 1, neck part
ROI frame 2, upper part of the body torso portion ROI frame 3.As shown in Figure 4.
Further, the ratio-dependent module 20 is used to determine the ratio between the multiple default ROI frame;It is specific to use
In: ROI frame is preset as with reference to default ROI frame using one of them, determines other default ROI frames and with reference between default ROI frame
Ratio.
Further, the ratio-dependent module 20 is used to determine the ratio between the multiple default ROI frame;It is specific to use
In: using the default face part ROI frame as with reference to default ROI frame, determine other default ROI frames and with reference to default ROI frame
Between ratio;Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size,
Vertical dimension is the second ratio of the face part ROI frame horizontal size;Preferably, first ratio is 80%, described
Second ratio is 33%;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the of the face part ROI frame horizontal size
Three ratios, vertical dimension are the 4th ratio of the face part ROI frame horizontal size;Preferably, the third ratio is
125%, the 4th ratio is 100%.
Further, the size determining module 30 is used to determine institute according to the ratio between the multiple default ROI frame
State the size of multiple default ROI frames;It is specifically used for:
The size of default face part ROI frame, including horizontal size and miter square are determined according to face recognition algorithms feedback
It is very little;
The neck part ROI frame and the face part ROI frame are on same central axes, the people is positioned next to
Immediately below the ROI frame of face part, according to first ratio and the second ratio, the level of the neck part ROI frame is determined respectively
Size and vertical dimension;
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to
Immediately below the neck part ROI frame, according to the third ratio and the 4th ratio, the upper part of the body torso portion is determined respectively
The horizontal size and vertical dimension of ROI frame.
Further, the pixel determining module 40 is used for the size according to the multiple default ROI frame, determines described more
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of a default ROI frame;It is specifically used for:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame of above-mentioned determination, pixel, the upper half of the neck part ROI frame
At least two or more participation in the pixel of body stem portion ROI frame calculates the value of Fv.
In this way, participating in calculating the value of Fv according to the pixel of two or more default ROI frames, the pixel that parameter calculates is significantly
Increase, promotes the Fv of auto-focusing as a result, to improve insufficient light or unevenly cause the position of face focusing less quasi-
Really.
The embodiment of the present invention provides a kind of device for improving face auto-focusing, is applied to mobile terminal, described device packet
It includes: setup module, ratio-dependent module, size determining module, pixel determining module, in which: the setup module is for being arranged
The mobile terminal built-in camera multiple default ROI frames when focusing;The ratio-dependent module is the multiple default for determining
Ratio between ROI frame;The size determining module 30 determines described more according to the ratio between the multiple default ROI frame
The size of a default ROI frame;The pixel determining module is used for the size according to the multiple default ROI frame, determines described more
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of a default ROI frame.It is real through the invention
Example is applied, participates in calculating the value of Fv according to the pixel of two or more default ROI frames, the pixel that parameter calculates is greatly increased, mentioned
The Fv of auto-focusing is risen as a result, improving to improve insufficient light or unevenly cause the position of face focusing less accurate
User experience.
It should be noted that above-mentioned apparatus embodiment and embodiment of the method belong to same design, specific implementation process is detailed
See embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in described device embodiment, it is no longer superfluous here
It states.
Technical solution of the present invention is described in further detail with reference to embodiments.
Please refer to Fig. 4 and Fig. 6.
The embodiment of the present invention provides a kind of method for improving face auto-focusing, is based on following several basic conditions:
(1) people's face and body be integrally connected it is ameristic.
(2) in the focus process of recognition of face, the face and its body belong in a focal plane.
(3) facial size and trunk size are proportional.
The embodiment of the present invention provides a kind of method for improving face auto-focusing, is applied to mobile terminal, the method packet
It includes:
Step S601, multiple default ROI frames when the mobile terminal built-in camera is focused are set;Wherein, the default ROI
Frame includes at least following two ROI frame: face part ROI frame 1, neck part ROI frame 2, upper part of the body torso portion ROI frame 3.Such as
Shown in Fig. 4.
Step S602, determine that the face part ROI frame includes horizontal size and vertical dimension.
Step S603, the horizontal size that the neck part ROI frame is arranged is the face part ROI frame horizontal size
80%, vertical dimension is the 33% of the face part ROI frame horizontal size.
Step S604, the horizontal size that the upper part of the body torso portion ROI frame is arranged is that the face part ROI frame is horizontal
The 125% of size, vertical dimension are the 100% of the face part ROI frame horizontal size.
Step S605, the size of default face part ROI frame, including horizontal size are determined according to face recognition algorithms feedback
And vertical dimension.
Step S606, the neck part ROI frame and the face part ROI frame are on same central axes, position
Close to immediately below the face part ROI frame, according to first ratio and the second ratio, the neck part is determined respectively
The horizontal size and vertical dimension of ROI frame.
Step S607, the upper part of the body torso portion ROI frame and the face part ROI frame are in same central axes
On, it is positioned next to immediately below the neck part ROI frame, according to the third ratio and the 4th ratio, determines on described respectively
The horizontal size and vertical dimension of half body torso portion ROI frame.
Step S608, according to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
Step S609, according to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
Step S610, according to the size of the upper part of the body torso portion ROI frame, the upper part of the body torso portion ROI is determined
The pixel of frame;
Step S611, by the pixel of the face part ROI frame of above-mentioned determination, the pixel of the neck part ROI frame,
At least two or more participation in the pixel of the upper part of the body torso portion ROI frame calculates the value of Fv.
In this way, participating in calculating the value of Fv according to the pixel of two or more default ROI frames, the pixel that parameter calculates is significantly
Increase, promotes the Fv of auto-focusing as a result, to improve insufficient light or unevenly cause the position of face focusing less quasi-
Really.
The embodiment of the present invention provides a kind of method for improving face auto-focusing, is applied to mobile terminal, the method packet
It includes: multiple default ROI frames when mobile terminal built-in camera focusing is set;Determine the ratio between the multiple default ROI frame
Example;According to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;According to the multiple pre-
If the size of ROI frame, the pixel of the multiple default ROI frame is determined, the pixel of determining the multiple default ROI frame is participated in
Calculate the value of Fv.Through the embodiment of the present invention, participate in calculating the value of Fv, ginseng according to the pixel of two or more default ROI frames
The pixel that number calculates greatly increases, and promotes the Fv of auto-focusing as a result, to improve insufficient light or unevenly lead to face
The position of focusing is less accurate, improves user experience.
In addition, the embodiment of the present invention also provides a kind of mobile terminal, as shown in fig. 7, the mobile terminal 900 includes: to deposit
Reservoir 902, processor 901 and it is stored in one for can running in the memory 902 and on the processor 901 or more
A computer program, the memory 902 and the processor 901 are coupled by bus system 903, it is one or
To realize that a kind of raising face provided in an embodiment of the present invention is automatic when the multiple computer programs of person are executed by the processor 901
The following steps of the method for focusing:
Step S1, be arranged multiple default ROI when the mobile terminal built-in camera is focused (Region Of Interest,
Area-of-interest) frame;
Step S2, the ratio between the multiple default ROI frame is determined;
Step S3, according to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;
Step S4, it according to the size of the multiple default ROI frame, determines the pixel of the multiple default ROI frame, will determine
The multiple default ROI frame pixel participate in calculate Fv value.
Further, in the step S1, the default ROI frame includes at least following two ROI frame: face part ROI
Frame, neck part ROI frame, upper part of the body torso portion ROI frame.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with wherein
One default ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with described
Default face part ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame
Example;Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size,
Vertical dimension is the second ratio of the face part ROI frame horizontal size;Preferably, first ratio is 80%, described
Second ratio is 33%;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the of the face part ROI frame horizontal size
Three ratios, vertical dimension are the 4th ratio of the face part ROI frame horizontal size;Preferably, the third ratio is
125%, the 4th ratio is 100%.
Further, in the step S3, the ratio according between the multiple default ROI frame is determined described more
The size of a default ROI frame;Include:
The size of default face part ROI frame, including horizontal size and miter square are determined according to face recognition algorithms feedback
It is very little;
The neck part ROI frame and the face part ROI frame are on same central axes, the people is positioned next to
Immediately below the ROI frame of face part, according to first ratio and the second ratio, the level of the neck part ROI frame is determined respectively
Size and vertical dimension;
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to
Immediately below the neck part ROI frame, according to the third ratio and the 4th ratio, the upper part of the body torso portion is determined respectively
The horizontal size and vertical dimension of ROI frame.
Further, in the step S4, the size according to the multiple default ROI frame is determined the multiple pre-
If the pixel of ROI frame, the pixel of determining the multiple default ROI frame is participated in calculating the value of Fv;Include:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame of above-mentioned determination, pixel, the upper half of the neck part ROI frame
At least two or more participation in the pixel of body stem portion ROI frame calculates the value of Fv.
The method that the embodiments of the present invention disclose can be applied in the processor 901, or by the processor
901 realize.The processor 901 may be a kind of IC chip, have signal handling capacity.During realization, on
Each step for stating method can be complete by the integrated logic circuit of the hardware in the processor 901 or the instruction of software form
At.The processor 901 can be general processor, DSP or other programmable logic device, discrete gate or transistor
Logical device, discrete hardware components etc..The processor 901 may be implemented or execute disclosed each in the embodiment of the present invention
Method, step and logic diagram.General processor can be microprocessor or any conventional processor etc..In conjunction with the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or be handled with decoding
Hardware and software module combination in device execute completion.Software module can be located in storage medium, which, which is located at, deposits
The step of reservoir 902, the processor 901 reads the information in memory 902, completes preceding method in conjunction with its hardware.
It is appreciated that the memory 902 of the embodiment of the present invention can be volatile memory or nonvolatile memory,
It also may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (ROM,
Read-Only Memory), it is programmable read only memory (PROM, Programmable Read-Only Memory), erasable
Programmable read only memory (EPROM, Erasable Read-Only Memory), electricallyerasable ROM (EEROM) (EEPROM,
Electrically Erasable Programmable Read-Only Memory), magnetic RAM (FRAM,
Ferromagnetic Random Access Memory), flash memory (Flash Memory) or other memory technologies, CD only
Read memory (CD-ROM, Compact Disk Read-Only Memory), digital versatile disc (DVD, Digital Video
) or other optical disc storages, magnetic holder, tape, disk storage or other magnetic memory apparatus Disk;Volatile memory can be at random
It accesses memory (RAM, Random Access Memory), by exemplary but be not restricted explanation, the RAM of many forms
It can use, such as static random access memory (SRAM, Static Random Access Memory), static random-access are deposited
Reservoir (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir is intended to include but is not limited to the memory of these and any other suitable type.
It should be noted that above-mentioned mobile terminal embodiment and embodiment of the method belong to same design, implemented
Journey is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in the mobile terminal embodiment, this
In repeat no more.
In addition, in the exemplary embodiment, the embodiment of the present invention also provides a kind of storage medium, specially computer-readable
Storage medium, for example including the memory 902 for storing computer program, it is automatically right to be improved face for storage on the storage medium
One or more program of one or more program of burnt method, the method for improving face auto-focusing is processed
A kind of following steps of method for improving face auto-focusing provided in an embodiment of the present invention are realized when device 901 executes:
Step S1, be arranged multiple default ROI when the mobile terminal built-in camera is focused (Region Of Interest,
Area-of-interest) frame;
Step S2, the ratio between the multiple default ROI frame is determined;
Step S3, according to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;
Step S4, it according to the size of the multiple default ROI frame, determines the pixel of the multiple default ROI frame, will determine
The multiple default ROI frame pixel participate in calculate Fv value.
Further, in the step S1, the default ROI frame includes at least following two ROI frame: face part ROI
Frame, neck part ROI frame, upper part of the body torso portion ROI frame.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with wherein
One default ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame.
Further, the ratio in the step S2, between the multiple default ROI frame of determination;It include: with described
Default face part ROI frame, which is used as, determines other default ROI frames with reference to default ROI frame and with reference to the ratio between default ROI frame
Example;Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size,
Vertical dimension is the second ratio of the face part ROI frame horizontal size;Preferably, first ratio is 80%, described
Second ratio is 33%;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the of the face part ROI frame horizontal size
Three ratios, vertical dimension are the 4th ratio of the face part ROI frame horizontal size;Preferably, the third ratio is
125%, the 4th ratio is 100%.
Further, in the step S3, the ratio according between the multiple default ROI frame is determined described more
The size of a default ROI frame;Include:
The size of default face part ROI frame, including horizontal size and miter square are determined according to face recognition algorithms feedback
It is very little;
The neck part ROI frame and the face part ROI frame are on same central axes, the people is positioned next to
Immediately below the ROI frame of face part, according to first ratio and the second ratio, the level of the neck part ROI frame is determined respectively
Size and vertical dimension;
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to
Immediately below the neck part ROI frame, according to the third ratio and the 4th ratio, the upper part of the body torso portion is determined respectively
The horizontal size and vertical dimension of ROI frame.
Further, in the step S4, the size according to the multiple default ROI frame is determined the multiple pre-
If the pixel of ROI frame, the pixel of determining the multiple default ROI frame is participated in calculating the value of Fv;Include:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame of above-mentioned determination, pixel, the upper half of the neck part ROI frame
At least two or more participation in the pixel of body stem portion ROI frame calculates the value of Fv.
It should be noted that the method program of the raising face auto-focusing on above-mentioned computer readable storage medium is implemented
Example belongs to same design with embodiment of the method, and specific implementation process is detailed in embodiment of the method, and the technology in embodiment of the method
Feature is corresponding in the embodiment of above-mentioned computer readable storage medium to be applicable in, and which is not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of method for improving face auto-focusing, is applied to mobile terminal, which is characterized in that the described method includes:
Multiple default ROI frames when mobile terminal built-in camera focusing are set;
Determine the ratio between the multiple default ROI frame;
According to the ratio between the multiple default ROI frame, the size of the multiple default ROI frame is determined;
According to the size of the multiple default ROI frame, the pixel of the multiple default ROI frame is determined, it will be determining the multiple
The pixel of default ROI frame participates in calculating the value of Fv.
2. the method according to claim 1, wherein the default ROI frame includes at least following two ROI frame:
Face part ROI frame, neck part ROI frame, upper part of the body torso portion ROI frame.
3. according to the method described in claim 2, it is characterized in that, ratio between the multiple default ROI frame of the determination;
It include: to determine other default ROI frames and with reference to default ROI using the default face part ROI frame as with reference to default ROI frame
Ratio between frame;Include:
The face part ROI frame includes horizontal size and vertical dimension;
The horizontal size that the neck part ROI frame is arranged is the first ratio of the face part ROI frame horizontal size, vertically
The second ratio having a size of the face part ROI frame horizontal size;
The horizontal size that the upper part of the body torso portion ROI frame is arranged is the third ratio of the face part ROI frame horizontal size
Example, vertical dimension are the 4th ratio of the face part ROI frame horizontal size.
4. according to the method described in claim 3, it is characterized in that, the ratio according between the multiple default ROI frame,
Determine the size of the multiple default ROI frame;It include: that default face part ROI frame is determined according to face recognition algorithms feedback
Size, including horizontal size and vertical dimension.
5. according to the method described in claim 4, it is characterized in that, the ratio according between the multiple default ROI frame,
Determine the size of the multiple default ROI frame;Include:
The neck part ROI frame and the face part ROI frame are on same central axes, the face is positioned next to
Divide immediately below ROI frame;
According to first ratio and the second ratio, the horizontal size and vertical dimension of the neck part ROI frame are determined respectively.
6. according to the method described in claim 4, it is characterized in that, the ratio according between the multiple default ROI frame,
Determine the size of the multiple default ROI frame;Include:
The upper part of the body torso portion ROI frame and the face part ROI frame are on same central axes, are positioned next to described
Immediately below the ROI frame of neck part;
According to the third ratio and the 4th ratio, the horizontal size of the upper part of the body torso portion ROI frame is determined respectively and is hung down
Ruler cun.
7. according to the method described in claim 6, it is characterized in that, the size according to the multiple default ROI frame, determines
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by the pixel of the multiple default ROI frame;Include:
According to the size of the face part ROI frame, the pixel of the face part ROI frame is determined;
According to the size of the neck part ROI frame, the pixel of the neck part ROI frame is determined;
According to the size of the upper part of the body torso portion ROI frame, the pixel of the upper part of the body torso portion ROI frame is determined;
By the pixel of the face part ROI frame, the pixel of the neck part ROI frame, the upper half body of above-mentioned determination
At least two or more participation in the pixel of stem portion ROI frame calculates the value of Fv.
8. a kind of device for improving face auto-focusing, is applied to a kind of raising face as described in any one of claim 1 to 7
The method of auto-focusing, which is characterized in that described device include: setup module, ratio-dependent module, size determining module, as
Plain determining module, in which:
The setup module, multiple default ROI frames when for mobile terminal built-in camera focusing to be arranged;;
The ratio-dependent module, for determining the ratio between the multiple default ROI frame;
The size determining module, for determining the multiple default ROI according to the ratio between the multiple default ROI frame
The size of frame;
The pixel determining module determines the multiple default ROI frame for the size according to the multiple default ROI frame
The pixel of determining the multiple default ROI frame is participated in calculating the value of Fv by pixel.
9. a kind of mobile terminal characterized by comprising memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 7 is realized when the computer program is executed by the processor
Any one of described in a kind of raising face auto-focusing method the step of.
10. a kind of storage medium, which is characterized in that storage is improved face auto-focusing on the computer readable storage medium
Method program, the program of method for improving face auto-focusing realizes such as claim 1 to 7 when being executed by processor
Any one of described in a kind of raising face auto-focusing method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910340500.2A CN110062166A (en) | 2019-04-25 | 2019-04-25 | Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910340500.2A CN110062166A (en) | 2019-04-25 | 2019-04-25 | Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110062166A true CN110062166A (en) | 2019-07-26 |
Family
ID=67320883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910340500.2A Pending CN110062166A (en) | 2019-04-25 | 2019-04-25 | Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110062166A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116055874A (en) * | 2021-06-29 | 2023-05-02 | 荣耀终端有限公司 | Focusing method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625506A (en) * | 2008-07-07 | 2010-01-13 | 华晶科技股份有限公司 | Face automatic focusing method of digital image acquirement device |
US20160330366A1 (en) * | 2014-01-17 | 2016-11-10 | Sony Corporation | Image processing device and method, and program |
CN106412422A (en) * | 2016-09-05 | 2017-02-15 | 广东欧珀移动通信有限公司 | Focusing method, focusing device and terminal |
WO2017166076A1 (en) * | 2016-03-29 | 2017-10-05 | 华为技术有限公司 | Method, device and apparatus for determining focus window |
-
2019
- 2019-04-25 CN CN201910340500.2A patent/CN110062166A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625506A (en) * | 2008-07-07 | 2010-01-13 | 华晶科技股份有限公司 | Face automatic focusing method of digital image acquirement device |
US20160330366A1 (en) * | 2014-01-17 | 2016-11-10 | Sony Corporation | Image processing device and method, and program |
WO2017166076A1 (en) * | 2016-03-29 | 2017-10-05 | 华为技术有限公司 | Method, device and apparatus for determining focus window |
CN106412422A (en) * | 2016-09-05 | 2017-02-15 | 广东欧珀移动通信有限公司 | Focusing method, focusing device and terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116055874A (en) * | 2021-06-29 | 2023-05-02 | 荣耀终端有限公司 | Focusing method and electronic equipment |
CN116055874B (en) * | 2021-06-29 | 2023-10-20 | 荣耀终端有限公司 | Focusing method and electronic equipment |
CN117857920A (en) * | 2021-06-29 | 2024-04-09 | 荣耀终端有限公司 | Focusing method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495056A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN108108704A (en) | Face identification method and mobile terminal | |
CN108159688A (en) | Interface sharing method, mobile terminal and computer readable storage medium | |
CN109032466A (en) | Long screenshot method, mobile terminal and storage medium based on double screen | |
CN108182028A (en) | A kind of control method, terminal and computer readable storage medium | |
CN109743764A (en) | A kind of identification elevator scene method and device, mobile terminal device and storage medium | |
CN109672822A (en) | A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium | |
CN110086993A (en) | Image processing method, device, mobile terminal and computer readable storage medium | |
CN110035270A (en) | A kind of 3D rendering display methods, terminal and computer readable storage medium | |
CN108197554A (en) | A kind of camera starts method, mobile terminal and computer readable storage medium | |
CN108965710A (en) | Method, photo taking, device and computer readable storage medium | |
CN110113779A (en) | Test method, system, test platform, mobile terminal and the medium of eSIM card | |
CN108900779A (en) | Initial automatic exposure convergence method, mobile terminal and computer readable storage medium | |
CN108601004A (en) | NFC uses bootstrap technique, mobile terminal and computer readable storage medium | |
CN107241504A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN110166615A (en) | Automatically switch method, apparatus, terminal and the storage medium in call uplink signal source | |
CN108769534A (en) | A kind of focalization method and terminal | |
CN109672843A (en) | Video communication method, terminal and computer readable storage medium | |
CN109711830A (en) | The quick display methods and device, mobile terminal and storage medium of two dimensional code payment | |
CN109688268A (en) | A kind of method and device, mobile terminal and the storage medium of mixed audio output | |
CN108200350A (en) | Autozoom image pickup method, mobile terminal and computer readable storage medium | |
CN108282608A (en) | Multizone focusing method, mobile terminal and computer readable storage medium | |
CN110062166A (en) | Improve method, apparatus, mobile terminal and the storage medium of face auto-focusing | |
CN109976644A (en) | Using the implementation method and device of prompt operation, mobile terminal and storage medium | |
CN109561221A (en) | A kind of call control method, equipment and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190726 |