CN110046597A - Face identification method, mobile terminal and computer readable storage medium - Google Patents

Face identification method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110046597A
CN110046597A CN201910327700.4A CN201910327700A CN110046597A CN 110046597 A CN110046597 A CN 110046597A CN 201910327700 A CN201910327700 A CN 201910327700A CN 110046597 A CN110046597 A CN 110046597A
Authority
CN
China
Prior art keywords
facial image
acquisition
face
recognition
preset duration
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
Application number
CN201910327700.4A
Other languages
Chinese (zh)
Inventor
宋伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910327700.4A priority Critical patent/CN110046597A/en
Publication of CN110046597A publication Critical patent/CN110046597A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/167Detection; Localisation; Normalisation using comparisons between temporally consecutive images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Abstract

The invention discloses a kind of face identification method, mobile terminal and computer readable storage mediums.This method comprises: when receiving recognition of face instruction, open the camera of mobile terminal, based on the first default frequency acquisition, acquire the first facial image of target object, based on the first facial image and the first preset duration, identify the first facial image, if at the end of the first preset duration, confirm the first facial image recognition failures, the first default frequency acquisition is then reduced to the second default frequency acquisition, camera is controlled with the second facial image of the second default frequency acquisition acquisition target object, based on the second facial image and the second preset duration, identify the second facial image, if in the second preset duration, confirm that the second facial image identifies successfully, then close camera.The present invention improves the accuracy rate of facial image identification, reduces the power consumption of recognition of face.

Description

