Specific embodiment
In the following, the exemplary embodiment that the application will be described in detail by referring to the drawings.Obviously, described embodiment is only
It is a part of the embodiment of the application, rather than the whole embodiments of the application, it should be appreciated that the application is not shown by described herein
The limitation of example embodiment.
As described above, there are the following problems for existing age identifying schemes:
1. place one's entire reliance upon face recognition technology, and is difficult to collect complete facial image number in many application scenarios
According to;
2. face recognition algorithms are difficult to significantly improve the accuracy rate of age identification in a short time;
3. collecting the video for largely covering various scenes, is judged with the age manually to disengaging object, automate journey
Spend low, person works' amount is big, can not get rid of the associated disadvantage of artificial treatment.
In view of the above-mentioned drawbacks in the prior art, the basic conception of the application is to realize the age using more novel algorithm
Intelligent recognition.For example, the motion feature of human body, such as human body head can be passed through when face recognition algorithms cannot be used
Swing parameter, to identify the human body age.The mobile behavior of the human body of all ages and classes has its characteristic feature, and head is energy
Enough human body parts for most conveniently capturing human motion feature.In addition, also utilizing some auxiliary in some embodiments of the present invention
Means realize that the age identifies, such as human motion speed, crowd's information etc., to improve the success rate of age identification.One
In a little embodiments, additionally uses recognition result judgement of stability, improves the age based on means such as the weighted averages of application scenarios
The accuracy of identification.By using the solution of the present invention, with traditional single age recognition mode phase dependent on recognition of face
Than the success rate and accuracy of age identification is greatly improved.
It should be noted that the above-mentioned basic conception of the application can be applied not only to the business ring such as market, shopping center
In border, it can also be applied in other scenes, such as stream of people's age of the scenes such as community, park, crossing identifies etc..
After describing the basic principle of the application, carry out the various non-limits for specifically introducing the application below with reference to the accompanying drawings
Property embodiment processed.
Fig. 1 illustrates the flow charts according to the age recognition methods of one exemplary embodiment of the application.As shown in Figure 1, year
Age recognition methods 100 may begin at step S110, identify the head of the human body in current frame image.Current frame image can be for example
By any frame image in stream of people's video of IP Camera (IPC) capture, it can use various existing or following open
The algorithm of hair identifies the human body head in current frame image, image recognition algorithm such as, but not limited to neural network based
Deng.In step s 110, the head of each human body in image, such as positive head, lateral head and back side head can be identified,
And it is not limited to whether it has complete face.That is, in the method 100, can only lead to independent of recognition of face
Human body head is crossed to carry out age identification, described in face specific as follows.
With continued reference to Fig. 1, in step S112, based on the predetermined quantity between current frame image and the current frame image
Preceding frame image determines the swing parameter of human body head.Here, swinging parameter may include in such as amplitude of fluctuation and hunting frequency
At least one, for example, swing parameter may include amplitude of fluctuation, can also only include hunting frequency, can also include simultaneously
Amplitude of fluctuation and hunting frequency, wherein swinging parameter based on multiple image and can track the movement on head and realize.Fig. 2
Show the schematic diagram for determining the process for swinging parameter.As shown in Fig. 2, several before current frame image and current frame image
In preceding frame image (being referred to as image 10), human body head is had identified, as shown in block 11, and can determine human body head
The center position 12 in portion.By tracking the movement on human body head, the movement of the central point 12 on human body head can be determined
Track is the amplitude of fluctuation and hunting frequency that can determine human body head based on the motion track.
Referring back to Fig. 1, in step S114, the human body age can be determined based on parameter is swung.For convenience,
The human body age determined based on swing parameter was known as the first age below.By having counted great amount of samples discovery, human body is being moved
Swing parameter when dynamic, typically the swing parameter of human body head, there are correlations with the human body age.In general, human body
Age is bigger, and head oscillation frequency is lower;The human body age is smaller, and head oscillation frequency is higher.On the other hand, a middle-aged person moves
Figure is more steady when dynamic, and head oscillation amplitude is lower, and the age is higher and lower, and head oscillation amplitude can all increase.Based on this
A little features can be used and swing parameter such as one or more of amplitude of fluctuation and hunting frequency to determine the human body age.
Step S114 can be realized in several ways.Such as in one example, empirical data can be had previously been based on to build
Vertical one will swing parameter look-up table associated with the human body age, by directly determining the human body age with reference to the look-up table.This
Kind implementation is relatively simple, it is easy to accomplish, and related calculation amount is small, is conducive to save hardware resource.Show another
It can be directly input with human body head motion track with one neural network model of precondition, the neural network model in example,
It is output with the age.It is thus possible to track 13 shown in Fig. 2 is directly input to the neural network model, to determine human body year
Age.Here, head oscillation parameter is embodied in track 13, therefore the neural network model is substantially also based on swing parameter and comes
Determine the human body age.Although the operand that this implementation needs is larger, age prediction can be further increased
Accuracy.
In above-mentioned steps, swing parameter such as amplitude of fluctuation and/or hunting frequency based on human body head have determined people
First age of body.Compared with such as human body face, human body head is the characteristics of human body captured more easily by camera, especially
It is when for example flow of the people is larger, human body face is likely to be blocked by other people, or cannot be by due to the direction of travel for people
Camera captures, and human body head feature is then easy to accurately be captured, such as by the way that camera is mounted on high bit
Set place, can capture the head feature of most of human bodies in intensive people flow, so can the movement based on head feature and extract
Head oscillation parameter, such as amplitude of fluctuation and/or hunting frequency.As previously mentioned, amplitude of fluctuation and hunting frequency are and human body year
Two parameters that age is closely related are embodied in human body head because human body has different motion features at the different ages
Swing parameter such as amplitude and frequency on.Therefore, by determining human body First Year based on amplitude of fluctuation and/or hunting frequency
The success rate of age identification can be improved in age.
As previously mentioned, face can be used for the identification of human body age in the case where that can capture full facial, and
Accuracy with higher.Therefore, in some embodiments, it can also identify the face in current frame image, and be based on institute
The face of identification determines the human body age.For ease of description, the human body age determined based on recognition of face is known as the below
Two ages.It is appreciated that the age identification process based on face can before the step S110-S114 of Fig. 1, later or with
It is carried out at least partly overlappingly, and what the present invention was not limited to them executes sequence.Equally, permitted for what is be discussed in detail below
Other more steps, the present invention do not limit its yet and execute sequence, these steps can successively be carried out by different order, or can be simultaneously
Row executes, unless it based on context can be determined with respect to execution sequence.
In some embodiments of the invention, the human body age can also be identified by a variety of householder methods, it below will ginseng
It is described in detail according to Fig. 3.As shown in figure 3, can determine the number in current frame image in step S116, this can be such as
Using the human body head recognition result of step S110, the quantity on the head identified is counted to realize.Next in step
In rapid S118, judge whether number is more than first threshold.If being no more than first threshold, illustrates that flow of the people is smaller, at this time may be used
To execute the identification of auxiliary age using velocity information for example described below and group information;On the other hand, if it exceeds
One threshold value then illustrates that flow of the people is larger, and larger limitation of everyone movement at this time by surrounding population is then difficult to according to individual
Movement speed or community information carry out the identification of auxiliary age, and need to consider other age means of identification.By being based on
Flow of the people takes different age identifying schemes for different flows of the people to be finely divided to scene, can further mention
The accuracy of high age identification, and improve the universality that the solution of the present invention is directed to different scenes.
With continued reference to Fig. 3, in the step s 120, it is less than or equal to first threshold in response to number, present frame can be based on
Image and several preceding frame images determine the movement speed of human body, and then in step S122, the movement speed based on human body
To determine the human body age.For convenience, the human body age determined based on human motion speed is hereinafter known as third year
Age.In general, the age is bigger, movement speed is slower;Age is smaller, and movement speed is faster.It is also possible to which statistics is a large amount of in advance
Sample establishes being associated between movement speed and age, can also consider other factors such as density of stream of people etc. simultaneously.In this way,
It can be based on human motion speed in step S122, or can be combined with other auxiliary informations such as density of stream of people, come true
Determine the human body age.It in some embodiments, can be with when determining the human body age based on human motion speed in step S122
Consider relative velocity.For example, the movement speed of current human can be compared with the movement speed of surrounding body, its speed is determined
Difference is spent, the movement speed of human body and the speed difference relative to surrounding body can be taken into consideration, then to determine human body year
Age.In general, the human body age is smaller, relative velocity is faster.Velocity and acceleration is all the important characterization ginseng of human motion
Number, it is closely related with the human body age.By determining the human body age based on speed and/or acceleration, can be further improved
The success rate and accuracy of age identification.
In some embodiments, determine that number is less than or equal to first threshold in response to step S118, it optionally, can be with
The group where human body is determined based on present frame and previous frame in step S124.Multiple human body categories can be determined there are many mode
In the group that one is gone together.It is closer and human body that motion track (direction) is roughly the same is a group for example, can identify,
It can identify the several artificial groups, etc. talked.After identifying group, in step S126, it can be based on
Intragroup information about firms determines the human body age.For convenience, hereinafter by based on Group Membership Information and determination
The human body age was known as the 4th age.For example, can determine the year of current human if intragroup multiple member ages are close
Age is also close with other members.For another example can determine current human if there are two a middle-aged person and a children in group
For the elderly, they belong to the same family.It is different that age identification is carried out from the information above based on human body itself, group's letter
Breath is to carry out the identification of human body age using the information of other members in group, therefore can provide human body itself to provide
Additional information further increases the accuracy of age identification.
Described above is the human body age is identified by multiple means, first, second, third and fourth has been determined respectively
Age.It is understood that by video image realize the above-mentioned age identification when, due to human motion and ambient lighting etc. because
The influence of element, recognition result are likely to occur fluctuation.For example, can use aforementioned for the video image including multiple image
Method determined first, second, third or the 4th the age multiple age values, and these age values are different each other.At this point,
The stability of recognition result becomes judgement and identifies whether accurately to consider.Fig. 4, which is shown based on stability, judges recognition result
The method flow diagram of accuracy.As shown in figure 4, for multiple image, can use in aforementioned identification algorithm in step S142
Any one, determine corresponding first, second, third or the 4th multiple age values at age can then in step S144
Whether reach second threshold with the stability of the multiple age value of determination, i.e., whether identified age value is stable.For example, can be with
Determine ratio shared by the age value of most frequent appearance in these age values.For example, if its ratio reaches second threshold, such as
66.7%, 70%, 75%, 80% etc., then it can confirm in step S146 and identify successfully, and using the stationary value as being known
Other human body age.On the other hand, if recognition result stability is not up to the preset threshold, such as identified multiple ages
Value is evenly distributed in a larger range, then can confirm recognition failures in step S148.In this way, it is lower to remove accuracy
Recognition result, and only include the higher recognition result of accuracy, so that it is guaranteed that the reliability of recognition result.
Referring back to Fig. 3, after step S126, or when determining that number is more than first threshold in step S118,
Step S128 can be then proceeded to, determines that the age identifies whether success.When proceeding to S128 from step S118, it is only necessary to which determination is
It is no successfully to identify the first age and the second age;When proceeding to S128 from step S126, then need to determine whether successfully to identify
First, second, third and fourth age.The standard that success identifies is as having identified stable knot referring to as Fig. 4 description
Fruit.If recognition result is unstable, or do not identify at all it is any as a result, if all think age recognition failures.
In step S128, at least one of first to fourth age is successfully identified as long as determining, then it is assumed that success
The human body age is identified, step S130 can be continued to progress, according to application scenarios, the age that success is identified is weighted and averaged,
To determine the final age of human body.By the age weighted average identified that will succeed, various factors can be comprehensively considered to the age
The contribution of recognition result improves the whole accuracy rate of identification model to reduce the error of age identification.In adding for step S130
When weight average, one or more of first to fourth age of successfully identification is not only considered, it is also contemplated that be based on applied field
The basal year level that scape determines.For example, client is mostly student group, then basal year level is smaller, for example, if it is accessory shop
12-16 years old;If it is market, customer group is mostly young man, such as basal year level can be 22-30 years old.The final age can root
It is determined according to following formula:
Final age=+ w5* the 4th year+w2*+w4* third age at the second age the first age+w3* of w1* basal year level
Age.
Wherein, w1 to w5 is the weight parameter at corresponding age.When fail identify some age when, can correspondingly adjust
Parameter w1 to w5 is saved, to avoid influence of the age to the final age for the identification that fails.It is then possible to proceed to step
S140 terminates the processing to present frame, continues with next frame.
If confirming any one in first to fourth age of identification that fails in step S128, then it is assumed that this
The age recognition failures of individual.In some embodiments, as shown in step S132, which can be included into recognition failures people
Group, and count the number of recognition failures crowd.In step S134, it can be determined that whether the number of recognition failures crowd reaches
Third threshold value.If third threshold value has not yet been reached, to step S140, if having reached third threshold value, that is, one is had accumulated
When quantitative recognition failures human body, then it can be determined using predetermined age distribution in recognition failures crowd in step S136
The age of each human body.For example, predetermined age distribution can be the reference age distribution for carrying out the scene of age identification, such as quotient
The age distribution of registered members, under the age distribution of community resident or similar scene before age distribution for identifying etc..
After the age of human body has been determined by predetermined age distribution, step S140 can be proceeded to, continues the processing of next frame.
Fig. 5 illustrates the functional block diagram of the device 200 at the identification human body age according to one exemplary embodiment of the application.Such as
Shown in Fig. 5, age identification device 200 may include human body head recognition unit 202, swing parameter determination unit 204 and First Year
Age recognition unit 206.Human body head recognition unit 202 can be used to identify the head of the human body in current frame image, swing parameter
Determination unit 204 can be used for the preceding frame image based on the preset quantity before current frame image and current frame image, determine
The swing parameter of the human body head identified, such as amplitude of fluctuation and hunting frequency etc..First age recognition unit 206 then can be used
In the first age for identifying human body based on identified swing parameter.
In some instances, optionally, identify that the device 200 at human body age may also include in current frame image for identification
Human body face face identification unit 208 and the second year at the second age for determining human body based on the face identified
Age recognition unit 210.
In some instances, optionally, it identifies that the device 200 at human body age may also include counting unit 212, is used for really
Number in settled prior image frame;Speed determining unit 214 is used to be less than or equal to first threshold in response to number, from working as
Prior image frame and preceding frame image determine the movement speed of human body;And third age recognition unit 216, it is used for based on human body
Movement speed determine third age of human body.In some embodiments, third age recognition unit 216 is also based on people
The movement speed of body and the third age that human body is determined relative to the relative moving speed of surrounding body.In some instances,
Optionally, it identifies that the device 200 at human body age may also include group identification unit 218, is used to be less than in response to number or wait
In first threshold, the group that human body belongs to is determined based on current frame image and preceding frame image;And the 4th age recognition unit
220, it is used to determine the 4th age of human body based on the information about firms in group.
It should be understood that such as -4 descriptions referring to Fig.1 of front, first to fourth age recognition unit, 206,210,216 and
220 can also determine the stability of its recognition result, determine whether to realize and successfully identify.
With continued reference to Fig. 5, in some instances, optionally, the device 200 at identification human body age may also include weighted average
Unit 222, the first age, the second age, third age and the 4th age that success can be identified are weighted and averaged, to obtain
The final age of human body.In weighted average, it is also contemplated that the human body basal year level determined by application scenarios, i.e. average year
Age.
In some instances, optionally, identify that the device 200 at human body age may also include recognition failures statistic unit 224,
It, which can count to fail, identifies the recognition failures crowd at its age;And pre- dating allocation unit 226, it is used to respond
Reach a threshold value in the quantity of recognition failures crowd, determines the 5th of the human body in recognition failures crowd the using predetermined age distribution
Age.
The concrete function of each unit and module in above-mentioned age identification device 200 and operation have been described above with reference to figure
It is discussed in detail in the age recognition methods of 1 to Fig. 4 description, therefore is only briefly explained here, and it is detailed that its repetition is omitted
Thin description.It may be implemented in image processing electronics according to the age identification device 200 of the embodiment of the present application, such as can be with
It is integrated into image processing electronics as a software module and/or hardware module.
Described above is according to some embodiments of the application identification human body age method and apparatus, it should be appreciated that it is right
It, can there are many variations in form and details in embodiment described above.For example, in above method and device, really
The fixed age can be accurate age value, be also possible to the age bracket or the probability distribution at age of estimation.In addition,
In above method and device, it can be combined with other auxiliary informations to carry out age identification, such as height, gender etc., all
It is that those skilled in the art are readily apparent that and implement under teachings of the present application, therefore should be regarded as falling in appended claims limit
In fixed the scope of the present invention.
Fig. 6 shows the structural block diagram of the example electronic device 300 of achievable age identification device 200.As shown in figure 5,
Electronic equipment 300 may include processor 310, camera 320 and memory 330, they are connected to each other by bus 360.
Processor 310 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution capability
Other forms processing unit, and can control the other assemblies in electronic equipment to execute desired function.
The image of the available identification scene of camera 320 comprising one or more human bodies to be identified.
Memory 330 may include various forms of computer readable storage mediums, such as volatile memory and/or non-
Volatile memory.Volatile memory for example may include random access memory (RAM) and/or cache memory
(cache) etc..Nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..It can in memory 330
To be stored with computer program instructions, processor 310 can run these computer program instructions, to realize the application above
Each embodiment age recognition methods and/or other desired functions.
In some instances, electronic equipment 300 may also include input unit 340 and output unit 350.Input unit 340
With output unit 350 can be performed it is various output and input function, such as input unit 340 is subjected to the registered members of business place
The result identified before under data, community resident data or similar scene waits until that output unit 350 can export the age
Recognition result etc..Processor 310 is connect by bus 360 with modules or unit, to control their operation.
Other than the above method and equipment, embodiments herein can also be computer program product comprising meter
Calculation machine program instruction, it is above-described according to this that the computer program instructions execute processor
Apply for the step in the age recognition methods of embodiment.
The computer program product can be write with any combination of one or more programming languages for holding
The program code of row the embodiment of the present application operation, programming language includes object oriented program language, such as Java,
C++ etc. further includes conventional procedural programming language, such as " C " language or similar programming language.Program code
It can fully execute on the user computing device, partly execute, held as an independent software package on a user device
Part executes on a remote computing or completely in remote computing device or service on the user computing device for row, part
It is executed on device.
In addition, embodiments herein can also be computer readable storage medium, it is stored thereon with computer program and refers to
It enables, it is above-described according to the embodiment of the present application that the computer program instructions execute processor
Age recognition methods in step.
The computer readable storage medium can be using any combination of one or more readable mediums.Readable medium can
To be readable signal medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can include but is not limited to electricity, magnetic, light, electricity
Magnetic, the system of infrared ray or semiconductor, device or device, or any above combination.Readable storage medium storing program for executing it is more specific
Example (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory
Device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The basic principle of the application is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in this application
The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the application
Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand
With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the application,.
Device involved in the application, device, equipment, system block diagram only as illustrative example and be not intended to
It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that
, it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool
" etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above
"or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made
Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
It may also be noted that each component or each step are can to decompose in the device of the application, device and method
And/or reconfigure.These decompose and/or reconfigure the equivalent scheme that should be regarded as the application.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this
Application.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein
General Principle can be applied to other aspect without departing from scope of the present application.Therefore, the application is not intended to be limited to
Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the application
It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill
Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.