CN108875554A - Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified - Google Patents

Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified Download PDF

Info

Publication number
CN108875554A
CN108875554A CN201810381089.9A CN201810381089A CN108875554A CN 108875554 A CN108875554 A CN 108875554A CN 201810381089 A CN201810381089 A CN 201810381089A CN 108875554 A CN108875554 A CN 108875554A
Authority
CN
China
Prior art keywords
distance
section
image acquisition
sensing device
semaphore
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810381089.9A
Other languages
Chinese (zh)
Inventor
滕飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201810381089.9A priority Critical patent/CN108875554A/en
Publication of CN108875554A publication Critical patent/CN108875554A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides method, apparatus, system and computer storage mediums that a kind of testimony of a witness is veritified.The method includes:In the case where image collecting device is in close state, if distance sensing device senses object in the first preset distance section, described image acquisition device is opened;In the case where described image acquisition device is in the open state, if the distance sensing device does not sense object in preset duration and the second preset distance section, then close described image acquisition device, wherein first preset distance section is the subset in second preset distance section.It can be seen that in the embodiment of the present invention image collecting device can be opened or closed based on the sensing of distance sensing device, avoids image collecting device from opening for a long time and cause temperature excessively high, be able to extend the service life of image collecting device, while can reduce energy consumption.

