Testing method and device of face recognition equipment
1. A method for testing a face recognition device is applied to the face recognition device, and comprises the following steps:
after receiving an activation instruction, carrying out Wiegand input/output interface test, wherein the activation instruction is sent by a test terminal connected with the face recognition equipment, and the test terminal generates the activation instruction when determining that the equipment number of the face recognition equipment is correct;
after the Wiegand input/output interface test is passed, acquiring first equipment information of the face recognition equipment from a test terminal connected with the face recognition equipment, and comparing and testing the first equipment information with second equipment information of the face recognition equipment stored in the face recognition equipment;
after the comparison test is passed, the face recognition equipment performs one or more of the following tests through a test fixture plate: switching value, photosensitivity, living body detection or RS485 interface detection, wherein an RS485 interface of the face recognition device is connected with an RS485 interface of the test fixture plate, and a switching value input/output (IO) port of the face recognition device is connected with a general input/output (GPIO) port of the test fixture plate;
and sending the test result to the test terminal.
2. The method of claim 1, wherein the face recognition device performs a switching value test through a test fixture board, comprising:
after a test program is started, controlling the switching value IO port to be in short circuit with the GPIO port of the test jig plate;
and receiving a test result of the switching value, and displaying the test result of the switching value on a user interface, wherein the test result of the switching value is transmitted back to the face recognition device by the test jig board through an RS485 interface of the test jig board and an RS485 interface of the face recognition device.
3. The method of claim 2, wherein the face recognition device performs live body detection through a test fixture plate, comprising:
using a photographing component to snap a human face;
if the face can be captured, determining that the living body detection is passed;
and if the human face cannot be captured, determining that the living body detection fails.
4. The method of claim 3, wherein the face recognition device performs photosensitive detection through a test fixture plate, comprising:
sending a light starting instruction to the test fixture plate through an RS485 interface of the face recognition device;
detecting the change condition of the lamplight through a photosensitive detection device of the face recognition equipment;
when the light is detected to be changed from dark to light, determining that the photosensitive detection is passed;
and when no light change is detected, determining that the photosensitive detection fails.
5. The method according to any of claims 1-4, wherein the face recognition device comprises an automated test mode and a normal mode, wherein the face recognition device defaults to the automated test mode, and wherein the normal mode is automatically entered after the test function is performed in the automated test mode.
6. The method according to any of claims 1-4, wherein the first device information and the second device information each comprise one or more of the following information: time information, a software version of the face recognition device, memory information of the face recognition device, and sensor information of the face recognition device.
7. The testing method of the face recognition device is characterized by being applied to a testing jig plate, wherein the testing jig plate comprises an RS485 interface and a general purpose input/output (GPIO) port, the RS485 interface of the testing jig plate is connected with the RS485 interface of the face recognition device, and the GPIO port of the testing jig plate is connected with a switching value input/output (IO) port of the face recognition device; the method comprises the following steps:
through GPIO mouth and the RS485 interface of test fixture board are right test face identification equipment carries out switching value, photosensitive test or RS485 interface test, include:
and sending the test data to the face recognition equipment through the RS485 interface of the test fixture plate, so that the face recognition equipment tests the RS485 interface according to whether the test data is received.
8. A kind of testing device of the face identification equipment, characterized by, apply to the face identification equipment, comprising:
the activation module is used for carrying out Wiegand input and output interface test after receiving an activation instruction, the activation instruction is sent by a test terminal connected with the face recognition equipment, and the test terminal generates the activation instruction when the equipment number of the face recognition equipment is determined to be correct;
the first testing module is used for acquiring first equipment information of the face recognition equipment from a testing terminal connected with the face recognition equipment after the Wiegand input/output interface test is passed, and comparing and testing the first equipment information with second equipment information of the face recognition equipment stored in the face recognition equipment;
the second testing module is used for carrying out one or more of the following tests on the face recognition equipment through the testing jig plate after the comparison test is passed: switching value, photosensitivity, living body detection or RS485 interface detection, wherein an RS485 interface of the face recognition device is connected with an RS485 interface of the test fixture plate, and a switching value input/output (IO) port of the face recognition device is connected with a general input/output (GPIO) port of the test fixture plate;
and the sending module is used for sending the test result to the test terminal.
9. The testing device of the face recognition equipment is characterized by being applied to a testing jig plate, wherein the testing jig plate comprises an RS485 interface and a general purpose input/output (GPIO) port, the RS485 interface of the testing jig plate is connected with the RS485 interface of the face recognition equipment, and the GPIO port of the testing jig plate is connected with a switching value input/output (IO) port of the face recognition equipment; the device comprises:
the detection module is used for carrying out switching value and photosensitive test or RS485 interface test on the tested face recognition device through the GPIO port and the RS485 interface of the test jig plate;
and the sending module is used for sending the test data to the face recognition equipment through the RS485 interface of the test fixture plate, so that the face recognition equipment carries out the test of the RS485 interface according to whether the test data is received or not.
10. A face recognition device comprising a memory for storing instructions, a processor and a transceiver for communicating with other devices, the processor being configured to execute the instructions stored in the memory to cause the face recognition device to perform a method of testing the face recognition device as claimed in any one of claims 1 to 6.
11. A computer-readable storage medium having computer-executable instructions stored therein, which when executed, cause a computer to perform a method of testing a face recognition device as claimed in any one of claims 1 to 6.
12. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the method of testing a face recognition device according to any one of claims 1 to 6.
Background
Face recognition is a biometric technique for identifying an identity based on facial feature information of a person. A series of related technologies, also commonly referred to as face recognition and face recognition, are used to capture an image or video stream containing a human face with a camera or a camera assembly, and automatically detect and track the human face in the image, thereby performing face recognition on the detected human face.
The face recognition equipment is common equipment based on face recognition technology in the prior art, is often used as the aspects of entrance guard, attendance checking and the like, and is widely applied. When the face recognition device is used daily, the function of the face recognition device needs to be tested, for example, the hardware, the interface, the snapshot function, and the like of the face recognition device are tested. However, in the prior art, functional tests of the face recognition device are all completed step by manual work, so that the problems of complicated steps, high cost, high error rate and the like exist in the prior art for testing the face recognition device.
In summary, how to solve the problems of complicated steps, high cost, high error rate and the like existing in the prior art when the face recognition device is tested still needs to be considered.
Disclosure of Invention
The application provides a method and a device for testing face recognition equipment, which are used for solving the problems of complex steps, high cost, high error rate and the like when the face recognition equipment is tested in the prior art.
In one aspect, the present application provides a method for testing a face recognition device, which is applied to the face recognition device, and the method includes:
after receiving an activation instruction, carrying out Wiegand input/output interface test, wherein the activation instruction is sent by a test terminal connected with the face recognition equipment, and the test terminal generates the activation instruction when determining that the equipment number of the face recognition equipment is correct;
after the Wiegand input/output interface test is passed, acquiring first equipment information of the face recognition equipment from a test terminal connected with the face recognition equipment, and comparing and testing the first equipment information with second equipment information of the face recognition equipment stored in the face recognition equipment;
after the comparison test is passed, the face recognition equipment performs one or more of the following tests through a test fixture plate: switching value, photosensitivity, living body detection or RS485 interface detection, wherein an RS485 interface of the face recognition device is connected with an RS485 interface of the test fixture plate, and a switching value input/output (IO) port of the face recognition device is connected with a general input/output (GPIO) port of the test fixture plate;
and sending the test result to the test terminal.
In one embodiment, the switching value test of the face recognition device by the test fixture plate includes:
after a test program is started, controlling the switching value IO port to be in short circuit with the GPIO port of the test jig plate;
and receiving a test result of the switching value, and displaying the test result of the switching value on a user interface, wherein the test result of the switching value is transmitted back to the face recognition device by the test jig board through an RS485 interface of the test jig board and an RS485 interface of the face recognition device.
In one embodiment, the face recognition device performs living body detection through a test fixture plate, and includes:
using a photographing component to snap a human face;
if the face can be captured, determining that the living body detection is passed;
and if the human face cannot be captured, determining that the living body detection fails.
In one embodiment, the face recognition device performs photosensitive detection through a test fixture plate, and includes:
sending a light starting instruction to the test fixture plate through an RS485 interface of the face recognition device;
detecting the change condition of the lamplight through a photosensitive detection device of the face recognition equipment;
when the light is detected to be changed from dark to light, determining that the photosensitive detection is passed;
and when no light change is detected, determining that the photosensitive detection fails.
In one embodiment, the face recognition device includes an automatic test mode and a normal mode, the face recognition device is in the automatic test mode by default, and after a test function is executed in the automatic test mode, the face recognition device automatically enters the normal mode.
In one embodiment, the first device information and the second device information each include one or more of the following information: time information, a software version of the face recognition device, memory information of the face recognition device, and sensor information of the face recognition device.
On the other hand, the application provides a testing method of the face recognition device, which is applied to a testing jig board, wherein the testing jig board comprises an RS485 interface and a general purpose input/output (GPIO) port, the RS485 interface of the testing jig board is connected with the RS485 interface of the face recognition device, and the GPIO port of the testing jig board is connected with a switching value input/output (IO) port of the face recognition device; the method comprises the following steps:
through GPIO mouth and the RS485 interface of test fixture board are right test face identification equipment carries out switching value, photosensitive test or RS485 interface test, include:
and sending the test data to the face recognition equipment through the RS485 interface of the test fixture plate, so that the face recognition equipment tests the RS485 interface according to whether the test data is received.
On the other hand, the application provides a testing arrangement of face identification equipment, is applied to face identification equipment, includes:
the activation module is used for carrying out Wiegand input and output interface test after receiving an activation instruction, the activation instruction is sent by a test terminal connected with the face recognition equipment, and the test terminal generates the activation instruction when the equipment number of the face recognition equipment is determined to be correct;
the first testing module is used for acquiring first equipment information of the face recognition equipment from a testing terminal connected with the face recognition equipment after the Wiegand input/output interface test is passed, and comparing and testing the first equipment information with second equipment information of the face recognition equipment stored in the face recognition equipment;
the second testing module is used for carrying out one or more of the following tests on the face recognition equipment through the testing jig plate after the comparison test is passed: switching value, photosensitivity, living body detection or RS485 interface detection, wherein an RS485 interface of the face recognition device is connected with an RS485 interface of the test fixture plate, and a switching value input/output (IO) port of the face recognition device is connected with a general input/output (GPIO) port of the test fixture plate;
and the sending module is used for sending the test result to the test terminal.
On the other hand, the application provides a testing device of a face recognition device, which is applied to a testing jig plate, wherein the testing jig plate comprises an RS485 interface and a general purpose input/output (GPIO) port, the RS485 interface of the testing jig plate is connected with the RS485 interface of the face recognition device, and the GPIO port of the testing jig plate is connected with a switching value input/output (IO) port of the face recognition device; the device comprises:
the detection module is used for carrying out switching value and photosensitive test or RS485 interface test on the tested face recognition device through the GPIO port and the RS485 interface of the test jig plate;
and the sending module is used for sending the test data to the face recognition equipment through the RS485 interface of the test fixture plate, so that the face recognition equipment carries out the test of the RS485 interface according to whether the test data is received or not.
In another aspect, the present application provides a face recognition device, including a memory, a processor and a transceiver, where the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, so that the face recognition device executes the method for testing the face recognition device according to the first aspect.
In another aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the instructions are executed, the instructions cause a computer to execute the method for testing the face recognition device according to the first aspect.
In another aspect, the present application provides a computer program product comprising a computer program, which when executed by a processor, implements the method for testing a face recognition device according to the first aspect.
The method for testing the face recognition equipment is applied to the face recognition equipment, if the equipment number is correct and the Wiegand input/output interface test is passed, the second equipment information stored in the tested face recognition equipment is compared with the first equipment information stored in the test terminal for testing, namely software information of the tested face recognition equipment is compared and tested, after the comparison test is passed, the face recognition equipment performs multiple tests on the face recognition equipment through the test jig board, the multiple tests comprise one or more tests of Wiegand output test, switching value test, photosensitive test and living body detection, after the multiple tests are completed, the face recognition equipment sends test results to the test terminal, and the test terminal performs recording and storing. The method provided by the application can activate the automatic test program of the face recognition device through the device number, so that the software information and the hardware information of the face recognition device are tested, the manual test of testers is not needed, and the problems of complex steps, high cost, high error rate and the like existing in the prior art when the face recognition device is tested are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario of a detection method of a face recognition device according to the present application.
Fig. 2 is a schematic flowchart of a testing method of a face recognition device according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of a testing method of a face recognition device according to a second embodiment of the present application.
Fig. 4 is a schematic flow chart of a testing method of a face recognition device according to a third embodiment of the present application.
Fig. 5 is a schematic flow chart of a testing method of a face recognition device according to the fourth embodiment of the present application.
Fig. 6 is a schematic diagram of a testing apparatus of a face recognition device according to a fifth embodiment of the present application.
Fig. 7 is a schematic diagram of a testing apparatus of a face recognition device according to a sixth embodiment of the present application.
Fig. 8 is a schematic diagram of a face recognition device according to a seventh embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The face recognition device is a device with a face recognition function, and is often used for access control, attendance checking and the like, and when the face recognition device is used in daily life, the function of the face recognition device needs to be tested, for example, the hardware, the interface, the snapshot function and the like of the face recognition device are tested. However, in the prior art, the function test of the face recognition device needs to be completed step by manual work, and the problems of complicated steps, high cost, high error rate and the like exist.
Based on this, the present application provides a testing method of a face recognition device, which is applied to a face recognition device, as shown in fig. 1, the face recognition device may include a recognition device body, a display screen, an Integrated Circuit Card (IC for short) reader/writer, a photographing component, a photosensitive component, an interface component, a motherboard module, and the like. The right side of fig. 1 shows a test terminal of the face recognition device, which can be communicatively connected to the face recognition device through a router or a switch, for example, the test terminal is a terminal device such as a computer or a mobile phone. The test terminal stores device information of the face recognition device, where the device information includes hardware information such as sensor information and chip capacity information of the face recognition device, and also includes software information such as software version information and time information of the face recognition device.
Still be provided with the test smelting tool board between this face identification equipment and this test terminal, this test smelting tool board and this face identification equipment and this test terminal all communication connection. And after the test terminal tests the face recognition equipment according to the stored equipment information of the face recognition equipment, the test jig plate detects the photosensitive component or the interface component of the face recognition equipment, and transmits the detection result to the test terminal for storage. After the face recognition device is activated by a test program through an equipment number (ID) recognition tool, the test terminal and the test jig board automatically test the face recognition device without manual intervention, so that the problems of complicated steps, high cost, high error rate and the like existing in the prior art when the face recognition device is tested are solved.
Specifically, referring to fig. 2, an embodiment of the present application provides a method for testing a face recognition device, which is applied to the face recognition device shown in fig. 1, and the method for testing the face recognition device includes:
s210, after receiving an activation instruction, testing a Wiegand input/output interface, wherein the activation instruction is sent by a test terminal connected with the face recognition device, and the test terminal generates the activation instruction when determining that the device number of the face recognition device is correct.
When the face recognition device (gate device) is successfully connected with the network, the face recognition device prompts that the tool connection is normal to indicate that the wired network connection is normal.
The present device number refers to the ID of the face recognition device itself, i.e., the device ID of the gate device. And scanning a code input device ID number on a test tool of the test terminal, namely scanning the code to input the device number. And when the equipment number is consistent with the equipment number stored in the test terminal, the test terminal generates an activation instruction and sends the activation instruction to the face recognition equipment so as to activate a test program of the face recognition equipment.
Optionally, a correct device number may be pre-stored in the test terminal, and the correct device number may include one number or multiple numbers. The test terminal can perform verification and identification on the device number obtained by code scanning, and if the device number is correct, step S202 is executed.
And if the number of the device is wrong or the test terminal cannot read the number of the device, the test program of the face recognition device cannot be activated.
When the number of the device is wrong, the tester needs to replace the tested face recognition device until the number of the replaced face recognition device is the same as the number of the device stored in the test terminal.
The Wiegand input/output interface test and the Wiegand input/output interface function test of the face recognition equipment, namely the face recognition equipment sends a code through the Wiegand output interface and transmits the code to the face recognition equipment through the Wiegand input interface. If the face recognition equipment can detect an accurate code on the Wiegand input interface, the Wiegand input and the Wiegand output of the face recognition equipment are normal.
S220, after the Wiegand input/output interface test is passed, first equipment information of the face recognition equipment is obtained from a test terminal connected with the face recognition equipment, and the first equipment information is compared with second equipment information of the face recognition equipment stored in the face recognition equipment for testing.
The first device information of the face recognition device stored in the test terminal at least includes preset sensor information, software version, memory information and time information of the face recognition device, and the first device information can be manually input into the test terminal. Such as the model, specification and configuration of the optical sensor on the face recognition device. Such as a version of software for face recognition or other software installed on the face recognition device. The memory information includes, for example, information such as a model, a specification, a configuration, and a storage capacity of a memory on the face recognition device, where the storage capacity may be understood as an actual capacity of a main board memory of the face recognition device. Because each face recognition device is different, the test terminal can store first device information corresponding to different face recognition devices.
Optionally, the second device information of the face recognition device may include current sensor information, software version information, memory information, and time information of the face recognition device.
If the current sensor information of the face recognition device is the same as the sensor information in the first device information, information similar to a sensor PASS is displayed on a user interface of the face recognition device, so that a tester knows that the current sensor information of the face recognition device is the same as the preset sensor information on the face recognition device. If the current sensor information of the face recognition device is different from the sensor information in the first device information, information similar to 'sensor NG' is displayed on a user interface of the face recognition device, so that a tester knows that the current sensor information of the face recognition device is different from the preset sensor information on the face recognition device.
Similar to the comparison of the sensor information, when the current software version information, or the memory information or the time information of the face recognition device is respectively the same as the software version information, the memory information or the time information in the first device information, information similar to the software version PASS, or the memory information PASS, or the time information PASS is displayed on the user interface of the face recognition device. The tester knows that the current software version information, or the memory information, or the time information of the face recognition device is the same as the preset software version information, or the memory information, or the time information of the face recognition device.
If the current software version information, or the memory information, or the time information of the face recognition device is different from the software version information, or the memory information, or the time information in the first device information, respectively, information similar to the software version NG, or the memory information NG, or the time information NG is displayed on the user interface of the face recognition device. The tester knows that the current software version information, or the memory information, or the time information of the face recognition device is different from the preset software version information, or the memory information, or the time information of the face recognition device.
The time information is different from that of the face recognition device, for example, the time information currently displayed by the face recognition device is 15 minutes 31 seconds at 1 month and 3 days at 2021 year, but the time information preset in the first device information and currently displayed by the face recognition device is 18 minutes 10 seconds at 1 month and 4 days at 2021 year. The time information is the same, namely the time displayed by the face recognition device at the current moment is the same as the time displayed by the test terminal, and is 18 minutes and 10 seconds at 1 month and 4 days of 2021 year.
S230, after the comparison test is passed, the face recognition equipment carries out one or more of the following tests through the test jig plate: switching value, photosensitive, live body detection or RS485 interface detection, wherein, the RS485 interface of this face identification equipment and the RS485 interface connection of this test smelting tool board, the switching value input/output IO mouth and the general input/output GPIO mouth of this test smelting tool board of this face identification equipment are connected.
The comparison test is passed, that is, the first device information and the second device information are identical/matched after comparison, and at the moment, the face recognition device outputs the recognized device number to the test jig plate.
The testing of the switching value may include: the testing program of the face recognition equipment automatically sends out an instruction to control the on-off output relay to be closed. After the relay of the face recognition device is sucked, the GPIO port on the test jig plate is in short circuit connection, and then whether the switching value interface of the face recognition device acts or not is judged. And at the moment, if the switching value interface has action, the switching value interface of the face recognition equipment is proved to be normal, and if the switching value interface does not have action, the switching value interface of the face recognition equipment is proved to be abnormal. When the switching value of the face recognition device is normal, information similar to 'PASS' is displayed on a user interface of the face recognition device. When the switching value of the face recognition device is abnormal, information similar to 'NG' is displayed on the user interface of the face recognition device at the moment.
The photosensitive test is not influenced by the test of the RS485 interface of the face recognition device and the test of the second device information of the face recognition device.
The testing of photosensitivity may include: this face identification equipment sends light through this face identification equipment's RS485 interface to this test smelting tool board and opens the instruction for white light lamp on this test smelting tool board of this test smelting tool board control is opened, at this moment, if photosensitive detection device on this face identification equipment can normal use, this photosensitive detection device can sense light intensity and become by low height, this photosensitive detection device detects light promptly and becomes bright by dark, show the information of similar "photosensitive PASS" on this moment this face identification equipment's the user interface. If the photosensitive property of the face recognition equipment cannot be used normally, the photosensitive property cannot sense that the light intensity is changed from low to high, namely the photosensitive detection device detects that the light is unchanged, and at the moment, information similar to 'photosensitive NG' is displayed on a user interface of the face recognition equipment.
The in vivo test may include: the face recognition equipment acquires face data through a photographing component (an infrared camera and a color camera) for comparison, and after the face recognition equipment successfully compares the face data through the face, information similar to living body detection PASS is displayed on a user interface of the face recognition equipment. And if the photographing component of the face recognition device cannot snap the face or the face comparison is unsuccessful, displaying information similar to 'live detection NG' on a user interface of the face recognition device.
This RS485 interface detects includes: and if the face recognition equipment tests that data exist in the switching value interface and are transmitted back to the face recognition equipment, the face recognition equipment displays an RS485 interface PASS. And if the switching value interface has no data to return, the face recognition equipment displays an RS485 interface NG.
And S240, sending the test result to the test terminal.
The test result includes all the tests detected in step S230, and if the switching value, the light sensitivity, the in-vivo test, and the RS485 interface are all tested in step S230, the test result includes the test result of the switching value, the light sensitivity, the in-vivo test, and the RS485 interface.
The testing terminal can input a set order number, a software version number required by an order, a tester name and the like, wherein the order number is the order number of a client who needs to test the face recognition device to place an order. The order number is associated with a plurality of face recognition devices to be tested, and all face recognition devices to be tested which are related to the order made by the client can be inquired through the order number.
In an alternative embodiment, the test terminal stores the test result in a test log format, in which the name, date of birth, etc. of the tester conducting the test on the current day may be recorded, for example, lie certain 2020-03-20. The number of face recognition devices tested today, order numbers related to the face recognition devices, ID numbers of each face recognition device, comparison results of software version numbers of each face recognition device, Wiegand input test results, Wiegand output test results, IO switch quantity test results, photosensitive test results, test results of living body detection and the like can also be recorded. The captured face pictures may also be named with a device ID, such as 13XXX, to form traceable document retention test data. When the test results of all the face recognition devices associated with a certain order number need to be inquired, only the order number needs to be input on the test terminal. Therefore, when the test terminal is selected, the test terminal needs to simultaneously support the simultaneous testing of a plurality of face recognition devices and record the test results of the plurality of face recognition devices.
The face recognition device comprises an automatic test mode and a normal mode, the face recognition device is in the automatic test mode by default, and the face recognition device automatically enters the normal mode after a test function is executed in the automatic test mode. Under the normal mode, the face recognition equipment can recognize the captured face image, if the face image recognition is not passed, the gate on the face recognition equipment is not opened, the detected person can not pass, and if the face image recognition is passed, the gate on the face recognition equipment is opened to enable the detected person to pass.
Optionally, the function test of the fire alarm interface, the function test of the door magnet interface, the function test of the door opening interface and the anti-dismantling function test can also be realized.
The function test of the fire alarm interface comprises the following steps: this face identification equipment sends the instruction through the RS485 interface and gives this test smelting tool board for the relay actuation of test smelting tool board, with the fire alarm signal who draws down this face identification equipment, this face identification equipment is through the high low level change back that detects the RS485 interface, shows NG still PASS.
The door magnetic interface function test comprises the following steps: this face identification equipment sends the instruction through the RS485 interface and gives test jig board for the relay actuation of test jig board to draw down this face identification equipment's door magnetic signal, this face identification equipment is through the high-low level change back that detects the RS485 interface, shows NG still PASS.
The function test of the door opening interface comprises the following steps: this face identification equipment sends the instruction through the RS485 interface and gives test jig board for the relay actuation of test jig board, with the door opening signal who draws down this face identification equipment, this face identification equipment is through the high-low level change back that detects the RS485 interface, shows NG still PASS.
The anti-disassembly function test comprises the following steps: after the anti-dismantling key of the face recognition device is manually pressed, the anti-dismantling signal of the face recognition device is changed from high to low, and the face recognition device detects the anti-dismantling signal by itself and displays NG or PASS.
The method for testing the face recognition device provided by this embodiment is applied to a face recognition device, if the device number is correct and the wiegand input/output interface test is passed, the second device information stored in the tested face recognition device is compared with the first device information stored in the test terminal for testing, that is, software information of the tested face recognition device is compared and tested, after the comparison and test are passed, the face recognition device performs multiple tests on the face recognition device through the test fixture board, the multiple tests include one or more of a wiegand output test, a switching value test, a photosensitive test and a living body detection test, after the multiple tests are completed, the face recognition device sends test results to the test terminal, and the test terminal performs recording and storing. The method provided by the embodiment can activate the automatic test program of the face recognition device through the device number, so that the software information and the hardware information of the face recognition device are tested, a tester does not need to perform manual test, and the problems of complicated steps, high cost, high error rate and the like existing in the prior art when the face recognition device is tested are solved.
Referring to fig. 3, a second embodiment of the present application provides a method for testing a face recognition device based on the first embodiment, which is applied to the face recognition device, and includes:
s310, after receiving an activation instruction, testing the Wiegand input and output interface, wherein the activation instruction is sent by a test terminal connected with the face recognition device, and the test terminal generates the activation instruction when the device number of the face recognition device is determined to be correct.
For the related description of step S310, reference may be made to the related description of step S210, and details are not repeated here.
And S320, after the Wiegand input/output interface test is passed, acquiring first equipment information of the face recognition equipment from a test terminal connected with the face recognition equipment, and comparing and testing the first equipment information with second equipment information of the face recognition equipment stored in the face recognition equipment.
For the related description of step S320, reference may be made to the related description of step S220 in an embodiment, and details are not repeated here.
And S330, after the test program is started, controlling the switching value IO port to be in short circuit with the GPIO port of the test fixture plate, receiving the test result of the switching value, and displaying the test result of the switching value on a user interface, wherein the test result of the switching value is transmitted back to the face recognition device by the test fixture plate through the RS485 interface of the test fixture plate and the RS485 interface of the face recognition device.
For the description related to step S330, reference may be made to the description related to the switching value test in step S230, and details are not repeated here.
And S340, sending the test result to the test terminal.
In the description of step S240, after receiving the test result output by the wiegand and the test result of the switch amount, the test terminal saves the test result output by the wiegand and the test result of the switch amount in the format of the test log.
The testing method of the face recognition device provided by the embodiment is applied to the face recognition device, after the wiegand input/output interface passes the test, the comparison test is performed on the second device information of the face recognition device, and after the comparison test of the second device information passes the test, the face recognition device performs the switching value test of the face recognition device through the test jig plate, so that whether the RS485 interface of the face recognition device can be normally used is verified. The method provided by the embodiment can activate the automatic test program of the face recognition device through the device number, so that the software information and the interface information of the face recognition device are tested without manual testing by testers, and the problems of complicated steps, high cost, high error rate and the like existing in the prior art when the face recognition device is tested are solved.
Referring to fig. 4, on the basis of the first embodiment or the second embodiment, a third embodiment of the present application further provides a method for testing a face recognition device, including:
s410, after receiving an activation instruction, testing a Wiegand input/output interface, wherein the activation instruction is sent by a test terminal connected with the face recognition device, and the test terminal generates the activation instruction when determining that the device number of the face recognition device is correct.
For the related description of step S410, reference may be made to the related description of step S210 in the first embodiment, and details are not repeated here.
And S420, after the Wiegand input/output interface passes the test, using the photographing component to snap the face, if the face can be snapped, determining that the living body detection passes, and if the face cannot be snapped, determining that the living body detection fails.
The description related to step S420 may refer to the description related to the living body detection in step S230, and will not be described herein.
And S430, sending a light starting instruction to the test jig plate through an RS485 interface of the face recognition device.
And S440, detecting the change condition of the light through a photosensitive detection device of the face recognition equipment.
And S450, determining that the photosensitive detection is passed after the light is detected to be changed from dark to light, and determining that the photosensitive detection is failed when no light is detected to be changed.
The description about the steps S430 to S450 can refer to the description about the photosensitive test in the step S230 in the first embodiment, and the photosensitive test is not affected by the test of the RS485 interface of the face recognition device and is not affected by the test of the second device information of the face recognition device. If the photosensitive detection device of the face recognition equipment can be normally used, the photosensitive detection device can sense that the light intensity is changed from low to high, and at the moment, information similar to photosensitive PASS is displayed on the user interface of the face recognition equipment. If the photosensitive detection device of the face recognition equipment cannot be used normally, the photosensitive detection device cannot sense that the light intensity is changed from low to high, and at the moment, information similar to 'photosensitive NG' is displayed on the user interface of the face recognition equipment.
And S460, sending the test result to the test terminal.
For the related description of step S460, reference may be made to the related description of step S240 in the first embodiment, and details are not repeated here.
The testing method for the face recognition device provided by this embodiment may perform comparison testing on software information of the face recognition device after a user activates a testing program of the face recognition device through the device number, and after the comparison testing is passed, may also perform testing on wiegand output, switching value, photosensitive detection device, and living body detection of the face recognition device, respectively, and output a testing result to a testing terminal for storage. The method for testing the face recognition device provided by the embodiment solves the problems of complex steps, high cost, high error rate and the like when the face recognition device is tested in the prior art.
Referring to fig. 5, a fourth embodiment of the present application provides a testing method for a face recognition device, which is applied to a testing jig board, where the testing jig board includes an RS485 interface and a GPIO interface, where the RS485 interface of the testing jig board is connected to the RS485 interface of the face recognition device, and the GPIO interface of the testing jig board is connected to the IO interface of the face recognition device, and the method includes:
s510, GPIO port and RS485 interface through this test fixture board carry out switching value, photosensitive test or RS485 interface test to this test face identification equipment, include:
s520, sending the test data to the face recognition device through the RS485 interface of the test jig plate, and enabling the face recognition device to test the RS485 interface according to whether the test data is received or not.
The test of the RS485 interface is to judge whether data is transmitted back to the switching value. If data are returned, namely the face recognition equipment receives the test data, the RS485 interface is proved to be normal. And if the face recognition equipment does not receive the test data, the RS485 interface is proved to be abnormal.
The testing of the switching value specifically comprises the following steps:
the testing program of the face recognition equipment automatically sends out an instruction to control the on-off output relay to be closed. After the relay of the face recognition device is sucked, the GPIO port on the test jig plate is in short circuit connection, and then whether the switching value interface of the face recognition device acts or not is judged. And at the moment, if the switching value interface has action, the switching value interface of the face recognition equipment is proved to be normal, and if the switching value interface does not have action, the switching value interface of the face recognition equipment is proved to be abnormal. When the switching value of the face recognition device is normal, information similar to 'PASS' is displayed on a user interface of the face recognition device. When the switching value of the face recognition device is abnormal, information similar to 'NG' is displayed on the user interface of the face recognition device at the moment.
The photosensitive test is not influenced by the test of the RS485 interface of the face recognition device and the test of the second device information of the face recognition device. The photosensitive test specifically comprises: the light that this test smelting tool board received this face identification equipment and sent through this face identification equipment's RS485 interface is opened the instruction, and open the white light lamp on the instruction control this test smelting tool board according to this light and open, at this moment, if photosensitive detection device on this face identification equipment can normal use, this photosensitive detection device can sense light intensity and become by low height, this photosensitive detection device detects light and becomes bright by dark promptly, show the information of similar "photosensitive PASS" on this moment this face identification equipment's the user interface. If the photosensitive property of the face recognition equipment cannot be used normally, the photosensitive property cannot sense that the light intensity is changed from low to high, namely the photosensitive detection device detects that the light is unchanged, and at the moment, information similar to 'photosensitive NG' is displayed on a user interface of the face recognition equipment.
The face recognition device is connected with the local area network in parallel, the face recognition device can be communicated with the test terminal of the face recognition device through the router or the switch, the test result of the switching value, the result of the photosensitive test and the test result of the RS485 interface are uploaded to the test terminal, and the test terminal stores the test result in a test log format.
Referring to fig. 6, a fifth embodiment of the present application provides a testing apparatus 10 for a face recognition device, which is applied to the face recognition device, and includes:
and the activation module 11 is used for carrying out a wiegand input/output interface test after receiving an activation instruction, wherein the activation instruction is sent by a test terminal connected with the face recognition device, and the test terminal generates the activation instruction when determining that the device number of the face recognition device is correct.
The first testing module 12 is configured to, after the wiegand input/output interface test is passed, obtain first device information of the face recognition device from a testing terminal connected to the face recognition device, and perform a comparison test on the first device information and second device information of the face recognition device stored in the face recognition device.
The second testing module 13 is configured to, after the comparison test is passed, perform one or more of the following tests on the face recognition device through the testing jig board: switching value, photosensitive, live body detection or RS485 interface detection, wherein, the RS485 interface of this face identification equipment and the RS485 interface connection of this test fixture board, the switching value input/output IO mouth and the general input/output GPIO mouth of this test fixture board of this face identification equipment are connected.
The second test module 13 is specifically configured to control the switching value IO port to short-circuit the GPIO port of the test fixture board after starting the test program; and receiving a test result of the switching value, and displaying the test result of the switching value on a user interface, wherein the test result of the switching value is transmitted back to the face recognition device by the test jig board through an RS485 interface of the test jig board and an RS485 interface of the face recognition device, and the switching value is obtained by the test jig board according to the level change of the GPIO port.
The second testing module 13 is specifically configured to use a photographing component to capture a human face; if the face can be captured, determining that the living body detection is passed; and if the human face cannot be captured, determining that the living body detection fails. The second testing module 13 is specifically configured to send a light turn-on instruction to the testing jig board through an RS485 interface of the face recognition device; detecting the change condition of the lamplight through a photosensitive detection device of the face recognition equipment; when the light is detected to be changed from dark to light, determining that the photosensitive detection is passed; and when no light change is detected, determining that the photosensitive detection fails.
And a sending module 14, configured to send the test result to the test terminal.
The face recognition device comprises an automatic test mode and a normal mode, the face recognition device is in the automatic test mode by default, and after the test function is executed in the automatic test mode, the face recognition device automatically enters the normal mode. The first device information and the second device information each include one or more of the following information: time information, a software version of the face recognition device, memory information of the face recognition device, and sensor information of the face recognition device.
Referring to fig. 7, a sixth embodiment of the present application provides a testing apparatus 20 for a face recognition device, which is applied to a testing jig board, where the testing jig board includes an RS485 interface and a GPIO interface, where the RS485 interface of the testing jig board is connected to the RS485 interface of the face recognition device, and the GPIO interface of the testing jig board is connected to the IO interface of the face recognition device; the apparatus 20 comprises:
the detection module 21 is used for carrying out switching value and photosensitive test or RS485 interface test on the tested face recognition device through the GPIO port and the RS485 interface of the test jig plate;
and the sending module 22 is configured to send the test data to the face recognition device through the RS485 interface of the test fixture board, so that the face recognition device performs the test of the RS485 interface according to whether the test data is received.
Referring to fig. 8, a seventh embodiment of the present application further provides a face recognition device 30, which includes a memory 31, a processor 32 and a transceiver 33, where the memory 31 is used to store instructions, the transceiver 33 is used to communicate with other devices, and the processor 32 is used to execute the instructions stored in the memory 31, so that the face recognition device executes the method for testing the face recognition device provided in the first to third embodiments, and specific implementation and technical effects are similar and are not described herein again.
The present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the instructions are executed, the computer-executable instructions are executed by a processor to implement the method for testing the face recognition device provided in the first to third embodiments, where specific implementation manners and technical effects are similar, and are not described herein again.
The present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for testing the face recognition device according to the first to third embodiments is implemented, and the specific implementation manner and the technical effect are similar, and are not described herein again.
The computer-readable storage medium may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM). And may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种基于ATE芯片测试的同步方法和系统