Face identification method, mobile terminal and computer readable storage medium
Technical field
This application involves technical field of face recognition more particularly to a kind of face identification methods, mobile terminal and computer Readable storage medium storing program for executing.
Background technique
With the continuous development and application of face recognition technology, the utilization of face recognition technology is more and more general on terminal device And such as face unlock, face authentication etc., currently, in face recognition process, camera generally obtains frequency with hi-vision Rate acquires facial image to be identified and correspondingly, increases the identification of facial image to cause man face image acquiring quantity big Therefore, in recognition of face amount acquires and identifies the technical problem big there are active redundancy, power consumption.
Summary of the invention
The main purpose of the present invention is to provide a kind of face identification method, mobile terminal and readable storage medium storing program for executing, it is intended to It solves to acquire and identify the technical problem big there are active redundancy, power consumption in the prior art.
To achieve the above object, the present invention provides a kind of face identification method, and the face identification method includes following step It is rapid:
When receiving recognition of face instruction, the camera of mobile terminal is opened, is based on the first default frequency acquisition, acquisition First facial image of target object;
Based on first facial image and the first preset duration, first facial image is identified;
It is if at the end of first preset duration, confirming the first facial image recognition failures, then pre- by described first If frequency acquisition is reduced to the second default frequency acquisition, the camera is controlled with the described second default frequency acquisition and acquires the mesh Mark the second facial image of object;
Based on second facial image and the second preset duration, second facial image is identified;
If confirming that second facial image identifies successfully in second preset duration, then closing the camera.
Optionally, described to open the camera of mobile terminal when receiving recognition of face instruction, it presets and adopts based on first Collect frequency, the step of acquiring the first facial image of target object includes:
When receiving recognition of face instruction, the camera of mobile terminal is opened, and show and acquire face figure comprising user The guidance interface of the guidance information of picture;
When the guidance information is matched with the real time status information of mobile terminal, then it is pre- with first to control the camera If the first facial image of frequency acquisition acquisition target object.
Optionally, described the step of being based on the first default frequency acquisition, acquiring the first facial image of target object, includes:
Based on the first default frequency acquisition, acquire target object the first facial image and the first initial acquisition time point and First real-time acquisition time point;
Based on the first initial acquisition time point and the first real-time acquisition time point, obtains and acquire the target pair The first facial image of elephant first acquisition duration, when it is described first acquisition duration be equal to the first preset duration, sentence Fixed first preset duration terminates.
Optionally, described to be based on first facial image and the first preset duration, identify first facial image Step includes:
Based on first facial image, the first initial acquisition time point and the first real-time acquisition time point, The the first acquisition duration for obtaining first facial image of acquisition target object, judges the first acquisition duration Whether first preset duration is equal to;
If being equal to first preset duration, inquiring in goal-selling facial image whether there is and first face The facial image of images match;
If in the goal-selling facial image there is no with the matched facial image of the first facial image, confirm The first facial image recognition failures.
Optionally, the control camera acquires the second of the target object with the described second default frequency acquisition The step of facial image includes:
Based on the described second default frequency acquisition, the second facial image and the second initial acquisition of the target object are acquired Time point and the second real-time acquisition time point;
Based on the second initial acquisition time point and the second real-time acquisition time point, obtains and acquire the target pair The second facial image of elephant second acquisition duration, when it is described second acquisition duration be equal to the second preset duration, sentence Fixed second preset duration terminates.
Optionally, described to be based on second facial image and the second preset duration, identify second facial image Step includes:
Based on second facial image, the second initial acquisition time point and the second real-time acquisition time point, The the second acquisition duration for obtaining second facial image for acquiring the target object judges that second acquisition continues Whether duration is equal to the second preset duration;
If being equal to second preset duration, inquiring in the goal-selling facial image whether there is and described second The matched facial image of facial image;
If in the goal-selling facial image there is no with the matched facial image of the second facial image, confirm The second facial image recognition failures.
Optionally, described to be based on second facial image and the second preset duration, identify second facial image After step, further includes:
If confirming the second facial image recognition failures, output is mentioned comprising the second facial image recognition failures Show information, the described second default frequency acquisition is changed to the described first default frequency acquisition;
Close the camera.
Optionally, the face identification method further include:
First recognition success rate of the first facial image in the first preset duration of timing acquisition;
Minimum threshold value is preset when first recognition success rate is less than, and reduces the first default frequency acquisition and/or increases by the One preset duration;
Very big threshold value is preset when first recognition success rate is greater than, and increases by the first default frequency acquisition and/or reduces the One preset duration.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory, Processor and it is stored in the recognition of face program that can be run on the memory and on the processor, the recognition of face journey The step of any of the above-described face identification method is realized when sequence is executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with computer program on storage medium, any of the above-described recognition of face is realized when the computer program is executed by processor The step of method.
The present invention is by according to facial image recognition efficiency, different time sections in face recognition process, using face The different acquisition frequency of image, it is thereby achieved that in the different time sections of man face image acquiring, the change of man face image acquiring frequency Change, to reduce face picture collecting work amount, and then improves the accuracy rate of facial image identification, reduce recognition of face Power consumption.
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 the flow diagram of the applicant's face recognition method first embodiment;
Fig. 4 is the flow diagram of the applicant's face recognition method second embodiment;
Fig. 5 is the flow diagram of the applicant's face recognition method 3rd embodiment;
Fig. 6 is the flow diagram of the applicant's face recognition method fourth embodiment;
Fig. 7 is the flow diagram of the 5th embodiment of the applicant's face recognition method;
Fig. 8 is the flow diagram of the applicant's face recognition method sixth embodiment;
Fig. 9 is the flow diagram of the 7th embodiment of the applicant's face recognition method.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of 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.
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 For moving except purpose element, embodiment according to the present invention construction also can application program in the end of fixed type End.
Referring to Fig. 1, a kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention, it should Mobile 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 journey of mobile phone posture Sequence (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Fingerprint sensor, pressure sensor, iris sensor, molecule sensor, the gyroscope, air pressure that can also configure as mobile phone The other sensors such as meter, 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 integration application processor and modulatedemodulate Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediated Reason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
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.On It is for illustration only to state serial number of the embodiment of the present invention, 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.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In addition, processor 110 can call the recognition of face stored in memory 109 in terminal structure as shown in Figure 1 Program executes following operation:
Based on first facial image and the first preset duration, first facial image is identified;
It is if at the end of first preset duration, confirming the first facial image recognition failures, then pre- by described first If frequency acquisition is reduced to the second default frequency acquisition, the camera is controlled with the described second default frequency acquisition and acquires the mesh Mark the second facial image of object;
Based on second facial image and the second preset duration, second facial image is identified;
If confirming that second facial image identifies successfully in second preset duration, then closing the camera.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
When receiving recognition of face instruction, the camera of mobile terminal is opened, and show and acquire face figure comprising user The guidance interface of the guidance information of picture;
When the guidance information is matched with the real time status information of mobile terminal, then it is pre- with first to control the camera If the first facial image of frequency acquisition acquisition target object.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
Based on the first default frequency acquisition, acquire target object the first facial image and the first initial acquisition time point and First real-time acquisition time point;
Based on the first initial acquisition time point and the first real-time acquisition time point, obtains and acquire the target pair The first facial image of elephant first acquisition duration, when it is described first acquisition duration be equal to the first preset duration, sentence Fixed first preset duration terminates.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
Based on first facial image, the first initial acquisition time point and the first real-time acquisition time point, The the first acquisition duration for obtaining first facial image of acquisition target object, judges the first acquisition duration Whether first preset duration is equal to;
If being equal to first preset duration, inquiring in goal-selling facial image whether there is and first face The facial image of images match;
If in the goal-selling facial image there is no with the matched facial image of the first facial image, confirm The first facial image recognition failures.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
Based on the described second default frequency acquisition, the second facial image and the second initial acquisition of the target object are acquired Time point and the second real-time acquisition time point;
Based on the second initial acquisition time point and the second real-time acquisition time point, obtains and acquire the target pair The second facial image of elephant second acquisition duration, when it is described second acquisition duration be equal to the second preset duration, sentence Fixed second preset duration terminates.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
Based on second facial image, the second initial acquisition time point and the second real-time acquisition time point, The the second acquisition duration for obtaining second facial image for acquiring the target object judges that second acquisition continues Whether duration is equal to the second preset duration;
If being equal to second preset duration, inquiring in the goal-selling facial image whether there is and described second The matched facial image of facial image;
If in the goal-selling facial image there is no with the matched facial image of the second facial image, confirm The second facial image recognition failures.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
If confirming the second facial image recognition failures, output is mentioned comprising the second facial image recognition failures Show information, the described second default frequency acquisition is changed to the described first default frequency acquisition;
Close the camera.
Further, processor 110 executes the computer program being stored in memory 109, also executes following operation:
First recognition success rate of the first facial image in the first preset duration of timing acquisition;
Minimum threshold value is preset when first recognition success rate is less than, and reduces the first default frequency acquisition and/or increases by the One preset duration;
Very big threshold value is preset when first recognition success rate is greater than, and increases by the first default frequency acquisition and/or reduces the One preset duration.
Based on above-mentioned terminal hardware structure and communications network system, each of terminal face identification method of the present invention is proposed Embodiment.
The present invention further provides a kind of face identification methods.
It is the method schematic diagram of the present inventor's face recognition method first embodiment referring to Fig. 3, Fig. 3.
In the present embodiment, the face identification method includes:
Step S10 opens the camera of mobile terminal when receiving recognition of face instruction, based on the first default acquisition Frequency acquires the first facial image of target object;
In the present embodiment, when receiving recognition of face instruction, the camera of mobile terminal is opened, presets and adopts based on first Collect frequency, acquires the first facial image of target object.
In the present embodiment, which is equipped with camera, has image-acquisition functions, such as take pictures, image, For obtaining the facial image of user, and the mobile terminal is equipped with display screen, is shown so that user obtains mobile terminal based on this The information of display screen output.
Specifically, in one embodiment, when receiving recognition of face instruction, the camera of mobile terminal is opened, Based on the first default frequency acquisition, the first facial image of target object is acquired, wherein the first default frequency acquisition is face figure As the conventional Christmas frequency of acquisition, the conventional Christmas frequency is related to the performance of face recognition device, for example, in the prior art, The conventional Christmas frequency is every 33 milliseconds and provides a frame, recognition of face SDK (Software Development Kit, Software Development Kit) call matching algorithm to match each frame image of acquisition with the facial image of prior typing, In the case where the failure of sdk algorithmic match, average 25 milliseconds of recognition of face are completed primary identification matching, and sdk algorithmic match is successful In the case of, average 65 milliseconds of recognition of face are completed primary identification matching.
It should be noted that the facial image based on standard qualification, identifies that the identification number of successful match is less than or equal to 10 times, i.e., it can determine whether current face's image meets the successful item of identification with maximum probability based on 10 frame facial images before acquisition Part.
Further, in one embodiment, in the recognition of face instruction for receiving user and being triggered based on mobile terminal When, detect whether the camera for opening mobile terminal, if it is not, then opening the camera of mobile terminal, whether detection camera is obtained The target area of acquisition target object is got, if so, acquisition is based on the first default frequency acquisition, acquires the first of target object Facial image.
Further, in one embodiment, in one embodiment, user is being received based on mobile terminal touching When the recognition of face instruction of hair, the camera for opening mobile terminal is detected whether, if so, whether detection camera gets and adopt Collect the target area of target object, if it is not, prompt information is then exported, to guide user to adjust head pose, with successful acquisition mesh Mark the first facial image of object.
Specifically, in one embodiment, after opening camera, with the first default frequency acquisition acquisition target object Initial Face image is based on the Initial Face image, obtains and judge the resolution ratio, clarity, facial image of the facial image Integrity degree and/or environmental light intensity, do not meet default identification condition to avoid the characteristics of image currently obtained, wherein default to know Other condition includes in the collected Initial Face image of detection with the presence or absence of shelter, the Initial Face image for blocking face Image blur, human face posture and brightness of image etc..Such as the facial image of acquisition do not have face face, block face, Acquire the abnormal faces images such as environment is too black, ornament is too many on face/head.
Further, in one embodiment, however, it is determined that Initial Face image does not meet default identification condition, then judgement is adopted Whether the time point for collecting the Initial Face image reaches corresponding preset duration, if so, determining people in corresponding preset duration Face image recognition failures terminate acquisition, if it is not, then continuing to acquire the initial people of target object based on the first default frequency acquisition Face image.
Step S20 is based on first facial image and the first preset duration, identifies first facial image;
In the present embodiment, it is based on the first facial image and the first preset duration, identifies the first facial image.
Specifically, in one embodiment, it is based on the first facial image, the image for obtaining first facial image is special Sign, based on the characteristics of image of first facial image, by the SDK face recognition of face matching algorithm in mobile terminal, first really There is face information in fixed first facial image, position and the size of face are then determined by geometrical characteristic algorithm, is then marked The elastic model of face is infused, using nose midpoint as line of demarcation, the right and left is got ready respectively, acquires face specific features, forms people Face facial feature data, switchs to binary data stream, for transmitting and identifying, it should be noted that the first preset duration needs It is preset in the terminal in advance.
Further, in one embodiment, which acquires the first facial image with the first default frequency acquisition, And be transmitted to corresponding identifying system and identified, in identification process, the quantity that camera acquires the first facial image is equal to The number of SDK recognition of face matching algorithm identification.
For example, camera is based on the first facial image and the first preset duration, the first facial image is identified, wherein first Preset duration is 1 second, and the first default frequency acquisition is every 33 milliseconds and provides a frame, then at the end of the first preset duration, obtains The first facial image be 30.3 frames, if recognition time be entire first preset duration, i.e., 1 second, then corresponding SDK recognition of face The number of matching algorithm identification is 30 times.
Step S30, if at the end of first preset duration, confirming the first facial image recognition failures, then by institute It states the first default frequency acquisition and is reduced to the second default frequency acquisition, control the camera and adopted with the described second default frequency acquisition Collect the second facial image of the target object;
In the present embodiment, if at the end of the first preset duration, confirming the first facial image recognition failures, then being preset first Frequency acquisition is reduced to the second default frequency acquisition, controls camera with the second people of the second default frequency acquisition acquisition target object Face image.
Specifically, in one embodiment, if at the end of the first preset duration, confirm SDK recognition of face matching algorithm It identifies that the first facial image fails, then the first default frequency acquisition is reduced to the second default frequency acquisition, wherein first default adopts Collection frequency and the second default frequency acquisition are both needed to be preset in the terminal in advance, it should be noted that second default adopts Collection frequency preset condition include, frequency acquisition be lower than the first default frequency acquisition, and ensure recognition of face object quality and Recognition efficiency.
Specifically, in one embodiment, for example, frequency i.e. 33 millisecond/frame of the first default frequency acquisition to default, Image is provided, 33 milliseconds/frame why is selected, is one frame of every matching because if sdk is in matching error face, is averagely needed 25 milliseconds are wanted, facial image frequency is too high, and sdk algorithm process does not come, and therefore, frequency is excessively high not to anticipate if camera provides Justice, and if frequency acquisition is too low, sdk algorithm need to wait for again camera offer image, the successful efficiency of recognition of face can be reduced, Although and 10 frame energy maximum probability preceding first conclude can recognition of face success, mostly can prevent special circumstances to some frames, protect Hinder recognition efficiency, therefore, the first default frequency acquisition selects 33 milliseconds/frame proper.Second default frequency acquisition is 100 millis The frequency of second/frame provides image, and camera provides facial image with high-frequency in preceding 10 frame, behind remaining preset time then with Lower frequency collection and improve facial image, so can largely reduce camera obtain facial image number and Therefore the number of sdk matching algorithm can greatly reduce unnecessary power consumption.
Step S40 is based on second facial image and the second preset duration, identifies second facial image;
Specifically, in one embodiment, for example, the second preset duration is 4 seconds, the second default 100 milli of frequency acquisition Second/frame, then in whole section of the second preset duration, the facial image provided is 40 frames.
Further, in one embodiment, the second people of the target object based on the second default frequency acquisition acquisition The characteristic of face image or the second facial image, according to this feature data, recognition of face SDK calls matching algorithm that will obtain Each frame image matched with the facial image of prior typing, it should be noted that mobile terminal face recognition process is Matching is identified in acquisition, if identifying successfully, terminates acquisition and identification, if recognition failures, in the second preset duration, after Continuous acquisition facial image is identified, until the second preset duration terminates or identifies successfully.
Step S50, if confirming that second facial image identifies successfully in second preset duration, then closing institute State camera.
In the present embodiment, if the second facial image of confirmation identifies successfully in the second preset duration, then the camera shooting is closed Head.
Specifically, in one embodiment, if in the second preset duration, the second facial image of confirmation is identified successfully, The successful prompt information of the second recognition of face is then exported, and closes camera.
It should be noted that the way of output of the output successful prompt information of the second recognition of face includes exporting default voice Prompting message and the default text prompting message of output.It should be noted that default voice reminder information and the default text of output mention Information of waking up needs are preset in the terminal in advance.
In the present embodiment, time segment adjusting is carried out by the frequency acquisition of the facial image to target object, thus Under the premise of ensureing discrimination, realizing reduces the amount of storage of facial image and man face image acquiring and identification in face recognition process Power consumption.
Further, as shown in figure 4, Fig. 4 is the flow diagram of the present inventor's face recognition method second embodiment, the reality It applies in example, the step S10 includes:
Step S101 opens the camera of mobile terminal, and show and adopt comprising user when receiving recognition of face instruction Collect the guidance interface of the guidance information of facial image;
Step S102 then controls the camera shooting when the guidance information is matched with the real time status information of mobile terminal Head is with the first facial image of the first default frequency acquisition acquisition target object.
In the present embodiment, when receiving recognition of face instruction, the camera of mobile terminal is opened, and shows to include user The guidance interface of the guidance information of facial image is acquired, when guidance information is matched with the real time status information of mobile terminal, then Camera is controlled with the first facial image of the first default frequency acquisition acquisition target object.
Specifically, in one embodiment, when receiving recognition of face instruction, the camera of mobile terminal is opened, And show the guidance interface that the guidance information of facial image is acquired comprising user, when the real-time status of guidance information and mobile terminal When information matches, then camera is controlled with the first facial image of the first default frequency acquisition acquisition target object, wherein guidance Information includes text information or animation information, and guidance user keeps correct head pose and position, in order to avoid the face figure of acquisition Occur not shaking significantly against face, artificially during piece, blocks false triggering starting recognition of face in facial, pocket, adopts Collect the abnormal problems such as environment is too black, ornament is excessive on acquisition target face or head, to ensure the acquisition matter of the first facial image Amount and collecting efficiency.
It should be noted that needing to carry out in the terminal in advance comprising the guidance information that user acquires facial image pre- If guidance information may include the information such as position, bright degree and the head pose of face.
In the present embodiment, during the camera of mobile terminal acquires facial image, adopted by showing comprising user Collect the guidance interface of the guidance information of facial image, is subsequent face to improve the quality and efficiency of man face image acquiring Identification provides identification material.
Further, as shown in figure 5, Fig. 5 is the flow diagram of the present inventor's face recognition method 3rd embodiment, the reality It applies in example, the step S10 includes:
Step S103, is based on the first default frequency acquisition, and the first facial image and first for acquiring target object are initially adopted Collect time point and the first real-time acquisition time point;
Step S104 is based on the first initial acquisition time point and the first real-time acquisition time point, obtains acquisition First acquisition duration of the first facial image of the target object, when the first acquisition duration is equal to first in advance If duration, determine that first preset duration terminates.
In the present embodiment, it is based on the first default frequency acquisition, acquires the first facial image and first of target object initially Acquisition time and the first real-time acquisition time point are based on the first initial acquisition time point and the first real-time acquisition time point, obtain The the first acquisition duration for taking the first facial image of acquisition target object is preset when the first acquisition duration is equal to first Duration determines that the first preset duration terminates.
Specifically, in one embodiment, it is based on the first default frequency acquisition, acquires the first face figure of target object As and the first initial acquisition time point and the first real-time acquisition time point, by the first default frequency acquisition, the first facial image and First initial acquisition time point was associated with preservation with the first real-time acquisition time point to corresponding face image database, wherein the One facial image corresponding acquisition time is used to record and judge whether the time of the first man face image acquiring to be pre- more than first If duration, specifically, when opening camera acquisition, mobile terminal starts timing, and when acquiring the first facial image, record is adopted Collect facial image corresponding first acquisition time, if record the first facial image of acquisition corresponding first acquisition time reaches first Preset duration then terminates acquisition, closes camera.
In the present embodiment, by the first default frequency acquisition, the first facial image and the first facial image are acquired and obtained Corresponding first acquisition time provides identification material to establish face image database for subsequent realization recognition of face And technical support.
Further, as shown in fig. 6, Fig. 6 is the flow diagram of the present inventor's face recognition method fourth embodiment, the reality It applies in example, the step S20 includes:
Step S201 is based on first facial image, the first initial acquisition time point and the first real-time acquisition time point, The the first acquisition duration for obtaining the first facial image for acquiring the target object, judges the first acquisition duration Whether the first preset duration is equal to, if so, thening follow the steps S202;
Step S202, inquiring in goal-selling facial image whether there is and the matched face figure of first facial image Picture, if it is not, thening follow the steps S203;
Step S203 confirms the first facial image recognition failures.
In the present embodiment, it is based on the first facial image, the first initial acquisition time point and the first real-time acquisition time point, is obtained The the first acquisition duration for taking the first facial image for acquiring the target object judges that the first acquisition duration is It is no be equal to first preset duration, if be equal to the first preset duration, inquire in goal-selling facial image with the presence or absence of with The matched facial image of first facial image, if there is no matched with first facial image in goal-selling facial image Facial image then confirms the first facial image recognition failures.
Specifically, in one embodiment, the first facial image of Yu Suoshu, the first initial acquisition time point and first are real When acquisition time, determined by recognition of face when predefined face in ex-first lady's face image and goal-selling facial image Whether image matches.Wherein, when ex-first lady's face image can be the facial image shot under visible light illumination by camera Or the facial image shot under Infrared irradiation.The facial image that prestores can be to be shot under visible light illumination by camera Facial image and/or the face characteristic data extracted from the facial image, are also possible to the people shot under Infrared irradiation Face image and/or the facial image characteristic extracted from the facial image, the facial image prestored include at least a use One facial image at family, preferably includes multiple facial images of each user, and multiple facial images prestored can be organized in column The database of table or other forms, the present invention in face image database not by the limit of the present embodiment particular content and form It is fixed.
Further, in one embodiment, at the end of the first preset duration, however, it is determined that when ex-first lady's face image It is mismatched with facial image predefined in goal-selling facial image, then confirms the first facial image recognition failures, if the In one preset duration, determines in goal-selling facial image and exist when the matched predefined face figure of ex-first lady's face image Picture then confirms that the first facial image is identified as function.
Further, in one embodiment, when acquiring the first facial image, the first preset duration and first is obtained Facial image corresponding acquisition time is compared according to the first facial image corresponding acquisition time with the first preset duration It is right, judge whether to reach the first preset duration, if reaching, judges that the first preset duration terminates, the failure of the first facial image, if Not up to, then judge that the first preset duration is not finished, i.e., in the first preset duration, then continue to identify first facial image.
In the present embodiment, by whether there is and the matched face of the first facial image in inquiry goal-selling facial image Image, and to the first acquisition duration compared with the first preset duration, to realize based on to acquisition duration Therefore the judgement that control influences the first facial image recognition result reduces the workload of recognition of face, improves recognition of face Efficiency.
Further, as shown in fig. 7, Fig. 7 is the flow diagram of the 5th embodiment of the present inventor's face recognition method, the reality It applies in example, the step S30 includes:
Step S301 is based on the described second default frequency acquisition, acquires the second facial image and the of the target object Two initial acquisition time points and the second real-time acquisition time point;
Step S302 is based on the second initial acquisition time point and the second real-time acquisition time point, obtains acquisition Second acquisition duration of the second facial image of the target object, when the second acquisition duration is equal to second in advance If duration, determine that second preset duration terminates.
In the present embodiment, it is based on the second default frequency acquisition, acquires the second facial image and second of target object initially Acquisition time and the second real-time acquisition time point are based on the second initial acquisition time point and the second real-time acquisition time point, obtain The the second acquisition duration for taking the second facial image of acquisition target object is preset when the second acquisition duration is equal to second Duration determines that the second preset duration terminates.
Specifically, in one embodiment, it is based on the second default frequency acquisition, acquires the second face figure of target object As and the second initial acquisition time point and the second real-time acquisition time point, by the second default frequency acquisition, the second facial image and Second initial acquisition time point was associated with preservation with the second real-time acquisition time point to corresponding face image database, wherein the Two facial images corresponding acquisition time is used to record and judge whether the time of the second man face image acquiring to be pre- more than second If duration, specifically, when opening camera acquisition, mobile terminal starts timing, and when acquiring the second facial image, record is adopted Collect facial image corresponding second acquisition time, if record the second facial image of acquisition corresponding second acquisition time reaches second Preset duration then terminates acquisition, closes camera.
In the present embodiment, by the second default frequency acquisition, the second facial image and the second facial image are acquired and obtained Corresponding second acquisition time realizes in the second preset duration to calculate the second acquisition duration to second The acquisition of facial image provides technical support for the second recognition of face.
Further, as shown in figure 8, Fig. 8 is the flow diagram of the present inventor's face recognition method sixth embodiment, the reality It applies in example, the step S40 includes:
Step S401 is based on second facial image, the second initial acquisition time point and the second real-time acquisition time point, The the second acquisition duration for obtaining the second facial image for acquiring the target object, judges the second acquisition duration Whether the second preset duration is equal to, if so, thening follow the steps S402;
Step S402, inquiring in goal-selling facial image whether there is and the matched face figure of second facial image Picture, if it is not, thening follow the steps S403;
Step S403 confirms the second facial image recognition failures.
In the present embodiment, it is based on the second facial image, the second initial acquisition time point and the second real-time acquisition time point, is obtained The second acquisition duration of the second facial image of acquisition target object is taken, inquiring in goal-selling facial image whether there is With the matched facial image of the second facial image, when second acquisition duration be equal to the second preset duration when, if goal-selling In facial image there is no with the matched facial image of the second facial image, then the second facial image recognition failures are confirmed, the In two preset durations, if in goal-selling facial image exist with the matched facial image of the second facial image, confirm second Facial image identifies successfully.
Specifically, in one embodiment, the second facial image of Yu Suoshu, the second initial acquisition time point and second are real When acquisition time, predefined face in current second facial image and goal-selling facial image is determined by recognition of face Whether image matches.Wherein, current second facial image can be the facial image shot under visible light illumination by camera Or the facial image shot under Infrared irradiation.The facial image that prestores can be to be shot under visible light illumination by camera Facial image and/or the face characteristic data extracted from the facial image, are also possible to the people shot under Infrared irradiation Face image and/or the facial image characteristic extracted from the facial image, the facial image prestored include at least a use One facial image at family, preferably includes multiple facial images of each user, and multiple facial images prestored can be organized in column The database of table or other forms, the present invention in face image database not by the limit of the present embodiment particular content and form It is fixed.
Further, in one embodiment, at the end of the second preset duration, however, it is determined that current second facial image It is mismatched with facial image predefined in goal-selling facial image, then confirms the second facial image recognition failures, if the In two preset durations, determine that there are the matched predefined face figures of current second facial image in goal-selling facial image Picture then confirms that the second facial image identifies successfully.
Further, in one embodiment, when acquiring the second facial image, the second preset duration and second is obtained Facial image corresponding acquisition time is compared according to the second facial image corresponding acquisition time with the second preset duration It is right, judge whether to reach the second preset duration, if reaching, judge that the second preset duration terminates, if not up to, judging second Preset duration is not finished, i.e., in the second preset duration, continues to identify the second facial image.
In the present embodiment, by whether there is and the matched face of the second facial image in inquiry goal-selling facial image Image, and to the second acquisition duration compared with the second preset duration, to realize based on to acquisition duration Therefore the judgement that control influences the second facial image recognition result reduces the workload of recognition of face, improves recognition of face Efficiency.
Further, as shown in figure 9, Fig. 9 is the flow diagram of the 7th embodiment of the present inventor's face recognition method, the reality It applies in example, after the step S40, further includes:
Step S50, if confirmation the second facial image recognition failures, output are identified comprising second facial image The prompt information of failure, is changed to the described first default frequency acquisition for the described second default frequency acquisition;
Step S60 closes the camera.
In the present embodiment, if the second facial image recognition failures of confirmation, output includes the second facial image recognition failures Prompt information, the second default frequency acquisition is changed to the first default frequency acquisition, closes camera.
Specifically, in one embodiment, if the second facial image recognition failures of confirmation, output includes the second face The prompt information of image recognition failure is comprising the prompt information of the second facial image recognition failures needs in advance in movement It is configured in terminal, which includes default speech prompt information and default text prompt information.
Further, in one embodiment, the second default frequency acquisition is changed to the first default frequency acquisition, closed Camera, wherein it should be noted that the second default frequency acquisition is confirming the identification of the second facial image lower than further After failure, prepares for face recognition operation next time, the second default frequency acquisition is changed to the first default frequency acquisition.
Further, in one embodiment, for example, the first preset duration is 1 second started after camera, second is pre- If Shi Changwei, 4 seconds after the first preset duration, the first default frequency acquisition is 33 milliseconds/frame, the second default frequency acquisition For 100 milliseconds/frame, wherein the first default frequency acquisition be 33 milliseconds/frame, be because sdk algorithmic match failure in the case where, It completes primary identification for average 25 milliseconds of recognition of face to match, in the successful situation of sdk algorithmic match, recognition of face is 65 milliseconds average Primary identification matching is completed, if sdk algorithmic match fails, the frequency acquisition that camera uses is too high, and sdk algorithm process is only Come, then high frequency acquisition cannot not only improve recognition efficiency, but also will cause acquisition image work redundancy, if frequency acquisition is too Facial image low, that sdk algorithm needs that camera is waited to provide again, can reduce the successful speed of recognition of face, therefore, select 33 Millisecond/frame is proper, and the first preset duration is 1 second started after camera, and with high frequency acquisition in the first preset duration There is provided image, be because while preceding 10 frame energy maximum probability conclude can recognition of face success, but give some frames can guard against enemy agents in advance Different situation can provide facial image 30 frame in the first preset duration in 1 second.After the second preset duration in 4 seconds, with 100 millis The frequency acquisition of second/frame provides facial image, can provide facial image 40 frame in the second preset duration.Therefore, pass through we Case, in preset 5 seconds durations, the facial image that camera provides is 70 frames, and in the prior art, in preset 5 seconds durations Interior, the frequency acquisition that camera provides is 33 milliseconds/frame, so that the facial image provided is 100 frames, therefore, this programme can be with It allows camera to save 50% or more workload, also allows sdk to reduce the matching times of more than half, and then save function Consumption.
In the present embodiment, by exporting the prompt information comprising the second facial image recognition failures, and second is preset and is adopted Collection frequency is changed to the first default frequency acquisition, improves the experience sense of user, and it is default to provide first for recognition of face next time The technical support of frequency acquisition.
Further, it is based on any embodiment in the first to the 6th, proposes the 8th embodiment of the present inventor's face recognition method, The embodiment includes:
Step S70, the first recognition success rate of the first facial image in the first preset duration of timing acquisition;
Step S80 presets minimum threshold value when first recognition success rate is less than, reduce the first default frequency acquisition and/ Or increase by the first preset duration;
Step S90 presets very big threshold value when first recognition success rate is greater than, increase the first default frequency acquisition and/ Or reduce the first preset duration.
In the present embodiment, by the first recognition success rate of the first facial image in the first preset duration of timing acquisition, when First recognition success rate, which is less than, presets minimum threshold value, reduces the first default frequency acquisition and/or increases by the first preset duration, when the One recognition success rate, which is greater than, presets very big threshold value, increases by the first default frequency acquisition and/or reduces the first preset duration.
Specifically, in one embodiment, based on the first facial image recognition result of confirmation, the first face figure is calculated As identifying corresponding first recognition success rate, by first recognition success rate and presets minimum threshold value and preset very big threshold value progress Compare, if the first recognition success rate be less than preset minimum threshold value, detect that the first facial image recognition success rate is too low, this at The too low reason of power includes that the first default frequency acquisition is excessively high and/or the first preset duration is too short, i.e. in the first preset duration First facial image picture amount of acquisition is very few, and corresponding matching times are very few, wherein calculates first facial image identification pair The method for the first recognition success rate answered, including the number of success for identifying the first facial image corresponding in the first preset duration Divided by corresponding identification total degree.
Further, in one embodiment, in the first preset duration of timing acquisition the first facial image first know Other success rate, wherein the time in timing can be preset in the terminal, which may include first pre- If duration, the second preset duration and other times length, this programme is not by the present embodiment to the specific length of the time in timing Limitation.
Further, in one embodiment, when detecting the first recognition success rate less than minimum threshold value is preset, subtract The first preset duration of small first default frequency acquisition and increase, to increase the identification time of the first facial image in the first preset duration Number to improve the success rate of recognition of face, and then saves recognition of face power, improves the efficiency of recognition of face.For example, this is pre- If minimum threshold value is 30%, when detecting the first recognition success rate is 25%, by the current first default every 33 milli of frequency acquisition Second provides a frame, is reduced to one frame of every 25 milliseconds of offers and increases for the first preset duration 1.5 current first preset duration 1 second Second.
Further, in one embodiment, when detecting the first recognition success rate less than minimum threshold value is preset, subtract Small first default frequency acquisition, for example, it is 30% that this, which presets minimum threshold value, when detecting the first recognition success rate is 25%, It provides the current first every 33 milliseconds of default frequency acquisition to a frame, one frame of every 25 milliseconds of offers is provided.
Further, in one embodiment, when detecting the first recognition success rate less than minimum threshold value is preset, increase Add the first preset duration, for example, it is 30% that this, which presets minimum threshold value, when detecting the first recognition success rate is 25%, will work as Preceding first preset duration 1 second, increasing is the first preset duration 1.5 seconds.
Further, in one embodiment, very big threshold value is preset when the first recognition success rate is greater than, it is pre- increases by first If the first preset duration of frequency acquisition and reduction, to reduce the identification number of the first facial image in the first preset duration, thus Recognition of face workload is reduced, saves the power consumption of recognition of face, and then improve the efficiency of recognition of face.For example, this is default very big Threshold value is 60%, and when detecting the first recognition success rate is 70%, the current first every 33 milliseconds of default frequency acquisition is provided One frame increases and provides a frame for every 40 milliseconds, by current first preset duration 1 second, is reduced to the first preset duration 0.5 second.
Further, in one embodiment, very big threshold value is preset when the first recognition success rate is greater than, it is pre- increases by first If frequency acquisition, for example, it is 60% that this, which presets very big threshold value, when detecting the first recognition success rate is 70%, by current the One one frame of the default every 33 milliseconds of offers of frequency acquisition, increases and provides a frame for every 40 milliseconds.
Further, in one embodiment, very big threshold value is preset when the first recognition success rate is greater than, it is pre- reduces first If duration, for example, it is 60% that this, which presets very big threshold value, it is pre- by current first when detecting the first recognition success rate is 70% If duration 1 second, being reduced to the first preset duration 0.5 second.
Further, in one embodiment, in the second preset duration of timing acquisition the second facial image second know Other success rate presets minimum threshold value when the second recognition success rate is less than, and reduces the second default frequency acquisition and/or increases by second in advance If duration, very big threshold value is preset when the second recognition success rate is greater than, increases by the second default frequency acquisition and/or reduces second and preset Duration.
In the present embodiment, by combining the first recognition success rate compared with presetting minimum threshold value and presetting very big threshold value, To adjust the first default frequency acquisition and the first preset duration, and then default frequency acquisition and preset duration can be continuously improved Setting, for improve recognition of face accuracy, save power consumption provide technical support.
Further, the present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and storage On the memory and the recognition of face program that can run on the processor, the recognition of face program is by the processing Device, which is performed realized method when executing, can refer to each embodiment of terminal face identification method of the present invention, herein not It repeats again.
Further, in addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
Recognition of face program is stored on computer readable storage medium of the present invention, it is real when the recognition of face program executes Now the step of terminal face identification method as described above.
Wherein, the recognition of face program run on the processor, which is performed realized method, can refer to the present invention The each embodiment of terminal face identification method, details are 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 system 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 system 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 system.
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 add required general hardware platform mode to realize by software, naturally it is also possible to by hardware, but in many cases before Person is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words makes the prior art The part of contribution can be embodied in the form of software products, which is stored in one as described above and deposits In storage media (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, count Calculation machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of face identification method, which is characterized in that the face identification method the following steps are included:
When receiving recognition of face instruction, the camera of mobile terminal is opened, is based on the first default frequency acquisition, acquires target First facial image of object;
Based on first facial image and the first preset duration, first facial image is identified;
If confirming the first facial image recognition failures at the end of first preset duration, then described first is preset and adopted Collection frequency is reduced to the second default frequency acquisition, controls the camera with the described second default frequency acquisition and acquires the target pair The second facial image of elephant;
Based on second facial image and the second preset duration, second facial image is identified;
If confirming that second facial image identifies successfully in second preset duration, then closing the camera.
2. face identification method as described in claim 1, which is characterized in that it is described when receiving recognition of face instruction, it opens The camera of mobile terminal is opened, the first default frequency acquisition is based on, the step of acquiring the first facial image of target object includes:
When receiving recognition of face instruction, the camera of mobile terminal is opened, and show and acquire facial image comprising user The guidance interface of guidance information;
When the guidance information is matched with the real time status information of mobile terminal, then controls the camera and default adopted with first Collect the first facial image of frequency collection target object.
3. face identification method as described in claim 1, which is characterized in that described to be based on the first default frequency acquisition, acquisition The step of first facial image of target object includes:
Based on the first default frequency acquisition, the first facial image and the first initial acquisition time point and first of target object are acquired Real-time acquisition time point;
Based on the first initial acquisition time point and the first real-time acquisition time point, obtains and acquire the target object First acquisition duration of the first facial image, when the first acquisition duration is equal to the first preset duration, judgement institute Stating the first preset duration terminates.
4. face identification method as claimed in claim 3, which is characterized in that described to be based on first facial image and first Preset duration, identify first facial image the step of include:
Based on first facial image, the first initial acquisition time point and the first real-time acquisition time point, obtain Whether the first acquisition duration for acquiring first facial image of target object judges the first acquisition duration Equal to first preset duration;
If being equal to first preset duration, inquiring in goal-selling facial image whether there is and first facial image Matched facial image;
If in the goal-selling facial image there is no with the matched facial image of the first facial image, confirmation described in First facial image recognition failures.
5. face identification method as described in claim 1, which is characterized in that the control camera is pre- with described second If frequency acquisition acquires the step of the second facial image of the target object and includes:
Based on the described second default frequency acquisition, the second facial image and the second initial acquisition time of the target object are acquired Point and the second real-time acquisition time point;
Based on the second initial acquisition time point and the second real-time acquisition time point, obtains and acquire the target object Second acquisition duration of the second facial image, when the second acquisition duration is equal to the second preset duration, judgement institute Stating the second preset duration terminates.
6. face identification method as claimed in claim 5, which is characterized in that described to be based on second facial image and second Preset duration, identify second facial image the step of include:
Based on second facial image, the second initial acquisition time point and the second real-time acquisition time point, obtain The the second acquisition duration for acquiring second facial image of the target object, judges the second acquisition duration Whether the second preset duration is equal to;
If being equal to second preset duration, inquiring in the goal-selling facial image whether there is and second face The facial image of images match;
If in the goal-selling facial image there is no with the matched facial image of the second facial image, confirmation described in Second facial image recognition failures.
7. such as face identification method as claimed in any one of claims 1 to 6, which is characterized in that described to be based on the second face figure After the step of picture and the second preset duration, identification second facial image, further includes:
If confirming the second facial image recognition failures, output is believed comprising the prompt of the second facial image recognition failures Breath, is changed to the described first default frequency acquisition for the described second default frequency acquisition;
Close the camera.
8. such as face identification method as claimed in any one of claims 1 to 6, which is characterized in that the face identification method also wraps It includes:
First recognition success rate of the first facial image in the first preset duration of timing acquisition;
Minimum threshold value is preset when first recognition success rate is less than, reduce the first default frequency acquisition and/or increases by first in advance If duration;
Very big threshold value is preset when first recognition success rate is greater than, increase by the first default frequency acquisition and/or reduces first in advance If duration.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage It is real when the recognition of face program is executed by the processor on device and the recognition of face program that can run on the processor Now the step of face identification method as described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with face knowledge on the computer readable storage medium Other program realizes such as recognition of face described in any item of the claim 1 to 8 when the recognition of face program is executed by processor The step of method.
CN201910327700.4A 2019-04-19 2019-04-19 Face identification method, mobile terminal and computer readable storage medium Pending CN110046597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910327700.4A CN110046597A (en) 2019-04-19 2019-04-19 Face identification method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910327700.4A CN110046597A (en) 2019-04-19 2019-04-19 Face identification method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110046597A true CN110046597A (en) 2019-07-23

Family

ID=67278548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910327700.4A Pending CN110046597A (en) 2019-04-19 2019-04-19 Face identification method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110046597A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493519A (en) * 2019-08-19 2019-11-22 惠州Tcl移动通信有限公司 Image-pickup method, computer-readable medium and the computer equipment of mobile terminal
CN110958433A (en) * 2019-12-13 2020-04-03 歌尔科技有限公司 Image uploading method, monitoring device, electronic equipment and storage medium
CN111695445A (en) * 2020-05-25 2020-09-22 深圳丽泽智能科技有限公司 Face recognition method, device, equipment and computer readable storage medium
CN113301250A (en) * 2021-05-13 2021-08-24 Oppo广东移动通信有限公司 Image recognition method and device, computer readable medium and electronic equipment
CN114120386A (en) * 2020-08-31 2022-03-01 腾讯科技(深圳)有限公司 Face recognition method, device, equipment and storage medium
US20220222814A1 (en) * 2021-01-14 2022-07-14 Motahare Amiri Kamalabad System and method for facial and dental photography, landmark detection and mouth design generation
CN115049954A (en) * 2022-05-09 2022-09-13 北京百度网讯科技有限公司 Target identification method, device, electronic equipment and medium
CN115995115A (en) * 2023-03-22 2023-04-21 成都华安视讯科技有限公司 Face recognition system and method based on bifocal transformation

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493519A (en) * 2019-08-19 2019-11-22 惠州Tcl移动通信有限公司 Image-pickup method, computer-readable medium and the computer equipment of mobile terminal
CN110493519B (en) * 2019-08-19 2021-03-23 惠州Tcl移动通信有限公司 Image acquisition method of mobile terminal, computer readable medium and computer device
CN110958433A (en) * 2019-12-13 2020-04-03 歌尔科技有限公司 Image uploading method, monitoring device, electronic equipment and storage medium
CN110958433B (en) * 2019-12-13 2021-10-26 歌尔科技有限公司 Image uploading method, monitoring device, electronic equipment and storage medium
CN111695445A (en) * 2020-05-25 2020-09-22 深圳丽泽智能科技有限公司 Face recognition method, device, equipment and computer readable storage medium
CN114120386A (en) * 2020-08-31 2022-03-01 腾讯科技(深圳)有限公司 Face recognition method, device, equipment and storage medium
US20220222814A1 (en) * 2021-01-14 2022-07-14 Motahare Amiri Kamalabad System and method for facial and dental photography, landmark detection and mouth design generation
CN113301250A (en) * 2021-05-13 2021-08-24 Oppo广东移动通信有限公司 Image recognition method and device, computer readable medium and electronic equipment
CN115049954A (en) * 2022-05-09 2022-09-13 北京百度网讯科技有限公司 Target identification method, device, electronic equipment and medium
CN115049954B (en) * 2022-05-09 2023-09-22 北京百度网讯科技有限公司 Target identification method, device, electronic equipment and medium
CN115995115A (en) * 2023-03-22 2023-04-21 成都华安视讯科技有限公司 Face recognition system and method based on bifocal transformation
CN115995115B (en) * 2023-03-22 2023-06-06 成都华安视讯科技有限公司 Face recognition system and method based on bifocal transformation

Similar Documents

Publication Publication Date Title
CN110046597A (en) Face identification method, mobile terminal and computer readable storage medium
CN109067995A (en) A kind of brightness adjusting method, mobile terminal and computer readable storage medium
CN109151169A (en) Camera right management method, mobile terminal and computer readable storage medium
CN109656371A (en) Mobile terminal eye care method, device, mobile terminal and storage medium
CN109068167A (en) Record screen exchange method, mobile terminal, wearable device and storage medium
CN109195213A (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN108961489A (en) A kind of equipment wearing control method, terminal and computer readable storage medium
CN109218527A (en) screen brightness control method, mobile terminal and computer readable storage medium
CN110290261A (en) Information processing method, electronic equipment and computer readable storage medium
CN109543474A (en) A kind of method for controlling mobile terminal and mobile terminal
CN109587329A (en) Screen lighting method, mobile terminal and computer readable storage medium
CN109547635A (en) Screen anti-fluttering method, device, mobile terminal and readable storage medium storing program for executing
CN109542325A (en) Double-sided screen touch control method, double-sided screen terminal, readable storage medium storing program for executing
CN108920047A (en) A kind of control method of application program, terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN109151174A (en) Message display method, wearable device and computer readable storage medium
CN110401806A (en) A kind of video call method of mobile terminal, mobile terminal and storage medium
CN110086939A (en) Terminal message processing method, device, mobile terminal and readable storage medium storing program for executing
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN109639834A (en) A kind of synchronizing information processing method, system and mobile terminal
CN109862278A (en) Light compensation method, device and the computer readable storage medium of recognition of face
CN109587341A (en) A kind of voice communication control method, terminal and computer readable storage medium
CN109683797A (en) A kind of viewing area 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