Description

Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified
Technical field
The present invention relates to field of image processings, relate more specifically to a kind of method, apparatus, system and calculating that the testimony of a witness is veritified Machine storage medium.
Background technique
With the promotion of face recognition algorithms accuracy rate and the maturation of terminal hardware, system, face recognition technology is It is widely used in various industries, such as education, finance, security protection field.Such as in security industry, it is face that the testimony of a witness, which veritifies all-in-one machine, One landing of identification technology embodies.The testimony of a witness veritifies whether the portrait that all-in-one machine is used to veritify on live face and certificate is same People, usage scenario is registered including but not limited to operating divisions's identity verification, hotel, Internet bar is registered.
However, the front end display interface that the testimony of a witness veritifies integrated machine system at present often compares interface, real-time exhibition video There are two serious problems in this way in stream:One is image collecting device life loss, second is that prolonged continue using camera shooting, It will cause the unstable of system, be easy to cause stuck, system reboot.
Summary of the invention
The present invention provides method, apparatus, system and computer storage mediums that a kind of testimony of a witness is veritified, are able to extend image The service life of acquisition device guarantees efficiency when processing, while can reduce energy consumption.
According to an aspect of the present invention, a kind of method that the testimony of a witness is veritified is provided, the method includes:
In the case where image collecting device is in close state, if distance sensing device is in the first preset distance section Object is sensed, then opens described image acquisition device;
In the case where described image acquisition device is in the open state, if the distance sensing device in preset duration and Object is not sensed in second preset distance section, then closes described image acquisition device, wherein first preset distance area Between be second preset distance section subset.
In a kind of implementation of the invention, in the case where described image acquisition device is in close state, if institute It states distance sensing device and senses object in first preset distance section, then open described image acquisition device and by preceding Display image screen is held to compare the page.
In a kind of implementation of the invention, the distance sensing device senses object in the first preset distance section Body, including:
Obtain the semaphore at least once that the distance sensing device obtains, wherein the semaphore is the distance perception Survey the function of object and the distance between the distance sensing device that device is sensed;
According to the semaphore at least once, determine the distance in first preset distance section.
In a kind of implementation of the invention, the function is:
The semaphore is equal to the distance, alternatively, the semaphore is equal to the inverse of the distance.
In a kind of implementation of the invention, the semaphore at least once is continuous semaphore three times.
In a kind of implementation of the invention, first preset distance section is 0.2 meter~1.2 meters.
According to another aspect of the present invention, a kind of device that the testimony of a witness is veritified is provided, described device is for realizing aforementioned side The step of face or each embodiment the method, described device includes:
Opening module, in the case where image collecting device is in close state, if distance sensing device is first Object is sensed in preset distance section, then opens described image acquisition device;
Closedown module is used in the case where described image acquisition device is in the open state, if the distance sensing fills It sets and does not sense object in preset duration and the second preset distance section, then close described image acquisition device, wherein described First preset distance section is the subset in second preset distance section.
According to another aspect of the invention, a kind of system that the testimony of a witness is veritified, including memory, processor and storage are provided The computer program run on the memory and on the processor, when the processor executes the computer program The step of realizing the method that the testimony of a witness described in aforementioned aspects and each example is veritified.
In accordance with a further aspect of the present invention, a kind of computer storage medium is provided, computer program is stored thereon with, institute The step of stating the method that the veritification of the testimony of a witness described in aforementioned aspects and each example is realized when computer program is executed by processor.
It can be seen that in the embodiment of the present invention Image Acquisition can be opened or closed based on the sensing of distance sensing device Device avoids image collecting device from opening for a long time and causes temperature excessively high, is able to extend the service life of image collecting device, together When can reduce energy consumption.
Detailed description of the invention
The embodiment of the present invention is described in more detail in conjunction with the accompanying drawings, the above and other purposes of the present invention, Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present invention, and constitutes explanation A part of book, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings, Identical reference label typically represents same parts or step.
Fig. 1 is a schematic block diagram of the electronic equipment of the embodiment of the present invention;
Fig. 2 is a schematic flow chart of the method that the testimony of a witness of the embodiment of the present invention is veritified;
Fig. 3 is another schematic flow chart for the method that the testimony of a witness of the embodiment of the present invention is veritified;
Fig. 4 is a schematic block diagram of the device that the testimony of a witness of the embodiment of the present invention is veritified;
Fig. 5 is a schematic block diagram of the system that the testimony of a witness of the embodiment of the present invention is veritified.
Specific embodiment
In order to enable the object, technical solutions and advantages of the present invention become apparent, root is described in detail below with reference to accompanying drawings According to example embodiments of the present invention.Obviously, described embodiment is only a part of the embodiments of the present invention, rather than this hair Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Based on described in the present invention The embodiment of the present invention, those skilled in the art's obtained all other embodiment in the case where not making the creative labor It should all fall under the scope of the present invention.
The embodiment of the present invention can be applied to electronic equipment, and Fig. 1 show one of the electronic equipment of the embodiment of the present invention Schematic block diagram.Electronic equipment 10 shown in FIG. 1 include one or more processors 102, one or more storage device 104, Input unit 106, output device 108, imaging sensor 110 and one or more non-image sensors 114, these components are logical Cross bus system 112 and/or other forms interconnection.It should be noted that the component and structure of electronic equipment 10 shown in FIG. 1 only show Example property, and not restrictive, as needed, the electronic equipment also can have other assemblies and structure.
The processor 102 may include central processing unit (Central Processing Unit, CPU) 1021 Hes There is graphics processing unit (Graphics Processing Unit, GPU) 1022 data-handling capacity and/or instruction to hold The processing unit of the other forms of row ability, such as field programmable gate array (Field-Programmable Gate Array, FPGA) or advanced reduced instruction set machine (Advanced RISC (Reduced Instruction Set Computer) Machine, ARM) etc., and processor 102 can control other components in the electronic equipment 10 to execute Desired function.
The storage device 104 may include one or more computer program products, and the computer program product can To include various forms of computer readable storage mediums, such as volatile memory 1041 and/or nonvolatile memory 1042.The volatile memory 1041 for example may include random access memory (Random Access Memory, RAM) And/or cache memory (cache) etc..The nonvolatile memory 1042 for example may include read-only memory (Read-Only Memory, ROM), hard disk, flash memory etc..It can store one or more on the computer readable storage medium A computer program instructions, processor 102 can run described program instruction, to realize various desired functions.In the meter Can also store various application programs and various data in calculation machine readable storage medium storing program for executing, for example, the application program use and/or The various data etc. generated.
The input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, wheat It is one or more in gram wind and touch screen etc..
The output device 108 can export various information (such as image or sound) to external (such as user), and It may include one or more in display, loudspeaker etc..
Described image sensor 110 can be shot the desired image of user (such as photo, video etc.), and will be captured Image be stored in the storage device 104 for other components use.
It should be noted that the component and structure of electronic equipment 10 shown in FIG. 1 are only exemplary, although electricity shown in fig. 1 Sub- equipment 10 include multiple and different devices, but as needed, some of which device can not be it is necessary, therein one The quantity of a little devices can be more etc., and the present invention does not limit this.
Fig. 2 is a schematic flow chart of the method that the testimony of a witness of the embodiment of the present invention is veritified.Method shown in Fig. 2 can be with Electronic equipment 10 as shown in Figure 1 executes, and is specifically executed by processor 102.Method shown in Fig. 2 may include:
S110, in the case where image collecting device is in close state, if distance sensing device is in the first preset distance Section senses object, then opens described image acquisition device;
S120, in the case where described image acquisition device is in the open state, if the distance sensing device is default Object is not sensed in duration and the second preset distance section, then closes described image acquisition device, wherein described first is predetermined It is the subset in second preset distance section apart from section.
It is understood that distance sensing device can be range sensor, it can be non-image sensor 114 shown in FIG. 1 One of.It is understood that image collecting device can be photographic device, such as camera, it can be imaging sensor shown in FIG. 1 One of 110.
Illustratively, distance sensing device senses object, can refer to:Distance sensing device senses pre- in front of it If apart from section memory in object.It is understood that being compared people would generally be located at equipment to subconsciousness when carrying out testimony of a witness veritification Front, therefore distance sensing device can sense the distance of the object in front.
In the embodiment of the present invention, distance sensing device can be mounted on to the side of image collecting device, so that distance perception The distance for surveying the object that device is sensed is substantially equal to the distance between image collecting device and object.For example, distance perception Surveying device can be arranged side by side with image collecting device, and the direction of object that is sensed of distance sensing device and image collector The direction for setting object collected is consistent.
Distance sensing device can use " time-of-flight method " such as range sensor (also referred to as displacement sensor) The principle of (flying time) carrys out the distance with detection object.It is by emitting especially short light pulse and measuring the light pulse From the time being reflected by the object back is emitted to, the distance between object is calculated by surveying time interval.Range sensor It is more that optical distance sensor, infrared distance sensor, ultrasonic distance sensor etc. can be divided into according to the difference of its working principle Kind.By taking infrared distance sensor as an example, an infrared emission tube and an infrared receiver tube can have, wherein infrared Line transmitting tube is used for receiving infrared-ray pulse for emitting infrared pulse, infrared receiver tube.
That is, distance sensing device can by send and receive wave time interval and wave characteristic (e.g., this Kind of the aerial spread speed of wave) determine the distance of objects in front.Further, distance sensing device can according to this away from From generation semaphore.Wherein, the obtained semaphore of distance sensing device can be the function of distance.Then, distance sensing fills The device that the semaphore can be provided to the method shown in Fig. 2 that executes by system interface is set, such as processor 102.
In addition, due to distance sensing device sense object apart from when, be easy shadow by externally and/or internally factor It rings, shows as also generating semaphore, signal numerical quantity is smaller at this time, therefore can ignore when object is not present in front It filters out bottom lower than the semaphore of preset value to make an uproar interference, with the accuracy of distance determined by guaranteeing.In this way, can pass through Exclusive segment semaphore carrys out exclusive PCR, improves the accuracy of data.
Illustratively, in S110, semaphore at least once that the available distance sensing device obtains, wherein The semaphore is the function of the object that the distance sensing device is sensed and the distance between the distance sensing device; According to the semaphore at least once, determine the distance in first preset distance section.
As an example, in order to reduce the probability that error occurs, what available distance sensing device returned continuously believes three times Number amount, and judge whether to sense object in the first preset distance section according to the continuous semaphore three times.For example, if even Continuous semaphore three times determines that there are objects in the first preset distance section in front of distance sensing device, then can determine each time Distance sensing device senses object.That is, needing distance sensing device, continuously semaphore all meets three times in S110 It is required that can just trigger comparison logic.It is understood that can also be judged according to continuous n times semaphore, N can be greater than 3 or be less than 3, the present invention does not limit this.
That is, executing the device (such as processor 102) of method shown in Fig. 2 can receive at least from distance sensing device One semaphore, and according to the functional relation between semaphore and distance, obtain the distance between object and distance sensing device. Then, judge the distance whether be located at the first preset distance section in, with this come decide whether open image collecting device.
In such manner, it is possible to prevent the frequent of image collecting device caused by the sensing error due to distance sensing device from opening It opens, so as to extend the service life of image collecting device, while can reduce power consumption.
Optionally, semaphore can be determined according to the distance of its objects in front determined by distance sensing device.As An example, the semaphore can be equal to the distance, and the unit of the semaphore is millimeter (mm).As another example, which can be with Equal to the inverse of the distance, the unit of the signal is 1/mm, at this time between semaphore size and object and distance sensing device Distance is inversely.In addition, semaphore can also be the function of the other forms of distance, the present invention does not limit this.
In order to which facial image taken when guaranteeing that the testimony of a witness is veritified clearly can be used, the first preset distance area can be set Between.Due to that can not clap full face when distance is too close, the lower limit in the first preset distance section is greater than 0;Due to apart from too far Shi Wufa extracts the enough information of face, therefore the upper limit in the first preset distance section can not be too big.It therefore can be with According to the attribute setup of image collecting device suitable first preset distance section, as an example, it can be assumed that its for 0.2 meter~ 1.2 rice.It is understood that the first preset distance section may be other ranges, the embodiment of the present invention does not limit this.
Illustratively, in the case where described image acquisition device is in close state, front-end screen shows the standby page. In the case where described image acquisition device is in the open state, the front-end screen shows that image compares the page.Wherein, front end Screen is directed towards the display for the person of being compared, and the person of being compared can see that image collecting device is collected in the front-end screen Facial image, the person of being compared can correspondingly adjust in front-end screen shown people by adjusting posture, shift position etc. Face image.
In this way, front-end screen also shows the standby page, can further reduce function when image collecting device is closed Consumption.
It can be seen that in S110, original state is:Image collecting device is closed and front-end screen shows the standby page. It then can detect that there are objects in the first preset distance section based on distance detection device, and open image collecting device, And start image and compare the page, page real-time exhibition image collecting device video flowing collected is compared in the image.
As a kind of implementation, testimony of a witness veritification can be further carried out after S110.It can be seen that the present invention is real It applies in example, comparison process can be started according to the sensed object of distance sensing device, be manually operated without staff (such as mouse is clicked mode and triggered) reduces triggering time-consuming, improves treatment effeciency thus, it is possible to simplify process flow.
Specifically, the facial image of face to be verified can be obtained from video flowing, and obtain additional clause body to be verified Part image.And judge whether the face in the facial image and the identity image belongs to same people.
Illustratively, it obtains facial image and can be executed parallel with acquisition the two acquisition process of identity image and (or be It is asynchronous to be performed simultaneously).In such manner, it is possible to make full use of the processing capacity of equipment, the total time-consuming of comparison process is effectively reduced, is mentioned High treatment effeciency.
Illustratively, an example of the comparison process in the embodiment of the present invention can be as shown in figure 3, below in conjunction with Fig. 3 to this Comparison process carries out more detailed elaboration.
Wherein, image collecting device facial image collected is obtained, may include:Image acquisition device is to video Flow data;The facial image in the video stream data is determined by Face datection;Determine the quality of the facial image Reach predetermined quality threshold;The first label is carried out for the facial image.
Referring to Fig. 3, available image collecting device video stream data collected.Then sentenced by Face datection model Break in each frame of the video stream data with the presence or absence of face.Illustratively, it can detect whether that there are faces with frame by frame.As A kind of implementation can return to reacquisition image if determining that face is all not present in any frame by Face datection Acquisition device video stream data collected, and Face datection is carried out again to the video stream data of reacquisition.As another kind Implementation can further judge through Face datection institute really if determining a certain frame there are face by Face datection Whether fixed face meets required face quality requirement.It is understood that if determining a certain frame video fluxion by Face datection There are more than one faces in, then can be using the nearest face of range image acquisition device as the face figure for being compared people Picture, or can be according to detected face size using the maximum face of area as the facial image for being compared people.
If it is judged that determining that the facial image reaches predetermined quality threshold, then the first mark is carried out to the facial image Note.If it is judged that determining that the facial image is not up to predetermined quality threshold, then the second label (figure is carried out to the facial image It is not shown in 3).The subsequent person of being compared can adjust its position or posture etc. based on the second label, and then can resurvey people Face image.
Illustratively, it if facial image is not detected or facial image is not up to predetermined quality threshold, can carry out Auditory tone cues or the text prompt person of being compared in front-end screen, so that the person of being compared can adjust its opposite figure according to the prompt As position, the posture etc. of acquisition device.And then image collecting device can reacquire video stream data, and can be based on again The video stream data of acquisition re-executes the above process.In addition, the person of being compared can also obtain prompt information from the front-end screen, With position, the posture etc. for adjusting its relative image acquisition device according to the prompt.
Illustratively, when carrying out Quality estimation, the horizontal direction angle of the face can be determined based on facial image, is erected The picture qualities such as straight orientation angle, rotation angle, fog-level, brightness, and by obtained various picture qualities with it is corresponding Predetermined quality threshold is compared.If each picture quality is all satisfied corresponding predetermined quality threshold, the people can be determined Face image reaches predetermined quality threshold.Otherwise, a certain picture quality is unsatisfactory for corresponding predetermined quality threshold if it exists, then can be with Determine that the facial image is not up to predetermined quality threshold.For example, if the rotation angle of facial image is greater than preset rotation Angle threshold, illustrating the facial image not is positive face, is unsatisfactory for quality requirement.Again for example, if facial image is excessively fuzzy, It is not able to satisfy definition quality threshold value, illustrates that the facial image is not clear enough, is unsatisfactory for quality requirement.
That is, carrying out the first label to it when the quality of facial image reaches quality threshold.When facial image When quality is not up to quality threshold, the second label is carried out to it.Optionally, the first label can be:By the facial image Face collimation mark is denoted as the first color.Second label can be:The face collimation mark of the facial image is denoted as the second color, and institute The second color is stated different from first color.For example, the first color is blue, the second color is red.The present invention to this not It limits.
After through Face datection model inspection to face, detected face area can be marked using face frame Domain;Followed by Quality estimation, if reaching predetermined quality threshold, face frame is the first color;If not up to preset quality Threshold value, then face frame is the second color.
It can be seen that by the process, the available facial image with the first label, for image collecting device institute The facial image for reaching predetermined quality threshold of acquisition.
Referring to Fig. 3, available additional clause identity image to be verified can specifically be obtained by electronics reading manner Take the identity image.
Integrated circuit can be included in certificate to be verified, such testimony of a witness verifying system can read it from the integrated circuit Recorded in electronic information, electronic information here includes identity image.Illustratively, integrated circuit is referred to as chip Or microcircuit etc., it can be made of wafer, the present invention does not limit this.For example, certificate to be verified can for identity card, Social security card etc..
If electronics is read successfully, the available identity image.Additionally, it is appreciated that electronics can be passed through simultaneously Reading manner obtains other identity informations of certificate, such as name, address.For example, it is assumed that the certificate is identity card, then obtain Identity information may include name, nationality, address, identification card number, validity period, issuing authority etc..Assuming that the certificate is passport, then The identity information of acquisition may include name, address, passport number, validity period, Issue At etc..
If electronics reads failure, it can further pass through optical character identification (Optical Character Recognition, OCR) mode obtains the identity image.Illustratively, the card can be obtained by the modes such as scan or take pictures The image of part then carries out OCR to the image of the certificate, so that parsing obtains the identity image.Additionally, it is appreciated that logical Other identity informations that can also obtain certificate while OCR mode obtains identity image by OCR mode are crossed, such as name is lived Location etc..For example, it is assumed that the certificate be do not have magnetic identity card, such as business card, then the identity information obtained may include name, Work unit's title, address, telephone number etc..
Wherein, OCR can determine its shape by detecting dark, bright mode, then be turned over shape with character identifying method It is translated into computword;I.e., it is possible to which the text conversion in paper document to be become to the image of black and white lattice using optical mode File, and pass through identification software for the text conversion in image into text formatting, it is further edited and processed for word processor.
It can be seen that identity image can be obtained by electronics reading manner first, and in the failure of electronics reading manner Obtain identity image by OCR mode, can guarantee obtain identity image validity, avoid as mode it is single caused by compare To failure, treatment effeciency ensure that.
It is same it is possible to further whether be belonged to by the acquired facial image of recognition of face judgement with identity image People.
Wherein, the algorithm of used recognition of face can be preparatory trained convolutional neural networks, and the present invention is implemented Example the network structure of used neural network is not construed as limiting, such as can be ResNet, DenseNet, MobileNet, Any network structure in ShuffleNet, Inception etc..
Specifically, the first eigenvector of facial image can be extracted by feature extraction network, and extract identity image Second feature vector.The similarity between first eigenvector and second feature vector is calculated, is according to similarity determination It is no to belong to same people.
Illustratively, this feature, which extracts network, can be the convolutional Neural net for being used to carry out feature extraction existing at present Network, which is not described herein again.
Illustratively, the distance between first eigenvector and second feature vector can be calculated to calculate similarity.Example Such as, which can be any one of Euclidean distance, COS distance, mahalanobis distance etc., or can be other distances, this hair It is bright that this is not limited.After calculating distance, similarity can be calculated according to this distance.It as an example, can be by the calculating Obtained distance is directly as similarity.As another example, similarity can be calculated again on the basis of obtaining distance.Meter Calculating obtained similarity can be the value between 0~1.
If obtained similarity is greater than or equal to similarity threshold, the facial image and card for being compared people can be determined Identity image in part belongs to same people, is otherwise not belonging to same people.Wherein, similarity threshold can basis in practical applications Actual conditions are set, and the present invention does not limit this.
In addition, can be compared offline in the method that the testimony of a witness of the embodiment of the present invention is veritified, in this way without considering that network consumes When, to further increase treatment effeciency.
The testimony of a witness verification procedure of the embodiment of the present invention can so be completed.Optionally, however, it is determined that be compared the face of people Image and additional clause identity image belong to same people, can further include:Identity information (the name that will be obtained from certificate Etc. information) be associated with the facial image for being compared people.For example, if being compared people is visitor (such as hotel occupancy visitor People), then when carrying out visitor's registration, its facial image and corresponding identity information can be registered, can be reduced so artificial Input reduces time-consuming, improves efficiency.
It can be seen that in the present embodiment the testimony of a witness veritify method, can according to the sensed object of distance sensing device come Starting compares process, is manually operated without staff, and it is time-consuming to reduce triggering.It obtains facial image and obtains identity image It can execute parallel, effectively reduce the total time-consuming of comparison process.In such manner, it is possible to simplify process flow, can make full use of The processing capacity of equipment, to improve treatment effeciency.
It should be understood that comparison process illustrated in fig. 3 is only one embodiment of the present of invention, other implementations also can be used Process is compared in example, such as serially executes two acquisition process;Such as identity figure is only obtained by electronics reading manner As without using OCR mode;Deng.The present invention does not limit this.
As another implementation, after S110, if process cannot be compared as early as possible, S120 can be executed, Image collecting device is closed.Specifically, in S120, initially, image collecting device is opened, and front-end screen shows image Compare the page.Then, if not sensing object in preset duration and the second preset distance section, that is to say, can not carry out such as Comparison process shown in Fig. 3, then can close image collecting device, and be that front-end screen returns to the standby page of display.Citing For, if sensed in S110 only pass through once in a while or once in a while in front of distance sensing device short stay other staff, S120 can be then executed after S110, is able to extend the service life of image collecting device in this way, and can reduce power consumption.
It so, it is possible that image collecting device long-time unlatching is avoided to lead to problems such as temperature excessively high, prevent from causing to system Failure.And it is understood that in practical application scene, since there are the time of comparison demand is very short, most times are that do not have The demand for thering is the testimony of a witness to veritify, therefore image collecting device can be in close state for a long time, when correspondingly screen can be long Between show the standby page, so can greatly extend the service life of hardware, reduce energy consumption.
Wherein, preset duration can be set according to hardware requirement, usage scenario etc., for example, preset duration is 30 seconds (s).It is understood that the preset duration may be other values, such as 50s, the present invention does not limit this.
Wherein, the range in the second preset distance section is greater than the range in the first preset distance section, i.e. the second preset distance The lower limit in section is less than or equal to the lower limit in the first preset distance section, and the upper limit in the second preset distance section is greater than or equal to The upper limit in the first preset distance section.As an example, the first preset distance section and the second preset distance section be it is same away from It from section, such as is 0.2 meter~1.2 meters.
It can be seen that in the embodiment of the present invention Image Acquisition can be opened or closed based on the sensing of distance sensing device Device avoids image collecting device from opening for a long time and causes temperature excessively high, is able to extend the service life of image collecting device, together When can reduce energy consumption.
Fig. 4 is a schematic block diagram of the device that the testimony of a witness of the embodiment of the present invention is veritified.Device 40 shown in Fig. 4 can be with Including opening module 410 and closedown module 420.
Opening module 410, in the case where image collecting device is in close state, if distance sensing device is Object is sensed in one preset distance section, then opens described image acquisition device;
Closedown module 420 is used in the case where described image acquisition device is in the open state, if the distance sensing Device does not sense object in preset duration and the second preset distance section, then closes described image acquisition device, wherein institute State the subset that the first preset distance section is second preset distance section.
Illustratively, opening module 410 can be specifically used for:In the case where image collecting device is in close state, If the distance sensing device senses object in first preset distance section, described image acquisition device is opened simultaneously Show that image compares the page by front-end screen.
Illustratively, opening module 410 can be specifically used for:Obtain the letter at least once that the distance sensing device obtains Number amount, wherein the semaphore is between the object that the distance sensing device is sensed and the distance sensing device The function of distance;According to the semaphore at least once, determine the distance in first preset distance section.
Wherein, the function is:The semaphore is equal to the distance, alternatively, the semaphore is equal to the distance It is reciprocal.
Wherein, the semaphore at least once is continuous semaphore three times.
Wherein, first preset distance section is 0.2 meter~1.2 meters.
Wherein, preset duration can be 30 seconds.
Illustratively, in the case where described image acquisition device is in close state, front-end screen shows the standby page; In the case where described image acquisition device is in the open state, the front-end screen shows that image compares the page.
Illustratively, distance sensing device can be range sensor, and image collecting device can be camera.
The method that device 40 shown in Fig. 4 can be realized earlier figures 2 or the testimony of a witness shown in Fig. 3 is veritified, to avoid repeating, this In repeat no more.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In addition, the embodiment of the invention also provides the system that another testimony of a witness is veritified, including memory, processor and storage The computer program run on the memory and on the processor, processor realize earlier figures when executing described program 2 or the testimony of a witness shown in Fig. 3 veritify method the step of.
As shown in figure 5, the system 50 may include memory 510 and processor 520, furthermore it is also possible to adopt including image Acquisition means 530, distance sensing device 540 and front-end screen 550.
Memory 510 stores the meter of the corresponding steps in the method veritified for realizing the testimony of a witness according to an embodiment of the present invention Calculation machine program code.
Computer program code of the processor 520 for storing in run memory 510, is implemented according to the present invention with executing The corresponding steps for the method that the testimony of a witness of example is veritified, and in the device veritified for realizing the testimony of a witness according to an embodiment of the present invention Opening module 410 and closedown module 420.
Illustratively, following steps are executed when the computer program code is run by processor 520:In Image Acquisition In the case that device is in close state, if distance sensing device senses object in the first preset distance section, open Described image acquisition device;In the case where described image acquisition device is in the open state, if the distance sensing device exists Object is not sensed in preset duration and the second preset distance section, then closes described image acquisition device, wherein described first Preset distance section is the subset in second preset distance section.
In addition, the electronic equipment may include device shown in Fig. 4 the embodiment of the invention also provides a kind of electronic equipment 40.The method that earlier figures 2 may be implemented in the electronic equipment or the testimony of a witness shown in Fig. 3 is veritified.
In addition, being stored thereon with computer program the embodiment of the invention also provides a kind of computer storage medium.Work as institute When stating computer program and being executed by processor, the step of may be implemented earlier figures 2 or method that the testimony of a witness shown in Fig. 3 is veritified.Example Such as, which is computer readable storage medium.
Computer storage medium for example may include the storage card of smart phone, the storage unit of tablet computer, personal meter The hard disk of calculation machine, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), the read-only storage of portable compact disc Any combination of device (CD-ROM), USB storage or above-mentioned storage medium.Computer readable storage medium can be one Or any combination of multiple computer readable storage mediums, such as a computer readable storage medium includes for randomly giving birth to At the computer-readable program code of action command sequence, another computer readable storage medium includes for carrying out face The computer-readable program code of activity recognition.
It can be seen that in the embodiment of the present invention Image Acquisition can be opened or closed based on the sensing of distance sensing device Device avoids image collecting device from opening for a long time and causes temperature excessively high, is able to extend the service life of image collecting device.Figure As acquisition device only needs the short time in the open state, stuck, the problems such as restarting as caused by working long hours can be avoided, Guarantee treatment effeciency, also the user experience is improved.Meanwhile image collecting device closed state and screen are in standby page energy Enough greatly reduce energy consumption.
Although describing example embodiment by reference to attached drawing here, it should be understood that above example embodiment are only exemplary , and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various changes wherein And modification, it is made without departing from the scope of the present invention and spiritual.All such changes and modifications are intended to be included in appended claims Within required the scope of the present invention.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another equipment is closed or is desirably integrated into, or some features can be ignored or not executed.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, To in the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure, Or in descriptions thereof.However, the method for the invention should not be construed to reflect following intention:It is i.e. claimed The present invention claims features more more than feature expressly recited in each claim.More precisely, such as corresponding power As sharp claim reflects, inventive point is that the spy of all features less than some disclosed single embodiment can be used Sign is to solve corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in this specific Embodiment, wherein each, the claims themselves are regarded as separate embodiments of the invention.
It will be understood to those skilled in the art that any combination pair can be used other than mutually exclusive between feature All features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed any method Or all process or units of equipment are combined.Unless expressly stated otherwise, this specification (is wanted including adjoint right Ask, make a summary and attached drawing) disclosed in each feature can be replaced with an alternative feature that provides the same, equivalent, or similar purpose.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (Digital Signal Processing, DSP) are implemented according to the present invention to realize The some or all functions of some modules in the article analytical equipment of example.The present invention is also implemented as executing here Some or all program of device (for example, computer program and computer program product) of described method.In this way Realization program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The above description is merely a specific embodiment or to the explanation of specific embodiment, protection of the invention Range is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can be easily Expect change or replacement, should be covered by the protection scope of the present invention.Protection scope of the present invention should be with claim Subject to protection scope.

