CN110363132A - Biopsy method, device, electronic equipment and storage medium - Google Patents
Biopsy method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110363132A CN110363132A CN201910615248.1A CN201910615248A CN110363132A CN 110363132 A CN110363132 A CN 110363132A CN 201910615248 A CN201910615248 A CN 201910615248A CN 110363132 A CN110363132 A CN 110363132A
- Authority
- CN
- China
- Prior art keywords
- value
- current
- video frame
- characteristic value
- reference distance
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/41—Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
-
- 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
- G06V40/168—Feature extraction; Face representation
-
- 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/20—Movements or behaviour, e.g. gesture recognition
-
- 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/40—Spoof detection, e.g. liveness detection
- G06V40/45—Detection of the body part being alive
Abstract
The present disclosure discloses a kind of biopsy method, device, electronic equipment and storage mediums.This method comprises: determine target organ in current video frame on face current characteristic value and current video frame in current reference distance value on face between other key points;According to the base reference distance value and current reference distance value amendment current characteristic value in initial video frame on face between other key points, target organ is obtained in the In vivo detection result of the current video frame.The accuracy rate of In vivo detection can be improved in the embodiment of the present disclosure, and improves the safety of authentication.
Description
Technical field
The embodiment of the present disclosure be related to data processing technique more particularly to a kind of biopsy method, device, electronic equipment and
Storage medium.
Background technique
People are in being engaged in vairious activities, it is often necessary to authentication are carried out, to guarantee the safety of information.With meter
The development of calculation machine and network, the universal of Networked electronic devices become authentication work efficiently, and usual authentication needs true
Determining subject is living body.
Currently, being frequently necessary to carry out living body judgement in financial system, face identification system.In this process, generally
User is needed to complete the movement of face basis.For example, nodding action and/or head shaking movement.It is multiple that the prior art mainly passes through detection
In photo including user's face image, the situation of change of organ sites (for example, eyes or mouth etc.) attitude parameter is set,
Determine whether the user is living body user, while using technologies such as the positioning of face key point and face trackings, whether verifying user
For my operation.
For example, value can be opened by detection eyes, judge whether eyes blink.But with the development of network technology,
The face of user is easily replicated with photo, is attacked to be formed to detection system, for example, by by legitimate user's photo edge
The shooting direction with the camera of detection system, carry out far and near distance adjustment, the eyes detected so as to cause detection system
Open value variation, cause In vivo detection inaccurate.
Summary of the invention
The embodiment of the present disclosure provides a kind of biopsy method, device, electronic equipment and storage medium, and living body can be improved
The accuracy rate of detection, and improve the safety of authentication.
In a first aspect, the embodiment of the present disclosure provides a kind of biopsy method, this method comprises:
Determine target organ in the current characteristic value and current video frame in current video frame on face on face its
Current reference distance value between his key point;
According to the base reference distance value and current reference distance value in initial video frame on face between other key points
Current characteristic value is corrected, obtains target organ in the In vivo detection result of the current video frame.
Second aspect, the embodiment of the present disclosure additionally provide a kind of living body detection device, which includes:
Characteristic value and reference distance obtain module, for determining current spy of the target organ in current video frame on face
Current reference distance value in value indicative and current video frame on face between other key points;
Current characteristic value correction module, for according to the base reference in initial video frame on face between other key points
Distance value and current reference distance value correct current characteristic value, obtain target organ in the In vivo detection knot of the current video frame
Fruit.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the biopsy method as described in the embodiment of the present disclosure.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the biopsy method as described in the embodiment of the present disclosure when program is executed by processor.
The embodiment of the present disclosure passes through the current ginseng between other key points except target organ in detection current video frame
The base reference distance value in distance value and initial video frame between other key points is examined, determines that other in current video frame are crucial
The variation degree of point, and be reference with the variation degree of other key points, the variation degree of current characteristic value is determined, thus accurately
The variation degree for assessing current characteristic value, is thus modified current characteristic value, and will obtain revised characteristic value conduct
In vivo detection is solved and is adjusted in the prior art by user picture far and near distance as a result, improving the Detection accuracy of characteristic value,
The problem for leading to characteristic value detection inaccuracy improves the accuracy rate of characteristic value detection, meanwhile, pass through the variation journey of other key points
The variation degree of degree assessment characteristic value, can be with the opposite variation degree with face of accurate evaluation current characteristic value, to avoid
When face overall variation, current characteristic value calculates always according to original method and does not consider characteristic value and do not change actually with respect to face
The case where, and characteristic value is caused to calculate mistake, to realize accurate calculating characteristic value.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present disclosure one biopsy method;
Fig. 2 is the flow chart of one of the embodiment of the present disclosure two biopsy method;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present disclosure three living body detection device;
Fig. 4 is the structural schematic diagram of one of the embodiment of the present disclosure four electronic equipment.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing
Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this
In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that
It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order,
And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs
The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based"
It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates
" at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed
Justice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for different devices, module or list
Member distinguishes, and is not intended to limit the sequence or relation of interdependence of function performed by these devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field
It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment
Purpose, and be not used to limit the range of these message or information.
Embodiment one
Fig. 1 is the flow chart of one of the embodiment of the present disclosure one biopsy method, and the present embodiment is applicable to regarding
The case where characteristic value of target organ is detected in frequency frame, this method can be executed by living body detection device, which can adopt
It is realized with the mode of software and/or hardware, which can be configured in electronic equipment, such as server or terminal device, allusion quotation
The terminal device of type includes mobile terminal, specifically includes mobile phone, car-mounted terminal or laptop etc..As shown in Figure 1, this method
Specifically comprise the following steps:
S110 determines target organ face in the current characteristic value and current video frame in current video frame on face
Current reference distance value between other upper key points.
Current video frame can refer to the video frame in video, specifically, video can refer to the video prerecorded, or
Person is the video of real-time recording.Correspondingly, current video frame can be any one video frame in the video prerecorded, or
Person is the video frame obtained in real time during video record.
In general, generally requiring user during In vivo detection and completing the movement of face basis.For example, the movement of face basis
Including at least one of following nodding actions, head shaking movement, eye opening movement, eye closing movement, movement etc. of opening one's mouth to act and shut up.From
And during In vivo detection, target organ includes at least one of following eyes, mouth, eyebrow, nose, chin and ears etc..
Correspondingly, current characteristic value is used to indicate the change in location situation of target organ, for example, target organ is eyes, current signature
Value opens value for eyes;Target organ is mouth, and current characteristic value is the opening and closing value of mouth;When target organ is nose, when
Preceding characteristic value is the pitch angle and/or rotation angle of nose.In addition, there are also other situations, in this regard, the embodiment of the present disclosure is not done
Concrete restriction.
Optionally, the target organ is eyes;The characteristic value of the target organ opens value for the eyes.It is described
The value of opening of eyes is that left eye opens value and right eye opens maximum value in value.It should be noted that the value of opening of eyes may be used also
To be that left eye opens value and right eye opens the minimum value in value or left eye opens value and right eye opens the mean value of value, in this regard, originally
Open embodiment is not specifically limited.
Other key points can refer to other key points in addition to the associated key point of target organ.Illustratively, mesh
When mark organ is eyes, other key points are mouth key point (such as left corners of the mouth key point).Optionally, other described key points are
The changeless key point in position in face.Position, which immobilizes, to be referred to, relative position of other key points in face
It is constant, for example, point key point stablize in face it is constant.
Current reference distance value is used for the reference value being modified as the characteristic value of target organ, for indicating any two
The distance between other a key points.
Can from multiple other key points, and therefrom optional two other key points are determined in current video frame on face,
For determining current reference distance value.It should be noted that once it is determined that two other key points, subsequent to calculate each video frame
Current reference distance value when, what is calculated is the distance between the two other key points.
S120, according in initial video frame on face between other key points base reference distance value and current reference away from
Current characteristic value is corrected from value, obtains target organ in the In vivo detection result of the current video frame.
Initial video frame is used to be used as reference video frame, and is compared with current video frame, to correct current video
The current characteristic value of frame.Equally, initial video frame can refer to the video frame in video.Wherein, the time of initial video frame is suitable
Sequence is before current video frame.
Optionally, before determining current characteristic value of the target organ in current video frame on face, further includes: regarding
During frequency is recorded, whether the characteristic value for detecting target organ in the video frame in the video is more than matched default organ
Characteristic threshold value, if it is, using the video frame as initial video frame;Otherwise, object machine in next video frame is continued to test
Whether the characteristic value of official is more than matched organ characteristic's threshold value, until detecting that the characteristic value of target organ is more than organ characteristic's threshold
The video frame of value, by the video frame and as initial video frame.
Specifically, default organ characteristic's threshold value is used for judging whether the characteristic value of target organ is sufficiently large, namely for sentencing
Whether the movement of disconnected target organ is obvious.Illustratively, target organ includes eyes or mouth.Eyes open value whether be more than
Matched eye feature threshold value;Whether the closing value of mouth is more than matched mouth characteristic threshold value.Correspondingly, when in video frame
Eyes are opened, and open degree it is sufficiently large when, or when the mouth in video frame opens, and when mouth opening degree is sufficiently large,
Determine that the video frame is initial video frame.
Meanwhile after initial video frame, video is traversed, the video frame after optional initial video frame is as current video
Frame, calculates the current characteristic value of target organ, and corrects.Either after initial video frame, initial video frame is obtained in real time
Video frame later calculates current characteristic value as current video frame, and corrects.
It is understood that the current characteristic value in initial video frame is bigger, the video after initial video frame is obtained
Current characteristic value in frame is changed on the basis of biggish current characteristic value, as a result, the current signature of current video frame
Value variation is obvious, to be easier or more rapidly detect whether target organ has made specification movement.It can reduce
Detection when smaller to the current characteristic value of target organ reduces detection to reduce the invalid detection of the video frame of early period
Workload, to improve the efficiency of target organ characteristic value detection.
Wherein, there are many eigenvalue modification methods, for example, modification method is to calculate base reference distance value and current reference
The difference of distance value regard the sum of difference and current characteristic value as revised current characteristic value.It additionally can be with other amendments
Method, in this regard, the embodiment of the present disclosure is not particularly limited.
Target organ is used to indicate reality of the target organ in current video frame in the In vivo detection result of current video frame
Border characteristic value.
In fact, In vivo detection result is also used to indicate whether user is living body.Specifically, In vivo detection result can be with
Including whether having made compulsory exercise according to the target organ that actual characteristic value determines in continuous multiple video frames.For example, according to
Actual characteristic value determines that eyes are opened and are closed in continuous multiple video frames, determines that eyes have made eye opening eye closing movement, shows
The user of current shooting is living body.Or In vivo detection result can also include according to actual characteristic value in continuous multiple video frames
Whether determining multiple target organs have made compulsory exercise.For example, determining that eyes have made eye opening eye closing movement, mouth is determined
Movement of opening one's mouth to shut up is made, and determination has been made and having shaken the head in nodding action, when determination has occurred at least one of above-mentioned, shows
The user of current shooting is living body.
In addition, In vivo detection can be detected for target organs such as eyes, mouth and noses, usually successively choose
One is individually detected, rather than is detected simultaneously, for example, being examined respectively according to the sequence of eyes, mouth and nose
It surveys.
Optionally, the base reference distance value according in initial video frame on face between other key points and current
Reference distance value corrects current characteristic value, comprising: according to the current reference distance value, base reference distance value and described current
Characteristic value determines revised current characteristic value based on following formula, obtains target organ in the living body of the current video frame
Testing result:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiFor
The current reference distance value, F0For the base reference distance value.
Specifically, can be added in proportion current according to the difference of current reference distance value and current reference distance value
In characteristic value, final goal characteristic value is obtained, wherein regulation coefficient can be obtained according to experiment.
By formula, the difference degree of current reference distance value and current reference distance value is assessed, and multiplied by regulation coefficient,
Current characteristic value is proportionally corrected, current characteristic value can be accurately corrected.
Optionally, join according to the base reference distance value in initial video frame on face between other key points with current
Distance value amendment current characteristic value is examined, obtains target organ before the In vivo detection result of the current video frame, further includes:
Image comprising face is shot, the target video that described image is moved along shooting direction is obtained;Obtain the target view
The ginseng that the characteristic value of the corresponding target organ of at least two video frames and other corresponding described key points determine in frequency
Examine distance value;Based on the characteristic value and reference distance value of the corresponding target organ of at least two video frame, determine
The regulation coefficient.
Wherein, the image comprising face can refer to the photo of legitimate user.
Image is moved along shooting direction to be referred in shooting direction, and image distance is adjusted, it is hereby achieved that figure
As in multiple video frames with camera different distance, and optional two video frames, it calculates separately current in two video frames
Characteristic value and reference distance value are based on aforementioned formula, can determine the value of multiple regulation coefficients.Or it can also directly survey
The base reference distance value of the actual characteristic value and other key points of target organ in spirogram picture;It is corresponding to obtain each video frame
Target organ current characteristic value and other key determine current reference distance values, so that it is determined that each video frame determine
Regulation coefficient value.
Meanwhile it may finally be averaged the value as regulation coefficient, or select according to other preset rules, such as select
Select value of the median as regulation coefficient.In this regard, the embodiment of the present disclosure is not specifically limited.
By collecting multiple video frames of some image Yu camera different distance, and determine regulation coefficient, it can be accurate
Regulation coefficient is determined according to historical data, improves the accuracy rate of regulation coefficient detection.
The embodiment of the present disclosure passes through the current ginseng between other key points except target organ in detection current video frame
The base reference distance value in distance value and initial video frame between other key points is examined, determines that other in current video frame are crucial
The variation degree of point, and be reference with the variation degree of other key points, the variation degree of current characteristic value is determined, thus accurately
The variation degree for assessing current characteristic value, is thus modified current characteristic value, and will obtain revised characteristic value conduct
In vivo detection is solved and is adjusted in the prior art by user picture far and near distance as a result, improving the Detection accuracy of characteristic value,
The problem for leading to characteristic value detection inaccuracy improves the accuracy rate of characteristic value detection, meanwhile, pass through the variation journey of other key points
The variation degree of degree assessment characteristic value, can be with the opposite variation degree with face of accurate evaluation current characteristic value, to avoid
When face overall variation, current characteristic value calculates always according to original method and does not consider characteristic value and do not change actually with respect to face
The case where, and characteristic value is caused to calculate mistake, to realize accurate calculating characteristic value.
Embodiment two
Fig. 2 is the flow chart of one of embodiment of the present disclosure biopsy method, and this method is based on above-mentioned steps
It optimizes, this method specifically comprises the following steps:
S210, during video record, detect target organ in the video frame in the video characteristic value whether
More than matched default organ characteristic's threshold value, if it is, executing S220;Otherwise S230 is executed, until detecting target organ
Characteristic value be more than organ characteristic's threshold value video frame, by the video frame and as initial video frame.
S220 executes S240 using the video frame as initial video frame.
S230, whether the characteristic value for continuing to test target organ in next video frame is more than matched organ characteristic's threshold value,
The target organ is eyes;The characteristic value of the target organ opens value for the eyes;The value of opening of the eyes is
Left eye opens value and right eye opens the maximum value in value.
The video of the embodiment of the present disclosure, video frame, target organ, characteristic value, organ characteristic's threshold value, other key points, base
Plinth reference distance value, current characteristic value and In vivo detection result etc. can refer to the description of previous embodiment.
S240 determines target organ face in the current characteristic value and current video frame in current video frame on face
Current reference distance value between other upper key points;Other described key points are the changeless key in position in face
Point.
S250, according to the base reference distance value in initial video frame on face between other key points, the current ginseng
Distance value and the current characteristic value are examined, revised current characteristic value is determined based on following formula, obtains target organ in institute
State the In vivo detection result of current video frame:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiFor
The current reference distance value, F0For the base reference distance value.
Optionally, join according to the base reference distance value in initial video frame on face between other key points with current
Distance value amendment current characteristic value is examined, obtains target organ before the In vivo detection result of the current video frame, further includes:
Image comprising face is shot, the target video that described image is moved along shooting direction is obtained;Obtain the target view
The ginseng that the characteristic value of the corresponding target organ of at least two video frames and other corresponding described key points determine in frequency
Examine distance value;Based on the characteristic value and reference distance value of the corresponding target organ of at least two video frame, determine
The regulation coefficient.
The embodiment of the present disclosure carries out characteristic value detection to target organ after determining initial video frame, reduces preceding features
It is worth the data volume of detection, improves the efficiency of In vivo detection, current characteristic value is corrected according to formula, improves the detection of current characteristic value
Accuracy rate, to improve the accuracy rate of In vivo detection.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for living body detection device that the embodiment of the present disclosure three provides, and the present embodiment is applicable
In in the video frame detect target organ characteristic value the case where.The device can realize by the way of software and/or hardware,
The device can be configured in electronic equipment, such as server or terminal device, and typical terminal device includes mobile terminal.Such as
Shown in Fig. 3, the apparatus may include: characteristic value and reference distance obtain module 310 and current characteristic value correction module 320.
Characteristic value and reference distance obtain module 310, for determining target organ working as on face in current video frame
Current reference distance value in preceding characteristic value and current video frame on face between other key points;
Current characteristic value correction module 320, for according to the basis in initial video frame on face between other key points
Reference distance value and current reference distance value correct current characteristic value, obtain target organ and examine in the living body of the current video frame
Survey result.
The embodiment of the present disclosure passes through the current ginseng between other key points except target organ in detection current video frame
The base reference distance value in distance value and initial video frame between other key points is examined, determines that other in current video frame are crucial
The variation degree of point, and be reference with the variation degree of other key points, the variation degree of current characteristic value is determined, thus accurately
The variation degree for assessing current characteristic value, is thus modified current characteristic value, and will obtain revised characteristic value conduct
In vivo detection is solved and is adjusted in the prior art by user picture far and near distance as a result, improving the Detection accuracy of characteristic value,
The problem for leading to characteristic value detection inaccuracy improves the accuracy rate of characteristic value detection, meanwhile, pass through the variation journey of other key points
The variation degree of degree assessment characteristic value, can be with the opposite variation degree with face of accurate evaluation current characteristic value, to avoid
When face overall variation, current characteristic value calculates always according to original method and does not consider characteristic value and do not change actually with respect to face
The case where, and characteristic value is caused to calculate mistake, to realize accurate calculating characteristic value.
Further, the living body detection device, further includes: initial video frame determining module, for determining object machine
Before current characteristic value of the official in current video frame on face, during video record, the view in the video is detected
Whether the characteristic value of target organ is more than matched default organ characteristic's threshold value in frequency frame, if it is, the video frame is made
For initial video frame;Otherwise, whether the characteristic value for continuing to test target organ in next video frame is more than matched organ characteristic
Threshold value, until the characteristic value for detecting target organ is more than the video frame of organ characteristic's threshold value, by the video frame and as first
Beginning video frame.
Further, the target organ is eyes;The characteristic value of the target organ opens value for the eyes.
Further, the value of opening of the eyes is that left eye opens value and right eye opens maximum value in value.
Further, the current characteristic value correction module 320, comprising: formula amending unit, for according to described current
Reference distance value, base reference distance value and the current characteristic value determine revised current characteristic value based on following formula,
Target organ is obtained in the In vivo detection result of the current video frame:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiFor
The current reference distance value, F0For the base reference distance value.
Further, the living body detection device, further includes: regulation coefficient determining module, for according to initial video
It is right before base reference distance value and current reference distance value amendment current characteristic value in frame on face between other key points
Image comprising face is shot, and the target video that described image is moved along shooting direction is obtained;Obtain the target video
In the corresponding target organ of at least two video frames characteristic value and the reference that determines of other corresponding described key points
Distance value;Based on the characteristic value and reference distance value of the corresponding target organ of at least two video frame, institute is determined
State regulation coefficient.
Further, other described key points are the changeless key point in position in face.
The living body detection device that the embodiment of the present disclosure provides belongs to same with the biopsy method that previous embodiment provides
Inventive concept, the technical detail of detailed description not can be found in previous embodiment in the embodiments of the present disclosure, and the disclosure is implemented
The biopsy method beneficial effect having the same that the living body detection device and previous embodiment that example provides provide.
Example IV
Below with reference to Fig. 4, it illustrates the electronic equipment for being suitable for being used to realize the embodiment of the present disclosure (such as server or shiftings
Dynamic terminal) 400 structural schematic diagram.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone,
Laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia broadcasting
Put device), the mobile terminal of car-mounted terminal (such as vehicle mounted guidance terminal) etc. and such as number TV, desktop computer etc.
Fixed terminal.Electronic equipment shown in Fig. 4 is only an example, should not function and use scope band to the embodiment of the present disclosure
Carry out any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.)
401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408
Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment
Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404
Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device
409, which can permit electronic equipment 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4 shows tool
There is the electronic equipment 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can
The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed from network by communication device 409, or be filled from storage
It sets 408 to be mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the disclosure is executed
The above-mentioned function of being limited in the method for embodiment.
Embodiment five
The above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or computer-readable storage
Medium either the two any combination.Computer readable storage medium for example may be-but not limited to-electricity,
Magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Computer-readable storage
The more specific example of medium can include but is not limited to: have electrical connection, the portable computer magnetic of one or more conducting wires
Disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or sudden strain of a muscle
Deposit), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned appoint
The suitable combination of meaning.In the disclosure, computer readable storage medium can be any tangible medium for including or store program,
The program can be commanded execution system, device or device use or in connection.And in the disclosure, computer
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer
Readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal
Or above-mentioned any appropriate combination.Computer-readable signal media can also be any other than computer readable storage medium
Computer-readable medium, the computer-readable signal media can be sent, propagated or transmitted for by instruction execution system, dress
It sets or device uses or program in connection.The program code for including on computer-readable medium can be with any
Medium transmission appropriate, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer
Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can
To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network
(" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc
Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: determine current characteristic value of the target organ in current video frame on face and
Current reference distance value in current video frame on face between other key points;According to other are closed on face in initial video frame
Base reference distance value and current reference distance value between key point correct current characteristic value, obtain target organ described current
The In vivo detection result of video frame.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java,
Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, special
Value indicative and reference distance obtain module and are also described as " determining current spy of the target organ in current video frame on face
The module of current reference distance in value indicative and current video frame on face between other key points ".
Function described herein can be executed at least partly by one or more hardware logic components.Example
Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially
With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc.
Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for
The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can
Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity
Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction
Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter
Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM
Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or
Any appropriate combination of above content.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of biopsy methods, comprising:
Determine target organ in the current characteristic value and current video frame in current video frame on face on face its
Current reference distance value between his key point;
According to the base reference distance value and current reference distance value in initial video frame on face between other key points
Current characteristic value is corrected, obtains target organ in the In vivo detection result of the current video frame.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, object machine is being determined
Before current characteristic value of the official in current video frame on face, further includes:
During video record, whether the characteristic value for detecting target organ in the video frame in the video is more than
The default organ characteristic's threshold value matched, if it is, using the video frame as initial video frame;Otherwise, next view is continued to test
Whether the characteristic value of target organ is more than matched organ characteristic's threshold value in frequency frame, until detecting that the characteristic value of target organ is super
The video frame for crossing organ characteristic's threshold value, by the video frame and as initial video frame.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, the target organ
For eyes;The characteristic value of the target organ opens value for the eyes.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, the eyes are opened
Opening value is that left eye opens value and right eye opens maximum value in value.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, the basis is initial
Base reference distance value and current reference distance value in video frame on face between other key points correct current characteristic value, packet
It includes:
It is true based on following formula according to the current reference distance value, base reference distance value and the current characteristic value
Fixed revised current characteristic value, obtains target organ in the In vivo detection result of the current video frame:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiFor
The current reference distance value, F0For the base reference distance value.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, according to initial view
Before base reference distance value and current reference distance value amendment current characteristic value in frequency frame on face between other key points,
Further include: the image comprising face is shot, the target video that described image is moved along shooting direction is obtained;Described in acquisition
The characteristic value of the corresponding target organ of at least two video frames and other corresponding described key points are true in target video
Fixed reference distance value;Characteristic value and reference distance based on the corresponding target organ of at least two video frame
Value, determines the regulation coefficient.
In the biopsy method provided according to one or more other embodiments of the present disclosure, the disclosure, other described keys
Point is the changeless key point in position in face.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of living body detection devices, comprising:
Characteristic value and reference distance obtain module, for determining current spy of the target organ in current video frame on face
Current reference distance value in value indicative and current video frame on face between other key points;
Current characteristic value correction module, for according to the base reference in initial video frame on face between other key points
Distance value and current reference distance value correct current characteristic value, obtain target organ in the In vivo detection knot of the current video frame
Fruit.
According to one or more other embodiments of the present disclosure, the living body detection device of disclosure offer, further includes: initial
Video frame determining module, for before determining current characteristic value of the target organ in current video frame on face, in video
During recording, whether the characteristic value for detecting target organ in the video frame in the video is more than that matched default organ is special
Threshold value is levied, if it is, using the video frame as initial video frame;Otherwise, target organ in next video frame is continued to test
Characteristic value whether be more than matched organ characteristic's threshold value, until detect target organ characteristic value be more than organ characteristic's threshold value
Video frame, by the video frame and as initial video frame.
In the living body detection device provided according to one or more other embodiments of the present disclosure, the disclosure, the target organ
For eyes;The characteristic value of the target organ opens value for the eyes.
In the living body detection device provided according to one or more other embodiments of the present disclosure, the disclosure, the eyes are opened
Opening value is that left eye opens value and right eye opens maximum value in value.
In the living body detection device provided according to one or more other embodiments of the present disclosure, the disclosure, the current signature
It is worth correction module 320, comprising: formula amending unit, for according to the current reference distance value, base reference distance value and institute
Current characteristic value is stated, revised current characteristic value is determined based on following formula, obtains target organ in the current video frame
In vivo detection result:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiFor
The current reference distance value, F0For the base reference distance value.
In the living body detection device provided according to one or more other embodiments of the present disclosure, the disclosure, further includes: adjustment system
Number determining module, for joining according to the base reference distance value in initial video frame on face between other key points with current
Before examining distance value amendment current characteristic value, the image comprising face is shot, described image is obtained and is moved along shooting direction
Dynamic target video;The characteristic value of the corresponding target organ of at least two video frames in the target video is obtained, and
The reference distance value that other corresponding described key points determine;Based on the corresponding target organ of at least two video frame
Characteristic value and reference distance value, determine the regulation coefficient.
In the living body detection device provided according to one or more other embodiments of the present disclosure, the disclosure, other described keys
Point is the changeless key point in position in face.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realize the disclosure provide it is any as described in biopsy method.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of computer readable storage mediums, thereon
Be stored with computer program, when which is executed by processor realize the disclosure provide it is any as described in biopsy method.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order
The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous
's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs
The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real
It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable
The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer
When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary,
Special characteristic described in face and movement are only to realize the exemplary forms of claims.
Claims (10)
1. a kind of biopsy method characterized by comprising
Determining target organ, other are closed on face in the current characteristic value and current video frame in current video frame on face
Current reference distance value between key point;
According in initial video frame on face between other key points base reference distance value and current reference distance value amendment
Current characteristic value obtains target organ in the In vivo detection result of the current video frame.
2. the method according to claim 1, wherein determining target organ in current video frame on face
Before current characteristic value, further includes:
During video record, whether the characteristic value for detecting target organ in the video frame in the video is more than matched
Default organ characteristic's threshold value, if it is, using the video frame as initial video frame;Otherwise, next video frame is continued to test
Whether the characteristic value of middle target organ is more than matched organ characteristic's threshold value, until detecting that the characteristic value of target organ is more than device
The video frame of official's characteristic threshold value, by the video frame and as initial video frame.
3. the method according to claim 1, wherein the target organ is eyes;The spy of the target organ
Value indicative opens value for the eyes.
4. according to the method described in claim 3, it is characterized in that, the value of opening of the eyes is that left eye opens value and right eye is opened
Open the maximum value in value.
5. the method according to claim 1, wherein described according to other key points on face in initial video frame
Between base reference distance value and current reference distance value correct current characteristic value, comprising:
According to the current reference distance value, base reference distance value and the current characteristic value, repaired based on the determination of following formula
Current characteristic value after just obtains target organ in the In vivo detection result of the current video frame:
Y=X-A (Fi-F0)
Wherein, Y is the revised current characteristic value, and X is the current characteristic value, and A is default regulation coefficient, FiIt is described
Current reference distance value, F0For the base reference distance value.
6. according to the method described in claim 5, it is characterized in that, according in initial video frame on face other key points it
Between base reference distance value and current reference distance value amendment current characteristic value before, further includes:
Image comprising face is shot, the target video that described image is moved along shooting direction is obtained;
Obtain the characteristic value of the corresponding target organ of at least two video frames in the target video and corresponding described
The reference distance value that other key points determine;
Based on the characteristic value and reference distance value of the corresponding target organ of at least two video frame, the tune is determined
Integral coefficient.
7. the method according to claim 1, wherein other described key points are fixed not for the position in face
The key point of change.
8. a kind of living body detection device characterized by comprising
Characteristic value and reference distance obtain module, for determining current characteristic value of the target organ in current video frame on face
And the current reference distance value in current video frame on face between other key points;
Current characteristic value correction module, for according to the base reference distance in initial video frame on face between other key points
Value and current reference distance value correct current characteristic value, obtain target organ in the In vivo detection result of the current video frame.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Existing biopsy method as claimed in claim 1.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Biopsy method as claimed in claim 1 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615248.1A CN110363132B (en) | 2019-07-09 | 2019-07-09 | Living body detection method, living body detection device, electronic apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615248.1A CN110363132B (en) | 2019-07-09 | 2019-07-09 | Living body detection method, living body detection device, electronic apparatus, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110363132A true CN110363132A (en) | 2019-10-22 |
CN110363132B CN110363132B (en) | 2021-08-03 |
Family
ID=68218449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910615248.1A Active CN110363132B (en) | 2019-07-09 | 2019-07-09 | Living body detection method, living body detection device, electronic apparatus, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110363132B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112287909A (en) * | 2020-12-24 | 2021-01-29 | 四川新网银行股份有限公司 | Double-random in-vivo detection method for randomly generating detection points and interactive elements |
CN113392810A (en) * | 2021-07-08 | 2021-09-14 | 北京百度网讯科技有限公司 | Method, apparatus, device, medium and product for in vivo detection |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070041620A1 (en) * | 2005-08-19 | 2007-02-22 | Fujitsu Limited | Information access method using biometrics authentication and information processing system using biometrics authentication |
CN103220583A (en) * | 2013-03-28 | 2013-07-24 | 四川长虹电器股份有限公司 | System and method for detecting user fatigue degree based on smart television |
CN103679118A (en) * | 2012-09-07 | 2014-03-26 | 汉王科技股份有限公司 | Human face in-vivo detection method and system |
CN105096353A (en) * | 2014-05-05 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Image processing method and device |
CN107346422A (en) * | 2017-06-30 | 2017-11-14 | 成都大学 | A kind of living body faces recognition methods based on blink detection |
CN109635757A (en) * | 2018-12-18 | 2019-04-16 | 北京字节跳动网络技术有限公司 | Biopsy method, device, electronic equipment and storage medium |
-
2019
- 2019-07-09 CN CN201910615248.1A patent/CN110363132B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070041620A1 (en) * | 2005-08-19 | 2007-02-22 | Fujitsu Limited | Information access method using biometrics authentication and information processing system using biometrics authentication |
CN103679118A (en) * | 2012-09-07 | 2014-03-26 | 汉王科技股份有限公司 | Human face in-vivo detection method and system |
CN103220583A (en) * | 2013-03-28 | 2013-07-24 | 四川长虹电器股份有限公司 | System and method for detecting user fatigue degree based on smart television |
CN105096353A (en) * | 2014-05-05 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Image processing method and device |
CN107346422A (en) * | 2017-06-30 | 2017-11-14 | 成都大学 | A kind of living body faces recognition methods based on blink detection |
CN109635757A (en) * | 2018-12-18 | 2019-04-16 | 北京字节跳动网络技术有限公司 | Biopsy method, device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
李成: "人脸活体检测技术的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112287909A (en) * | 2020-12-24 | 2021-01-29 | 四川新网银行股份有限公司 | Double-random in-vivo detection method for randomly generating detection points and interactive elements |
CN113392810A (en) * | 2021-07-08 | 2021-09-14 | 北京百度网讯科技有限公司 | Method, apparatus, device, medium and product for in vivo detection |
Also Published As
Publication number | Publication date |
---|---|
CN110363132B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109800732B (en) | Method and device for generating cartoon head portrait generation model | |
US20210343041A1 (en) | Method and apparatus for obtaining position of target, computer device, and storage medium | |
CN111325726A (en) | Model training method, image processing method, device, equipment and storage medium | |
CN110569909B (en) | Block chain-based fault early warning method, device, equipment and storage medium | |
CN109614876A (en) | Critical point detection method and device, electronic equipment and storage medium | |
CN109508681A (en) | The method and apparatus for generating human body critical point detection model | |
CN109584276A (en) | Critical point detection method, apparatus, equipment and readable medium | |
CN111298445A (en) | Target account detection method and device, electronic equipment and storage medium | |
US10992619B2 (en) | Messaging system with avatar generation | |
CN108197618A (en) | For generating the method and apparatus of Face datection model | |
CN108062544A (en) | For the method and apparatus of face In vivo detection | |
CN110428399A (en) | Method, apparatus, equipment and storage medium for detection image | |
CN109086719A (en) | Method and apparatus for output data | |
CN109635757B (en) | Biopsy method, device, electronic equipment and storage medium | |
CN108171204B (en) | Detection method and device | |
CN109583391A (en) | Critical point detection method, apparatus, equipment and readable medium | |
CN110213573A (en) | A kind of video quality evaluation method, device and electronic equipment | |
CN109684974A (en) | Biopsy method, device, electronic equipment and storage medium | |
CN109670444A (en) | Generation, attitude detecting method, device, equipment and the medium of attitude detection model | |
CN110021052A (en) | The method and apparatus for generating model for generating eye fundus image | |
CN108171211A (en) | Biopsy method and device | |
CN110363132A (en) | Biopsy method, device, electronic equipment and storage medium | |
CN109977839A (en) | Information processing method and device | |
CN110245645A (en) | Face vivo identification method, device, equipment and storage medium | |
CN110222641A (en) | The method and apparatus of image for identification |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |