CN108596035A - A kind of face identification method and terminal device - Google Patents
A kind of face identification method and terminal device Download PDFInfo
- Publication number
- CN108596035A CN108596035A CN201810253668.5A CN201810253668A CN108596035A CN 108596035 A CN108596035 A CN 108596035A CN 201810253668 A CN201810253668 A CN 201810253668A CN 108596035 A CN108596035 A CN 108596035A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- pixel value
- target pixel
- value
- data block
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
Abstract
The embodiment of the invention discloses a kind of face identification method and terminal devices, are related to field of communication technology, to solve the problem of how to improve dark surrounds human face recognition success rate under the premise of not harm users eyes.This method includes:Pending image is obtained, pending image includes N number of data block, and N number of data each data block in the block includes M pixel;To each data block, it is performed both by method shown in S1, to obtain images to be recognized;It whether identifies in images to be recognized comprising default face information;Wherein, S1:It according to the original pixel values of at least two pixels in data M pixel in the block, determines target pixel value for data block and exports target pixel value, target pixel value is more than the maximum value in the original pixel values of M pixel;Wherein N and M is the integer more than 1.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of face identification methods and terminal device.
Background technology
With the continuous development of terminal technology, the application of terminal device is more and more extensive.More and more terminal devices are answered
Authentication is carried out with face recognition technology.
Face recognition technology is to acquire image or video flowing containing face by video camera or camera, and scheming automatically
The detect and track face information as in, and then to a series of the relevant technologies that the face information detected is identified.In general, by
Collected facial image is dark under dark surrounds, it is thus possible to can not confirm whether the image includes face information, in turn
The identification of face information possibly can not be carried out.In order to improve recognition of face success rate, stronger brightness may be used in the prior art
Light (prior art is usually the light of 60 luxs) is to screen light filling, so that the brightness of screen increases to illuminate face, to adopt
Collect the facial image that can recognize that face information.
However, under dark surrounds, the light of the stronger brightness of use is to the method for screen light filling, although can be to a certain degree
Still this method is due to that can make the brightness of screen increase suddenly for upper raising recognition of face success rate, consequently, it is possible to user's
Eyes generate injury, therefore lacking one kind can be safely and effectively under dark surrounds, and harm users eyes, do not improve face and know
The method of other success rate.
Invention content
A kind of face identification method of offer of the embodiment of the present invention and terminal device, to solve before not harm users eyes
The problem of putting, how improving dark surrounds human face recognition success rate.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of face identification method, method includes:
Pending image is obtained, pending image includes N number of data block, and N number of data each data block in the block includes M
Pixel;
To each data block, it is performed both by method shown in S1, to obtain images to be recognized;Identify images to be recognized in whether
Including default face information;
Wherein, S1:According to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value, and target pixel value is more than in the original pixel values of M pixel
Maximum value;Wherein N and M is the integer more than 1.
Second aspect, an embodiment of the present invention provides a kind of terminal device, terminal device includes:Acquisition module handles mould
Block and identification module;
Acquisition module, for obtaining pending image, pending image includes N number of data block, and N number of data are in the block each
Data block includes M pixel;
Processing module, each data block of the pending image for being obtained to acquisition module are performed both by side shown in S1
Method, to obtain images to be recognized;
Whether identification module includes default face information in the images to be recognized of processing module acquisition for identification;
Wherein, S1:According to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value, and target pixel value is more than in the original pixel values of M pixel
Maximum value;Wherein N and M is the integer more than 1.
The third aspect an embodiment of the present invention provides a kind of terminal device, including processor, memory and is stored in this and deposits
On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor
The step of face identification method in aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage mediums
Computer program is stored in matter, is realized such as the face identification method in first aspect when which is executed by processor
Step.
In embodiments of the present invention, pending image is obtained, pending image includes N number of data block, and N number of data are in the block
Each data block includes M pixel;To each data block, it is performed both by method shown in S1, to obtain images to be recognized;Identification
Whether include default face information in images to be recognized;Wherein, S1:According in data M pixel in the block at least
The original pixel values of two pixels determine target pixel value and export target pixel value for data block.The program is by treating
Each data block in processing image carries out the initial picture of at least two pixels in the M pixel according to the data block
Plain value obtains the target pixel value of the data block and exports the processing of target pixel value, i.e., M pixel is synthesized a picture
Vegetarian refreshments exports, and to obtain images to be recognized, and target pixel value is more than the maximum value of the original pixel values in M pixel, from
And improve the brightness (photoperceptivity) of images to be recognized, and then images to be recognized is identified, and the program with it is existing
Technology is compared, not harm users eyes, effectively increases the recognition of face success rate under dark surrounds.
Description of the drawings
Fig. 1 is one of the flow chart of face identification method provided in an embodiment of the present invention;
Fig. 2 is that pixel provided in an embodiment of the present invention synthesizes schematic diagram;
Fig. 3 is the two of the flow chart of face identification method provided in an embodiment of the present invention;
Fig. 4 is the three of the flow chart of face identification method provided in an embodiment of the present invention;
Fig. 5 is one of the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 is the second structural representation of terminal device provided in an embodiment of the present invention;
Fig. 7 is the third structural representation of terminal device provided in an embodiment of the present invention;
Fig. 8 is the four of the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 9 is the hardware schematic of terminal device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " and " the 4th " in description and claims of this specification etc. is to use
In the different object of difference, rather than for the particular order of description object.For example, the first input, the second input, third input
It is the particular order for distinguishing different inputs, rather than for describe to input with the 4th input etc..
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This
Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing
Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport
Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more,
For example, multiple processing units refer to two or more processing unit;Multiple element refers to two or more
Element etc..
The embodiment of the present invention provides a kind of face identification method, obtains pending image, pending image includes N number of data
Block, N number of data each data block in the block includes M pixel;To each data block, it is performed both by method shown in S1, with
To images to be recognized;It whether identifies in images to be recognized comprising default face information;Wherein, S1:According to a data M in the block
The original pixel values of at least two pixels in a pixel determine target pixel value and export object pixel for data block
Value.The program is by carrying out in the M pixel according to the data block at least each data block in pending image
The original pixel values of two pixels obtain the target pixel value of the data block and export the processing of target pixel value, i.e., by M
Pixel synthesizes a pixel output, and to obtain images to be recognized, and target pixel value is more than initial in M pixel
The maximum value of pixel value to improve the brightness (photoperceptivity) of images to be recognized, and then is identified images to be recognized,
And the program is compared with prior art, not harm users eyes, effectively increases the recognition of face success rate under dark surrounds.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves
Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super shifting
Dynamic personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant
(personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal
Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically
It is fixed.
The executive agent of face identification method provided in an embodiment of the present invention can be (including the movement of above-mentioned terminal device
Terminal device and immobile terminal equipment), or can be realized in the terminal device control method function module and/
Or functional entity, it can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.Below with terminal device
For, face identification method provided in an embodiment of the present invention is illustratively illustrated.
Refering to what is shown in Fig. 1, an embodiment of the present invention provides a kind of face identification method, this method may include following step
Rapid 101- steps 103.
Step 101, terminal device obtain pending image, and pending image includes N number of data block, and N number of data are in the block
Each data block includes M pixel.
Optionally, in the embodiment of the present invention, above-mentioned steps 101 can specifically pass through following step 101a- steps 101b
It realizes.
Step 101a, terminal device obtains pending image.
Optionally, it can be illustratively image that the method for obtaining pending image, which can be the pending image of acquisition,
Sensor captures the image of present frame;It can also be the image being collected in advance, obtain the image when needed;The present invention
Embodiment is not restricted.
Step 101b, pending image is divided into N number of data block by terminal device, and each data block includes M pixel.
Wherein N and M is the integer more than 1.Image is binary picture, it is therefore preferred that M is equal to 2q, q is just whole
Number.Illustratively, M=4, M=8, M=16 etc..The processing to image can be facilitated in this way, for example, being divided to pending image
When data block, N number of identical data block can be obtained.
Step 102, terminal device are performed both by method shown in S1 to each data block, to obtain images to be recognized.
Wherein, S1:According to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value, and target pixel value is more than in the original pixel values of M pixel
Maximum value.
Illustratively, according to the original pixel values of at least two pixels in data M pixel in the block, meaning
Taste can according in M pixel two pixels, three pixels ..., the original pixel values of M pixel obtain
Target pixel value, for example, when obtaining target pixel value according to the original pixel values of two pixels in M pixel, this
Two pixels can be that preset two pixels, the original pixel values of remaining M-2 pixel can lose in M pixel
Fall, is not involved in calculating.Original pixel values indicate that the pixel value of the pixel in pending image, target pixel value indicate to be identified
The pixel value of pixel in image.Target pixel value is more than the maximum value in the original pixel values of M pixel, generally for
The photosensitive rate of image is improved, to improve image recognition success rate, the original pixel values of target pixel value M pixel of ratio are greatly very
It is more.
Illustratively, according to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value:The sum of the original pixel values of M pixel are determined as mesh
Mark pixel value simultaneously exports target pixel value.
Specifically, refering to what is shown in Fig. 2, M=4, the sum of original pixel values of a data 4 pixels in the block are determined
For the data block target pixel value and export target pixel value, as R, G of 4 pixels and B component value are separately summed,
Obtain R, G and B component value and R, G and B component value for exporting target pixel points of target pixel points.For example, (a) institute in Fig. 2
Pixel P1 ' shown in (b) in 4 pixel P1, P2, P3 and P4 composite diagrams 2 shown.It is namely that a data are in the block
4 pixels synthesize a pixel, specifically, by the way that the charge of neighbor pixel to be added together, with pixel
Pattern is read, and is used as a pixel so that charge signal enhances, and enhances physics sensitive pixel elements, to promote dark place pair
The sensitivity of photoinduction.
It is synthesized by the pixel of above-mentioned this mode, using the resolution ratio for reducing picture as cost, improves the photosensitive energy of image
Power, and then the brightness of picture is improved on the whole so that the recognition of face in later stage can find face.
Illustratively, according to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value:By P times of the average value of the original pixel values of M pixel
It is determined as target pixel value and exports target pixel value, P is the number more than 1.
Specifically, refering to what is shown in Fig. 2, M=4, by the average value of the original pixel values of a data 4 pixels in the block
The P times of target pixel value for being determined as the data block and export target pixel value, as by R, G and B component value of 4 pixels
P times of average value as target pixel points R, G and B component value and export R, G and B component value of target pixel points.For example,
Pixel P1 ' shown in (b) in 4 pixel P1, P2, P3 and P4 composite diagrams 2 shown in (a) in Fig. 2.Namely by one
A data 4 pixels in the block synthesize a pixel, and synthetic method is:Calculate R, G and B component value of 4 pixels
Average value, reduce noise in this way, each component value be increased to P times, improves the brightness of pixel, to promote dark place to light
The sensitivity of induction.
Pixel synthesis in this way, the pixel value of neighbor pixel is averaged, if existed in a certain pixel
Noise, by averagely, the influence of noise generation can be reduced so that influence of the noise to whole pictures minimizes.
The average value of the pixel value of 4 pixels obtains intermediate image, but the intermediate image does not make picture brighten,
So needing to highlight the brightness of the intermediate image by highlighting algorithm, illustratively, in embodiments of the present invention, highlight
Method includes two steps:1, cmos image sensor promotes the intermediate image brightness, and maximum can promote 16 times and (carry
The multiple risen is dynamic, goes to be adjusted time for exposure and other factors according to the bright dark degree of ambient enviroment and reaches promotion
The purpose of brightness), but the brightness of the picture signal generated may still be not up to requirement of the recognition of face to brightness, it is therefore desirable into
Row second step.2, ISP continues to go to adjust to parameters such as exposures, carries out highlighting S times.Finally the multiple that intermediate image highlights is by this
16*S。
Whether include default face information in step 103, terminal device identification images to be recognized.
If identifying success comprising default face information in images to be recognized.User can be with operation control terminal equipment.
If not including default face information in images to be recognized, recognition failures, terminal device repeats step 101-
Step 103.
Illustratively, in conjunction with Fig. 1, as shown in figure 3, before step 101, recognition of face provided in an embodiment of the present invention
Method can also include following step 104- steps 106.
Step 104, terminal device receive the second input of user, and the second input lights screen for triggering terminal equipment.
Illustratively, the second input, typically user are to the clicking operation of terminal device display screen, such as double-click;
Or user is to the pressing operation of terminal device booting screen locking key;The embodiment of the present invention is not construed as limiting.
Step 105 is inputted in response to second, and terminal device control terminal equipment lights screen.
Terminal device detects the second input of user, then control terminal equipment lights screen.
Step 106, detect terminal device local environment brightness be less than or equal to predetermined threshold value in the case of, terminal is set
It is standby that brightness is used to carry out light filling to the screen of terminal device for the light of the first default value.
After terminal device lights screen, before obtaining pending image, terminal device local environment brightness can be carried out
Detection in the case of detecting that terminal device local environment brightness is less than or equal to predetermined threshold value, may be used when detecting
Brightness is that the light of the first default value carries out light filling to the screen of terminal device.The pending image of acquisition can be made through place in this way
After reason, the probability for including default face information is improved.It is of course also possible to not carry out light filling, the present invention to the screen of terminal device
Embodiment is not construed as limiting.
Illustratively, in conjunction with Fig. 3, as shown in figure 4, before step 106, recognition of face provided in an embodiment of the present invention
Method can also include following step 107- steps 108.
Step 107, terminal device show selection information in the current interface of terminal device, and it includes the first choosing to select information
Item and the second option, the first option is used to indicate carries out light filling to the screen of terminal device, and the second option is used to indicate to terminal
The screen of equipment is without light filling.
User can select according to the selection information that terminal device is shown, with determine terminal device whether to screen into
Row light filling.
Step 108, terminal device receive first input of the user in selection information, and the first input is that user selects first
The operation of option.
User determines that terminal device carries out light filling to screen by selecting the first option.If selecting the second option, it is determined that
Terminal device does not carry out light filling to screen.
By step 107- steps 108, mobile terminal is allow to determine whether to mend screen according to the user's choice
Light improves the experience of user.
An embodiment of the present invention provides a kind of face identification methods, obtain pending image, and pending image includes N number of number
According to block, N number of data each data block in the block includes M pixel;To each data block, it is performed both by method shown in S1, with
Obtain images to be recognized;It whether identifies in images to be recognized comprising default face information;Wherein, S1:According in a data block
M pixel at least two pixels original pixel values, determine target pixel value and export target picture for data block
Element value.The program is by carrying out in the M pixel according to the data block extremely each data block in pending image
The original pixel values of few two pixels obtain the target pixel value of the data block and export the processing of target pixel value, i.e., by M
A pixel synthesizes a pixel output, and to obtain images to be recognized, and target pixel value is more than first in M pixel
The maximum value of beginning pixel value to improve the brightness (photoperceptivity) of images to be recognized, and then is known images to be recognized
Not, and the program compared with prior art, not harm users eyes effectively increase the recognition of face success under dark surrounds
Rate.
As shown in figure 5, the embodiment of the present invention provides a kind of terminal device 120, which includes:Acquisition module
121, processing module 122 and identification module 123;
Acquisition module 121, for obtaining pending image, pending image includes N number of data block, and N number of data are in the block
Each data block includes M pixel;
Processing module 122, each data block of the pending image for being obtained to acquisition module 121, is performed both by S1 institutes
The method shown, to obtain images to be recognized;
Whether identification module 123 is believed in the images to be recognized of the acquisition of processing module 122 comprising default face for identification
Breath;
Wherein, S1:According to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value, and target pixel value is more than in the original pixel values of M pixel
Maximum value;
Wherein N and M is the integer more than 1.
Optionally, processing module 122, specifically for the sum of the original pixel values of M pixel are determined as object pixel
It is worth and exports target pixel value.
Optionally, processing module 122, specifically for P times of the average value of the original pixel values of M pixel to be determined as
Target pixel value simultaneously exports target pixel value, and P is the number more than 1.
Optionally, M is equal to 2q, q is positive integer.
Optionally, in conjunction with Fig. 5, as shown in fig. 6, terminal device 120 further includes:Supplementary lighting module 124;Supplementary lighting module 124 is used
In before obtaining pending image, the case where terminal device local environment brightness is less than or equal to predetermined threshold value is being detected
Under, use brightness to carry out light filling to the screen of terminal device for the light of the first default value.
Optionally, in conjunction with Fig. 6, as shown in fig. 7, terminal device 120 further includes:Display module 125 and receiving module 126;
Display module 125 was used for before using brightness to carry out light filling to the screen of terminal device for the light of the first default value, at end
Selection information is shown in the current interface of end equipment, it includes the first option and the second option to select information, and the first option is for referring to
Show and light filling is carried out to the screen of terminal device, the second option is used to indicate to the screen of terminal device without light filling;Receive mould
Block 126, for receiving first input of the user in the selection information that display module 125 is shown, the first input is that user selects
The operation of first option.
Optionally, in conjunction with Fig. 7, as shown in figure 8, terminal device 120 further includes:Control module 127;Receiving module 126, also
For using brightness to carry out light filling to the screen of terminal device for the light of the first default value or working as prezone in terminal device
Before showing selection information on face, the second input of user is received, the second input lights screen for triggering terminal equipment;Control
Module 127, the second input for being received in response to receiving module 126, control terminal equipment light screen.
Terminal device provided in an embodiment of the present invention can realize in above method embodiment one of the arbitrary institute of Fig. 1 to Fig. 4
The each process shown, to avoid repeating, details are not described herein again.
An embodiment of the present invention provides a terminal devices, obtain pending image, and pending image includes N number of data block, N
A data each data block in the block includes M pixel;To each data block, it is performed both by method shown in S1, to be waited for
Identify image;It whether identifies in images to be recognized comprising default face information;Wherein, S1:According to data M picture in the block
The original pixel values of at least two pixels in vegetarian refreshments determine target pixel value and export target pixel value for data block.It should
Scheme is by carrying out each data block in pending image at least two pictures in the M pixel according to the data block
The original pixel values of vegetarian refreshments obtain the target pixel value of the data block and export the processing of target pixel value, i.e., by M pixel
A pixel output is synthesized, to obtain images to be recognized, and target pixel value is more than the original pixel values in M pixel
Maximum value, to improve the brightness (photoperceptivity) of images to be recognized, and then images to be recognized is identified, and should
Compared with prior art, harm users eyes, do not effectively increase the recognition of face success rate under dark surrounds to scheme.
A kind of hardware architecture diagram of Fig. 9 terminal devices of each embodiment to realize the present invention.As shown in figure 9, should
Terminal device 100 includes but not limited to:Radio frequency unit 101, network module 102, audio output unit 103, input unit 104,
Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity
The components such as source 111.It will be understood by those skilled in the art that terminal device structure shown in Fig. 9 is not constituted to terminal device
Restriction, terminal device may include either combining certain components or different components than illustrating more or fewer components
Arrangement.In embodiments of the present invention, terminal device include but not limited to mobile phone, tablet computer, laptop, palm PC,
Vehicle-mounted terminal equipment, wearable device and pedometer etc..
Wherein, processor 110, for obtaining pending image, pending image includes N number of data block, in N number of data block
Each data block include M pixel;
To each data block, it is performed both by method shown in S1, to obtain images to be recognized;Identify images to be recognized in whether
Including default face information;
Wherein, S1:According to the original pixel values of at least two pixels in data M pixel in the block, it is
Data block determines target pixel value and exports target pixel value, and target pixel value is more than in the original pixel values of M pixel
Maximum value;Wherein N and M is the integer more than 1.
Terminal device provided in an embodiment of the present invention obtains pending image, and pending image includes N number of data block, N number of
Data each data block in the block includes M pixel;To each data block, it is performed both by method shown in S1, to obtain waiting knowing
Other image;It whether identifies in images to be recognized comprising default face information;Wherein, S1:According to data M pixel in the block
The original pixel values of at least two pixels in point determine target pixel value and export target pixel value for data block.The party
Case is by carrying out each data block in pending image at least two pixels in the M pixel according to the data block
The original pixel values of point obtain the target pixel value of the data block and export the processing of target pixel value, i.e., close M pixel
It is exported as a pixel, to obtain images to be recognized, and target pixel value is more than the original pixel values in M pixel
Maximum value to improve the brightness (photoperceptivity) of images to be recognized, and then is identified images to be recognized, black to improve
Recognition of face success rate under dark situation.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set
Standby communication.
Terminal device has provided wireless broadband internet to the user by network module 102 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end
The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 103 includes loud speaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.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 by image capture apparatus (such as camera) in image capture mode 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 network module 102.Mike
Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.
Terminal device 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 terminal device 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, size and the direction of gravity are can detect that when static, can be used to identify terminal device posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, 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 may 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 terminal device
Family is arranged and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and
Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area
It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments
1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it
On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch
The type for touching event provides corresponding visual output on display panel 1061.Although in fig.9, touch panel 1071 and display
Panel 1061 is to realize the function that outputs and inputs of terminal device as two independent components, but in some embodiments
In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this
Place does not limit.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device
Transmission data between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field 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, 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 terminal device, utilizes each of various interfaces and the entire terminal device 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 terminal device, to carry out integral monitoring to terminal device.Place
Reason device 110 may include one or more processing units;Optionally, 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.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, 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.
In addition, terminal device 100 includes some unshowned function modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, may include above-mentioned processor as shown in Figure 9
110, memory 109, and it is stored in the computer program that can be run on memory 109 and on the processor 110, the calculating
Realized when machine program is executed by processor 110 in above method embodiment Fig. 1 to Fig. 4 it is one of arbitrary shown in face identification method
Each process, and identical technique effect can be reached, to avoid repeating, details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, realized when which is executed by processor in above method embodiment Fig. 1 to Fig. 4 it is one of arbitrary shown in
Each process of face identification method, and identical technique effect can be reached, to avoid repeating, details are not described herein again.Wherein, institute
The computer readable storage medium stated, such as read-only memory (Read-Only Memory, ROM), random access memory
(Random Access Memory, RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only 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 this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the 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 in 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 belongs within the protection of the present invention.
Claims (11)
1. a kind of face identification method, which is characterized in that the method includes:
Pending image is obtained, the pending image includes N number of data block, N number of data each data block packet in the block
Include M pixel;
To each data block, it is performed both by method shown in S1, to obtain images to be recognized;
It whether identifies in the images to be recognized comprising default face information;
Wherein, S1:It is described according to the original pixel values of at least two pixels in data M pixel in the block
Data block determines target pixel value and exports the target pixel value, and the target pixel value is more than the first of the M pixel
Maximum value in beginning pixel value;
Wherein N and M is the integer more than 1.
2. according to the method described in claim 1, it is characterized in that, in the M pixel in the block according to a data
The original pixel values of at least two pixels determine target pixel value and export the target pixel value packet for the data block
It includes:
The sum of the original pixel values of the M pixel are determined as the target pixel value and export the target pixel value.
3. according to the method described in claim 1, it is characterized in that, in the M pixel in the block according to a data
The original pixel values of at least two pixels determine target pixel value and export the target pixel value packet for the data block
It includes:
It is determined as the target pixel value by P times of the average value of the original pixel values of the M pixel and exports the mesh
Pixel value is marked, the P is the number more than 1.
4. according to the method described in claim 1, it is characterized in that, it is described obtain the pending image before, the side
Method further includes:
In the case where detecting that terminal device local environment brightness is less than or equal to predetermined threshold value, use brightness default for first
The light of numerical value carries out light filling to the screen of the terminal device.
5. method according to any one of claims 1 to 4, which is characterized in that the value of the M is equal to 2q, q is positive integer.
6. a kind of terminal device, which is characterized in that the terminal device includes:Acquisition module, processing module and identification module;
The acquisition module, for obtaining pending image, the pending image includes N number of data block, N number of data block
In each data block include M pixel;
The processing module, each data block of the pending image for being obtained to the acquisition module, holds
Method shown in row S1, to obtain images to be recognized;
Whether the identification module is believed in the images to be recognized of the processing module acquisition comprising default face for identification
Breath;
Wherein, S1:It is described according to the original pixel values of at least two pixels in data M pixel in the block
Data block determines target pixel value and exports the target pixel value, and the target pixel value is more than the first of the M pixel
Maximum value in beginning pixel value;
Wherein N and M is the integer more than 1.
7. terminal device according to claim 6, which is characterized in that the processing module is specifically used for the M picture
The sum of original pixel values of vegetarian refreshments are determined as the target pixel value and export the target pixel value.
8. terminal device according to claim 6, which is characterized in that the processing module is specifically used for the M picture
P times of the average value of the original pixel values of vegetarian refreshments is determined as the target pixel value and exports the target pixel value, and the P is
Number more than 1.
9. terminal device according to claim 6, which is characterized in that the terminal device further includes:Supplementary lighting module;
The supplementary lighting module, for before the acquisition pending image, detecting that terminal device local environment is bright
In the case that degree is less than or equal to predetermined threshold value, use brightness for the light of the first default value to the screen of the terminal device into
Row light filling.
10. according to claim 6 to 9 any one of them terminal device, which is characterized in that M is equal to 2q, q is positive integer.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in face identification method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810253668.5A CN108596035A (en) | 2018-03-26 | 2018-03-26 | A kind of face identification method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810253668.5A CN108596035A (en) | 2018-03-26 | 2018-03-26 | A kind of face identification method and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108596035A true CN108596035A (en) | 2018-09-28 |
Family
ID=63623655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810253668.5A Pending CN108596035A (en) | 2018-03-26 | 2018-03-26 | A kind of face identification method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108596035A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101374202A (en) * | 2007-08-23 | 2009-02-25 | 欧姆龙株式会社 | Image pickup device and image pickup control method |
US20110074752A1 (en) * | 2009-09-29 | 2011-03-31 | Masaaki Kikuchi | Display-mode control device and recording medium recording display-mode control program |
CN104065862A (en) * | 2013-03-18 | 2014-09-24 | 联想(北京)有限公司 | Information processing method and electronic device |
-
2018
- 2018-03-26 CN CN201810253668.5A patent/CN108596035A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101374202A (en) * | 2007-08-23 | 2009-02-25 | 欧姆龙株式会社 | Image pickup device and image pickup control method |
US20110074752A1 (en) * | 2009-09-29 | 2011-03-31 | Masaaki Kikuchi | Display-mode control device and recording medium recording display-mode control program |
CN104065862A (en) * | 2013-03-18 | 2014-09-24 | 联想(北京)有限公司 | Information processing method and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107580184B (en) | A kind of image pickup method and mobile terminal | |
CN108200289A (en) | A kind of unread message processing method and mobile terminal | |
CN108495029A (en) | A kind of photographic method and mobile terminal | |
CN109697494A (en) | A kind of graphic code display methods and terminal device | |
CN108307109A (en) | A kind of high dynamic range images method for previewing and terminal device | |
CN108156329A (en) | Method, mobile terminal and the computer readable storage medium that message is sent | |
CN108492246A (en) | A kind of image processing method, device and mobile terminal | |
CN108764001A (en) | A kind of information processing method and mobile terminal | |
CN108833709A (en) | A kind of the starting method and mobile terminal of camera | |
CN109284150A (en) | A kind of method and terminal starting application program | |
CN109215683A (en) | A kind of reminding method and terminal | |
CN108307110A (en) | A kind of image weakening method and mobile terminal | |
CN109544172A (en) | A kind of display methods and terminal device | |
CN109033913A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN107959755A (en) | A kind of photographic method and mobile terminal | |
CN110312035A (en) | A kind of control method of terminal, mobile terminal and computer readable storage medium | |
CN110213438A (en) | A kind of processing method and terminal device of application program | |
CN109976844A (en) | A kind of message display method and mobile terminal | |
CN107800968B (en) | A kind of image pickup method and mobile terminal | |
CN109949809A (en) | A kind of sound control method and terminal device | |
CN109033912A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN108632535A (en) | A kind of image processing method and mobile terminal | |
CN110516495A (en) | A kind of barcode scanning method and mobile terminal | |
CN108347530A (en) | A kind of control method and mobile terminal of lighting device | |
CN108109188A (en) | A kind of image processing method and mobile terminal |
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: 20180928 |