Claims (9)

1. a kind of method that testimony of a witness is veritified, which is characterized in that the method includes:
In the case where image collecting device is in close state, if distance sensing device senses in the first preset distance section To object, then described image acquisition device is opened;
In the case where described image acquisition device is in the open state, if the distance sensing device is in preset duration and second Object is not sensed in preset distance section, then closes described image acquisition device, wherein first preset distance section is The subset in second preset distance section.
2. the method according to claim 1, wherein
In the case where described image acquisition device is in close state, if the distance sensing device is in the described first pre- spacing From object is sensed in section, then opens described image acquisition device and show that image compares the page by front-end screen.
3. the method according to claim 1, wherein the distance sensing device is in the first preset distance section Object is sensed, including:
Obtain the semaphore at least once that the distance sensing device obtains, wherein the semaphore is the distance sensing dress Set the function of sensed object and the distance between the distance sensing device;
According to the semaphore at least once, determine the distance in first preset distance section.
4. according to the method described in claim 3, it is characterized in that, the function is:
The semaphore is equal to the distance, alternatively,
The semaphore is equal to the inverse of the distance.
5. according to the method described in claim 3, it is characterized in that, the semaphore at least once is continuous semaphore three times.
6. the method according to any one of claims 1 to 5, which is characterized in that
First preset distance section is 0.2 meter~1.2 meters.
7. the device that a kind of testimony of a witness is veritified, which is characterized in that described device is for realizing described in any one of claims 1 to 6 The step of method, described device include:
Opening module, in the case where image collecting device is in close state, if distance sensing device is predetermined first Apart from section, inner sense measures object, then opens described image acquisition device;
Closedown module is used in the case where described image acquisition device is in the open state, if the distance sensing device exists Preset duration and the second preset distance section do not sense object, then close described image acquisition device, wherein described first is pre- Set a distance section is the subset in second preset distance section.
8. the system that a kind of testimony of a witness is veritified, including memory, processor and it is stored on the memory and in the processor The computer program of upper operation, which is characterized in that the processor realizes claim 1 to 6 when executing the computer program Any one of the method the step of.
9. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is processed The step of device realizes any one of claims 1 to 6 the method when executing.
CN201810381089.9A 2018-04-25 2018-04-25 Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified Pending CN108875554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810381089.9A CN108875554A (en) 2018-04-25 2018-04-25 Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810381089.9A CN108875554A (en) 2018-04-25 2018-04-25 Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified

Publications (1)

Publication Number Publication Date
CN108875554A true CN108875554A (en) 2018-11-23

Family

ID=64327350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810381089.9A Pending CN108875554A (en) 2018-04-25 2018-04-25 Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified

Country Status (1)

Country Link
CN (1) CN108875554A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202210263U (en) * 2011-06-30 2012-05-02 汉王科技股份有限公司 Face recognition device
CN103795871A (en) * 2014-01-22 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Standby method and system
CN104375628A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Information processing method and electronic equipment
US20160132988A1 (en) * 2014-11-06 2016-05-12 Fih (Hong Kong) Limited Electronic device and controlling method
CN106022209A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Distance estimation and processing method based on face detection and device based on face detection
CN106534565A (en) * 2016-11-28 2017-03-22 努比亚技术有限公司 Television control device, mobile terminal and television control method
CN106682607A (en) * 2016-12-23 2017-05-17 山东师范大学 Offline face recognition system and offline face recognition method based on low-power-consumption embedded and infrared triggering
CN106681504A (en) * 2016-12-20 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal control method and terminal control device
CN107222641A (en) * 2017-07-12 2017-09-29 珠海格力电器股份有限公司 Mobile terminal unlocking method and mobile terminal
WO2018001211A1 (en) * 2016-06-30 2018-01-04 华为技术有限公司 Method for displaying information and terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202210263U (en) * 2011-06-30 2012-05-02 汉王科技股份有限公司 Face recognition device
CN104375628A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Information processing method and electronic equipment
CN103795871A (en) * 2014-01-22 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Standby method and system
US20160132988A1 (en) * 2014-11-06 2016-05-12 Fih (Hong Kong) Limited Electronic device and controlling method
CN106022209A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Distance estimation and processing method based on face detection and device based on face detection
WO2018001211A1 (en) * 2016-06-30 2018-01-04 华为技术有限公司 Method for displaying information and terminal
CN106534565A (en) * 2016-11-28 2017-03-22 努比亚技术有限公司 Television control device, mobile terminal and television control method
CN106681504A (en) * 2016-12-20 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal control method and terminal control device
CN106682607A (en) * 2016-12-23 2017-05-17 山东师范大学 Offline face recognition system and offline face recognition method based on low-power-consumption embedded and infrared triggering
CN107222641A (en) * 2017-07-12 2017-09-29 珠海格力电器股份有限公司 Mobile terminal unlocking method and mobile terminal

Similar Documents

Publication Publication Date Title
US10699103B2 (en) Living body detecting method and apparatus, device and storage medium
CN106203305B (en) Face living body detection method and device
CN109086691B (en) Three-dimensional face living body detection method, face authentication and identification method and device
Othman et al. A face recognition method in the Internet of Things for security applications in smart homes and cities
CN107545241B (en) Neural network model training and living body detection method, device and storage medium
CN105518709B (en) The method, system and computer program product of face for identification
CN106650662B (en) Target object shielding detection method and device
JP5287333B2 (en) Age estimation device
CN108009466B (en) Pedestrian detection method and device
CN105518711A (en) In-vivo detection method, in-vivo detection system, and computer program product
CN108875546A (en) Face auth method, system and storage medium
US11695903B2 (en) Method for detecting event of object by using wearable device and management server operating same
CN105160739A (en) Automatic identification equipment, automatic identification method and door control system
CN108108711B (en) Face control method, electronic device and storage medium
CN106682607A (en) Offline face recognition system and offline face recognition method based on low-power-consumption embedded and infrared triggering
CN108875495B (en) Person-evidence verification device and person-evidence verification method
CN110443224A (en) Page turning detection method and device, electronic equipment and storage medium
CN108875509A (en) Biopsy method, device and system and storage medium
CN108875556A (en) Method, apparatus, system and the computer storage medium veritified for the testimony of a witness
JP2020526835A (en) Devices and methods that dynamically identify a user's account for posting images
CN108875553A (en) Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified
WO2021082548A1 (en) Living body testing method and apparatus, server and facial recognition device
Ballotta et al. Fully convolutional network for head detection with depth images
CN108875500A (en) Pedestrian recognition methods, device, system and storage medium again
CN108875488B (en) Object tracking method, object tracking apparatus, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication