Test method, device, face recognition module, electronic device and storage medium

By using the NFS server to obtain the test data set during the face recognition module test and using serial port communication and multi-process processing, the problem of data loss caused by frequent plugging and unplugging of mobile memories was solved, the stability and efficiency of the test were improved, and rapid A function that reflects the effect of the model.

CN113821392BActive Publication Date: 2024-09-17BEIJING ZHONGSHENG HEYUAN INTELLIGENT TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111122826.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-09-17
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

In the existing face recognition module testing method, frequent plugging and unplugging of mobile memories can easily lead to data loss and affect test efficiency.

Method used

Obtain the test data set through the Network File System (NFS) server, avoid using mobile storage for testing, use serial communication to interact with the face recognition module, and use multi-process processing to execute test processing in parallel.

Benefits of technology

It improves the stability and efficiency of face recognition module testing, avoids data loss due to damage to mobile memory, and can quickly reflect the test results of the model for easy adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821392B
    Figure CN113821392B
Patent Text Reader

Abstract

The embodiment of the present application provides a test method, device, face recognition module, electronic device and storage medium, the test method includes: receiving a first test start instruction, the first test start instruction carries a first data set address and a first test type; obtaining at least one face test data set corresponding to the first test type from an NFS server according to the first data set address, the at least one face test data set corresponding to the first test type includes a first face test data set, the first face test data set includes at least one first test data; performing a first test process corresponding to the first test type on the first test data through a first model to obtain a first test result, the first test result is used to reflect the test effect of the first model, the first test result includes: at least one of test accuracy, test duration, and misrecognition rate. The embodiment of the present application can improve the test efficiency of smart door locks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and specifically to a testing method, device, face recognition module, electronic device and storage medium. Background Art

[0002] As face recognition technology becomes increasingly popular in smart door locks, more and more door lock manufacturers are launching face recognition smart door locks, which enable contactless door opening experience and improve the safety and convenience of door locks. In order to verify whether the face recognition function of the face recognition module of the smart door lock meets the requirements, it is necessary to test the face recognition function of the face recognition module.

[0003] The data set used to test the face recognition module often occupies a large storage space. The current verification of the face recognition module requires putting the test data set into a mobile storage device (such as a USB flash drive) and inserting the mobile storage device into the smart door lock to test the face recognition module. However, if the mobile storage device is plugged in and out many times, it is easy to cause damage, resulting in data loss in the test data set, thus affecting the test efficiency. Summary of the invention

[0004] The embodiments of the present application provide a testing method, an apparatus, a face recognition module, an electronic device and a storage medium, which can improve the testing efficiency of the face recognition module.

[0005] A first aspect of an embodiment of the present application provides a testing method, which is applied to a smart door lock and includes:

[0006] receiving a first test start instruction, wherein the first test start instruction carries a first data set address and a first test type;

[0007] Acquire at least one face test data set corresponding to the first test type from a network file system NFS server according to the first data set address, wherein the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data;

[0008] A first test result is obtained by performing a first test process corresponding to the first test type on the first test data through a first model. The first test result is used to reflect the test effect of the first model. The first test result includes at least one of test accuracy, test duration, and misrecognition rate.

[0009] Among them, when the smart door lock is tested, at least one face test data set corresponding to the first test type can be obtained from the server, so as to test and process the test data in the face test data set. Compared with the test using a USB flash drive, storing the face test set data in the server can avoid the situation where the face test data set is lost due to damage caused by multiple plugging and unplugging of the USB flash drive, thereby improving the test efficiency of the face recognition module. The first test result can reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model. The test accuracy rate can reflect the recognition accuracy rate of the model, the test duration can reflect the recognition speed of the model, and the false recognition rate can reflect the recognition error of the model. The tester can use the three dimensions of test accuracy rate, test duration, and false recognition rate as references to evaluate the test effect of the model.

[0010] Optionally, the test processing for the at least one face test data set is performed in parallel through multi-process processing.

[0011] Among them, a multi-process processing method is adopted to test and process at least one face test data set corresponding to the first test type, and multiple face test data sets corresponding to the same test type can be tested and processed in parallel. A test start instruction (first test start instruction) can be responded to to test multiple face test data sets in parallel, and multiple face test data sets corresponding to the same test type can be tested in batches, thereby improving test efficiency.

[0012] Optionally, the method further includes:

[0013] receiving a second test start instruction, wherein the second test start instruction carries a second data set address and a second test type;

[0014] Acquire at least one face test data set corresponding to the second test type from the NFS server according to the second data set address, wherein the at least one face test data set corresponding to the second test type includes a second face test data set, and the second face test data set includes at least one second test data;

[0015] Performing a second test process corresponding to the second test type on the second test data through the second model to obtain a second test result, where the second test result is used to reflect the test effect of the second model;

[0016] The first test process and the second test process are executed in parallel through multi-process processing.

[0017] A multi-process processing method is adopted to test and process the first test data set in at least one face test data set corresponding to the first test type and the second test data set in at least one face test data set corresponding to the second test type. The two face test data sets corresponding to different test types can be tested and processed in parallel. Two test start instructions (a first test start instruction and a second test start instruction) can be responded to and tested in parallel. Two test start instructions can be responded to and tested in batches at the same time, thereby improving the test efficiency.

[0018] Optionally, the receiving a first test start instruction includes:

[0019] A first test start instruction sent by an electronic device is received, and the electronic device communicates with the face recognition module through a serial port communication mode.

[0020] The electronic device communicates with the face recognition module through serial port communication. The electronic device can send a first test start instruction to the face recognition module through serial port communication. The first test start instruction can be sent to the face recognition module through serial port communication. Compared with testing with a USB flash drive, it can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, which makes the USB flash drive unable to issue a test start instruction, thereby improving the stability of the test.

[0021] Optionally, after performing a first test process corresponding to the first test type on the first test data through the first model to obtain a first test result, the method further includes:

[0022] The first test result is uploaded to the electronic device, and the electronic device is used to display the first test result.

[0023] Smart door locks generally do not have displays. By uploading the test results to an electronic device, the test results can be displayed on the display of the electronic device, which makes it convenient for testers to observe the test results and visualize the data.

[0024] A second aspect of an embodiment of the present application provides a testing method, which is applied to an electronic device, wherein the electronic device communicates with at least one face recognition module via a serial communication mode; the method comprises:

[0025] Determine the port number of the face recognition module to be tested;

[0026] Determining a test type of the face recognition module and at least one face test data set;

[0027] A first test start instruction is generated according to the data set address of the test data set and the at least one face test type, and the first test start instruction is sent to the face recognition module corresponding to the port number.

[0028] Electronic devices can communicate with the face recognition module through serial communication. Compared with testing with a USB flash drive, this can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, which may cause the USB flash drive to be unable to issue a test start command, thereby improving the stability of the test.

[0029] Optionally, before determining the test type of the face recognition module and at least one face test data set, the method further includes:

[0030] Obtaining the test requirements of the face recognition module;

[0031] The determining of the test type of the face recognition module and at least one face test data set includes:

[0032] Determine the test type of the face recognition module and at least one face test data set according to the test requirements.

[0033] The embodiment of the present application can determine the test type of the face recognition module and at least one face test data set according to the test requirements, so as to test the face recognition module in a targeted manner.

[0034] Optionally, after sending the first test start instruction to the face recognition module corresponding to the port number, the method further includes:

[0035] Receive the test result for the test type and the at least one face test data set returned by the face recognition module corresponding to the port number, and display the test result.

[0036] Facial recognition modules generally do not have a display. The test results are uploaded to an electronic device and can be displayed on the display of the electronic device, which makes it convenient for testers to observe the test results and visualize the data.

[0037] A third aspect of an embodiment of the present application provides a testing device, which is applied to a face recognition module, and includes:

[0038] A first receiving unit, configured to receive a first test start instruction, wherein the first test start instruction carries a first data set address and a first test type;

[0039] an acquiring unit, configured to acquire, from an NFS server according to the first data set address, at least one face test data set corresponding to the first test type, wherein the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data;

[0040] A testing unit is used to perform a first test process corresponding to the first test type on the first test data through a first model to obtain a first test result, wherein the first test result is used to reflect the test effect of the first model, and the first test result includes at least one of: test accuracy, test duration, and false recognition rate.

[0041] A fourth aspect of an embodiment of the present application provides a testing device, which is applied to an electronic device, wherein the electronic device communicates with at least one face recognition module via a serial communication method; the testing device comprises:

[0042] A determination unit, used to determine the port number of the face recognition module to be tested;

[0043] The determination unit is further used to determine the test type of the face recognition module and at least one face test data set;

[0044] A generating unit, configured to generate a first test start instruction according to a data set address of the at least one face test data set and the test type through a continuous integration tool;

[0045] A sending unit is used to send the first test start instruction to the face recognition module corresponding to the port number.

[0046] The fifth aspect of the embodiments of the present application provides a face recognition module, including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.

[0047] The sixth aspect of an embodiment of the present application provides an electronic device, including a processor and a memory, the memory being used to store a computer program, the computer program including program instructions, the processor being configured to call the program instructions and execute the step instructions in the second aspect of the embodiment of the present application.

[0048] The seventh aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute part or all of the steps described in the first aspect or the second aspect of the embodiments of the present application.

[0049] The eighth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a computer, the computer performs some or all of the steps described in the first aspect or the second aspect of the embodiments of the present application. The computer program product can be a software installation package.

[0050] A ninth aspect of an embodiment of the present application provides a test system, including an electronic device, a plurality of smart door locks with built-in face recognition modules, and an NFS server;

[0051] The electronic device is used to determine the port number of the face recognition module to be tested, determine the test type of the face recognition module and at least one face test data set, generate a first test start instruction according to the data set address of the at least one face test data set and the test type through a continuous integration tool, and send the first test start instruction to the face recognition module corresponding to the port number;

[0052] The face recognition module is used to receive the first test start instruction, obtain at least one face test data set corresponding to the test type from the NFS server according to the data set address, the at least one face test data set corresponding to the test type includes a first face test data set, and the first face test data set includes at least one first test data; perform a first test processing corresponding to the first test type on the first test data through a first model to obtain a first test result, the first test result is used to reflect the test effect of the first model, and the first test result includes: at least one of test accuracy, test duration, and misrecognition rate.

[0053] The test method of the embodiment of the present application is applied to a face recognition module, the face recognition module receives a first test start instruction, the first test start instruction carries a first data set address and a first test type; the face recognition module obtains at least one face test data set corresponding to the first test type from the NFS server according to the first data set address, the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data; the first test data set performs a first test process corresponding to the first test type on the first test data through a first model to obtain a first test result, the first test result is used to reflect the test effect of the first model, and the first test result includes: at least one of the test accuracy, test duration, and false recognition rate. In the embodiment of the present application, when the face recognition module is testing, it can obtain at least one face test data set corresponding to the first test type from the server, thereby testing and processing the test data in the face test data set to obtain a first test result, the first test result can reflect the test effect of the first model, the test effect of the first model can be evaluated according to the first test result, and the adjustment direction of the first model can be determined according to the test effect of the first model, and the first model is adjusted to improve the accuracy of the first model. Compared with testing with a USB flash drive, storing the face test set data in the server can avoid the loss of the face test data set due to damage caused by repeated plugging and unplugging of the USB flash drive, thereby improving the testing efficiency of the face recognition module. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0056] Figure 2 It is a flow chart of a testing method provided in an embodiment of the present application;

[0057] Figure 3 It is a flow chart of another testing method provided in an embodiment of the present application;

[0058] Figure 4 It is a flow chart of another testing method provided in an embodiment of the present application;

[0059] Figure 5This is a schematic diagram of a display interface for selecting a test type and a test data set and constructing a test project provided in an embodiment of the present application;

[0060] Figure 6 is a structural schematic diagram of a testing device provided in an embodiment of the present application;

[0061] Figure 7 is a schematic diagram of the structure of another testing device provided in an embodiment of the present application;

[0062] Figure 8 It is a structural schematic diagram of a smart door lock provided in an embodiment of the present application;

[0063] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0065] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, products or devices.

[0066] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0067] The embodiments of the present application provide a testing method, device, face recognition module, electronic device and storage medium, which can improve the testing efficiency of smart door locks.

[0068] See also Figure 1 , Figure 1 Schematic diagram of a test system provided in an embodiment of the present application. Figure 1 As shown, the system architecture 100 includes an electronic device 100, at least one smart door lock (such as Figure 1 21, 22, ... 2N) and the NFS server 300. The electronic device 100 and the face recognition module can communicate via a serial communication method. The face recognition module and the NFS server 300 can communicate via a wired or wireless method. Figure 1 Each smart door lock can have at least one face recognition module built in.

[0069] The electronic device 100 determines the port number of the face recognition module to be tested; determines the test type and at least one test data set of the face recognition module; generates a first test start instruction according to the data set address of the at least one face test data set and the test type through the continuous integration tool, and sends the first test start instruction to the first smart door lock corresponding to the port number. The face recognition module receives the first test start instruction, obtains at least one face test data set corresponding to the test type from the NFS server 300 according to the data set address, and the at least one face test data set corresponding to the test type includes a first face test data set, and the first face test data set includes at least one first test data; performs a first test process corresponding to the first test type on the first test data through the first model to obtain a first test result, and the first test result is used to reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result, and the adjustment direction of the first model can be determined according to the test effect of the first model, and the first model is adjusted to improve the accuracy of the first model. The first test result includes: at least one of the test accuracy, test duration, and false recognition rate. The test accuracy rate can reflect the recognition accuracy rate of the model, the test duration can reflect the recognition speed of the model, and the false recognition rate can reflect the recognition error of the model. Testers can use the three dimensions of test accuracy rate, test duration, and false recognition rate as references to evaluate the test effect of the model.

[0070] Optionally, the face recognition module uploads the first test result to the electronic device 100, and the electronic device 100 is used to display the first test result. Smart door locks generally do not have a display, and uploading the test result to the electronic device 100 can display the test result through the display of the electronic device 100, which can facilitate the tester to observe the test result and visualize the data.

[0071] Among them, the electronic devices involved in the embodiments of the present application may include devices with computing and communication capabilities, such as personal computers, mobile phones, tablets, etc. A personal computer may also be called a user computer, which may include a desktop computer, a laptop computer, etc. The Network File System (NFS) server involved in the embodiments of the present application may be an NFS server with a data storage function. The smart door lock involved in the embodiments of the present application may be a door lock with a biometric recognition function. The biometric recognition function may include at least one of a face recognition function, an iris recognition function, and a liveness recognition function.

[0072] In an embodiment of the present application, when the face recognition module is testing, it can obtain at least one face test data set corresponding to the first test type from the NFS server, thereby testing and processing the test data in the face test data set to obtain a first test result. The first test result can reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model. Compared with testing with a USB flash drive, storing the face test set data in the NFS server can avoid the situation where the face test data set is lost due to damage caused by multiple plugging and unplugging of the USB flash drive, thereby improving the test efficiency of the face recognition module.

[0073] See also Figure 2 , Figure 2 Schematic diagram of a test method provided in the embodiment of the present application. Figure 2 As shown, the test method is applied to a face recognition module, and the test method may include the following steps.

[0074] 201. A face recognition module receives a first test start instruction, where the first test start instruction carries a first data set address and a first test type.

[0075] In the embodiment of the present application, the face recognition module can receive a first test start instruction sent by the electronic device. The first test start instruction is used to trigger the face recognition module to start a test.

[0076] The first data set address is an address where the data set is stored. The first test type may include a liveness test or a comparison test. The comparison test is used to compare the face information in the captured image with the recorded face information.

[0077] Specifically, the comparison test can be conducted through the comparison model. The comparison model is the comparison of the same person under different circumstances. For example, when registering, the user enters the face registration information of a girl with long hair in the face recognition module. After getting her hair permed three months later, when unlocking the phone, it is necessary to determine whether there are any abnormalities or changes in the facial features. If the hair blocks part of the forehead or eyebrows, it may cause a problem of not being able to pass (unlock failure).

[0078] Comparative testing can be used to test the test effects of the same person in different clothing, hairstyles, makeup, accessories, etc.

[0079] Liveness testing can be used to identify whether the object captured in the image is alive.

[0080] Optionally, in step 201, the face recognition module receives the first test start instruction, which may include the following steps:

[0081] The face recognition module receives a first test start instruction sent by an electronic device, and the electronic device communicates with the face recognition module through a serial port communication method.

[0082] In an embodiment of the present application, the electronic device communicates with the face recognition module via a serial port communication method. The electronic device can send a first test start instruction to the face recognition module via the serial port communication method. The first test start instruction can be issued to the face recognition module via the serial port communication method. Compared with testing with a USB flash drive, this can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, resulting in the USB flash drive being unable to issue a test start instruction, thereby improving the stability of the test.

[0083] 202, the face recognition module obtains at least one face test data set corresponding to the first test type from the NFS server according to the first data set address, the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data.

[0084] In an embodiment of the present application, the NFS server can store a face test data set. The face test data set can be image data. The face test data set can include real-person data collected under different expressions, different accessories, different heights, different genders, different actions, and different lighting conditions; the face test data set is divided into a full data set and a partial verification data set of a certain module (such as a special verification data set for wearing glasses) according to different collection types. The full data set is different from the special verification data set and is a more comprehensive data set. For example, it can include real-person data collected under different expressions, different accessories, different clothing, different actions, and different lighting conditions. The face test data set can be data collected by the camera of a smart door lock.

[0085] The first data set address may include an address in the NFS server storing at least one face test data set corresponding to the first test type. The first face test data set is any one of the at least one test data corresponding to the first test type.

[0086] The at least one face test data set corresponding to the first test type may include one face test data set, or may include two or more face test data sets. When two or more face test data sets are included, the test processing of the two or more face test data sets is performed in parallel through multi-process processing.

[0087] For example, if at least one face test data set corresponding to the first test type includes three face test data sets, the three face test data sets can be processed in parallel by three processes, with each process processing one face test data set, thereby improving test efficiency.

[0088] Multiprocessing is achieved by using the Python multiprocessing module. The Python multiprocessing module is a technology used in the algorithm within the face recognition module, which can realize multi-process data processing simultaneously.

[0089] A multi-process processing method is adopted to test and process at least one face test data set corresponding to the first test type. Multiple face test data sets corresponding to the same test type can be tested and processed in parallel. Multiple face test data sets can be tested in parallel in response to a test start instruction (first test start instruction). Multiple face test data sets corresponding to the same test type can be tested in batches, thereby improving test efficiency.

[0090] The first face test data set may include image data and configuration information. The configuration information may exist in the form of a json file. The configuration information of the first face test data set may include the type and size of the first face test data set. The configuration information is equivalent to the specification file of the first face test data set. The first face test data set may include multiple first test data, each of which may include an image data. The image data may be data in raw format. The size of the first face test data set may range from tens of MB to tens of GB.

[0091] The image data of the first face test data set may be collected by a camera on a face recognition module or by a camera of other devices.

[0092] 203 , the face recognition module performs a first test process corresponding to the first test type on the first test data through the first model to obtain a first test result.

[0093] The first test result is used to reflect the test effect of the first model.

[0094] The first test process may include a liveness test or a comparison test. The first test result may include the test result of the first face test data set, and the test result of the first face test data set may include the test accuracy, average test time, false recognition rate, average test score (for example, liveness score, comparison score), etc. of the first test set. The test accuracy can reflect the recognition accuracy of the model, the average test time can reflect the recognition speed of the model, and the false recognition rate can reflect the recognition error of the model. The tester can use the three dimensions of test accuracy, average test time, and false recognition rate as references to evaluate the test effect of the model. The first test result is used to reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model.

[0095] The first test result may also include the test result of the first test data. The test result of the first test data may include the test duration of the first test data, the test score (eg, the score for living bodies, the score for comparison), whether the test result is accurate, etc.

[0096] The first model may be a neural network model. Specifically, it may be a convolutional neural network model. The first model may be any one of a liveness recognition model, a comparison recognition model, and a liveness comparison recognition model. The liveness recognition model is a model used for liveness recognition, the comparison recognition model is a model used for comparison recognition, and the liveness comparison recognition model is a model used for liveness recognition and comparison recognition.

[0097] If the first test type is a liveness test, the first model may be a liveness recognition model or a liveness comparison recognition model; if the first test type is a comparison test, the first model may be a comparison recognition model or a liveness comparison recognition model.

[0098] For example, the first face test data set includes image data of 1 million collected photos (the objects of the images are photos, not real people). If the first model is a liveness recognition model, and the first model determines that 100 of the photos are real people, it can be considered that there is a problem with the first model, and the first model needs to be adjusted to improve the accuracy of liveness recognition of the first model. For another example, the first face test data set includes image data of 1 million collected photos (the objects of the images are real people, not photos). If the first model is a liveness recognition model, and the first model determines that 100 of the photos are fake people, it can be considered that there is a problem with the first model, and the first model needs to be adjusted to reduce the false recognition rate of liveness recognition of the first model.

[0099] Among them, if the collected object is a picture of a dummy, you can directly take a 2D photo of A4 size. If the collected object is a real person, then the collected image data is a picture of the real person.

[0100] Optionally, after executing step 203, the following steps may also be executed:

[0101] The face recognition module uploads the first test result to the electronic device, and the electronic device is used to display the first test result. Smart door locks that include a face recognition module generally do not have a display. Uploading the test result to the electronic device can display the test result on the display of the electronic device, which can facilitate the tester to observe the test result and visualize the data.

[0102] In the embodiment of the present application, when the face recognition module is testing, it can obtain at least one face test data set corresponding to the first test type from the NFS server, thereby testing and processing the test data in the face test data set to obtain a first test result. The first test result can reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model. Compared with testing with a USB flash drive, storing the test set data in the NFS server can avoid the situation where the face test data set is lost due to damage caused by multiple plugging and unplugging of the USB flash drive, thereby improving the test efficiency of the face recognition module.

[0103] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another testing method provided in an embodiment of the present application. Figure 3 As shown, Figure 3 is Figure 2 Based on the Figure 3 The test method shown is applied to a face recognition module, and the test method may include the following steps.

[0104] 301. A face recognition module receives a first test start instruction, where the first test start instruction carries a first data set address and a first test type.

[0105] 302, the face recognition module obtains at least one face test data set corresponding to the first test type from the NFS server according to the first data set address, the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data.

[0106] 303, the face recognition module performs a first test process corresponding to the first test type on the first test data through the first model to obtain a first test result.

[0107] The first test result is used to reflect the test effect of the first model. The first test result includes at least one of test accuracy, test duration, and misrecognition rate.

[0108] The specific implementation of steps 301 to 303 can be found in Figure 2 Steps 201 to 203 are shown.

[0109] 304, the face recognition module receives a second test start instruction, where the second test start instruction carries a second data set address and a second test type.

[0110] The face recognition module can receive the first test start instruction and the second test start instruction at the same time. It can also receive the first test start instruction first, and then receive the second test start instruction, wherein when receiving the second test start instruction, the first test processing corresponding to the first test type has not been completed. It can also receive the second test start instruction first, and then receive the first test start instruction, wherein when receiving the first test start instruction, the second test processing corresponding to the second test type has not been completed.

[0111] The second data set address is different from the first data set address, and the second test type may be different from the first test type. For example, the first test type is a live test, and the second test type is a comparison test.

[0112] 305, the face recognition module obtains at least one face test data set corresponding to the second test type from the NFS server according to the second data set address, the at least one face test data set corresponding to the second test type includes a second face test data set, and the second face test data set includes at least one second test data.

[0113] The second face test data set is any one of the at least one test data corresponding to the second test type.

[0114] 306. The face recognition module performs a second test process corresponding to the second test type on the second test data through the second model to obtain a second test result.

[0115] The second test result is used to reflect the test effect of the second model. The second model is a neural network model. Specifically, it can be a convolutional neural network model. The second model can be any one of a liveness recognition model, a comparison recognition model, and a liveness comparison recognition model. The second model and the first model can be different models. For example, the first model can be a comparison recognition model, and the second model can be a liveness recognition model.

[0116] The second test process may include a liveness test or a comparison test. The second test result may include a test result of a second face test data set, and the test result of the second face test data set may include a test accuracy, an average test time, a false recognition rate, an average test score (e.g., a liveness score, a comparison score), etc. of the second test set.

[0117] The second test result may also include the test result of the second test data. The test result of the second test data may include the test duration of the second test data, the test score (eg, the score for living bodies, the score for comparison), whether the test result is accurate, etc.

[0118] The first test processing and the second test processing are executed in parallel through multi-process processing. Specifically, the first face test data set in at least one face test data set corresponding to the first test type and the second face test data set in at least one face test data set corresponding to the second test type can be tested in parallel through the Python multi-process module.

[0119] The embodiment of the present application adopts a multi-process processing method to test and process a first face test data set in at least one face test data set corresponding to a first test type and a second face test data set in at least one face test data set corresponding to a second test type. Two face test data sets corresponding to different test types can be tested in parallel, and two test start instructions (a first test start instruction and a second test start instruction) can be responded to for testing in parallel. Two test start instructions can be responded to for testing in batches at the same time, thereby improving test efficiency.

[0120] See also Figure 4 , Figure 4 is a flow chart of another testing method provided in the embodiment of the present application, such as Figure 4 As shown, Figure 4 The test method shown is applied to electronic equipment, and the test method may include the following steps.

[0121] 401, the electronic device determines the port number of the face recognition module to be tested.

[0122] In the embodiment of the present application, an electronic device (e.g., a computer) can communicate with multiple face recognition modules, and a power splitter can be used to connect an electronic device to multiple face recognition modules. For example, a computer can be connected to three or four face recognition modules depending on the number of ports. The electronic device can match the corresponding port number, find the corresponding device according to the port number, and send a command (e.g., a test start command) to the corresponding face recognition module for each port.

[0123] Specifically, by configuring minicom (minicom is a serial communication tool, similar to the hyperterminal under Windows. Minicom can be used to communicate with serial devices, such as debugging switches and modems, etc.), the electronic device can send a script to the face recognition module to be tested through minicom, thereby realizing direct communication between the electronic device (which can be an electronic device of the Linux system) and the face recognition module (no longer need to use the putty (Putty is a Telnet / SSH / rlogin / pure TCP and serial port connection software) command line).

[0124] The electronic device can determine the port number of at least one face recognition module to be tested.

[0125] 402, the electronic device determines a test type of a face recognition module and at least one face test data set.

[0126] In an embodiment of the present application, a tester can select a face recognition module to be tested, as well as a test type and a face test data set of the face recognition module to be tested on a display interface of an electronic device.

[0127] 403, the electronic device generates a first test start instruction according to the data set address and test type of at least one face test data set through a continuous integration tool, and sends the first test start instruction to the face recognition module corresponding to the port number.

[0128] For example, see Figure 5 , Figure 5 1 is a schematic diagram of a display interface for selecting a test type and a face test data set and constructing a test item provided by an embodiment of the present application. Figure 5 As shown, the tester can create a test project on the computer. The user selects the build parameters, which include the selected product name, device ID, face test dataset name, and test type.

[0129] Specifically, the user can select a product name on the display interface. The product name can be the version number of the model to be tested (such as Figure 5As shown, the version number of the model to be tested is V1), the model to be tested can be deployed on multiple devices (for example, on multiple face recognition modules), the device ID includes the ID of the smart door lock containing the face recognition module, and multiple smart door locks containing the face recognition module can be selected at one time to test the same model, and the ID of each smart door lock containing the face recognition module is different. For each smart door lock containing the face recognition module, the face test data set of each face recognition module can be determined by selecting the face test data set name. The face test data set can include various types of image data. For example, it can be a special verification data set such as an unarmed man, an old man with glasses, a person wearing glasses, a person without glasses, an old man, etc., or it can be a full data set. For each face recognition module, the test type can be selected, and the test type is related to the model to be tested. Among them, the ID of the smart door lock containing the face recognition module corresponds to the port number of the smart door lock containing the face recognition module, and different IDs of smart door locks containing face recognition modules correspond to different port numbers. The name of the face test data set may correspond to the data set address, and different names of face test data sets may correspond to different data set addresses.

[0130] The continuous integration tool can be Jenkins. Testers can log in to the Jenkins website to build test projects. By using Jenkins' parameterized build, "one-click" can be achieved (after the tester selects the parameters, just click Figure 5 Start the test task by clicking "Start Build" in the . Figure 5 As shown in the figure, the tester selects the face test data set and test type for the same product (model to be tested) on 5 smart door locks that contain face recognition modules, and clicks Figure 5 Click "Start Build" to generate the test startup instructions.

[0131] The electronic device is equivalent to the role of initiating the process. First, the face recognition module will be started. After the startup, because the project construction is a process, the face recognition module is unlocked and then the data set in the NFS server is called. The main test work is in the face recognition module. The face recognition module calls the data set and processes it. The processing takes time. The processing time is related to the size of the data set and the processing speed of the model. After the test is completed, the face recognition module will get a test result, which can be displayed on the electronic device. The role of the electronic device is equivalent to the process of initiating a process and the process of checking the results.

[0132] Electronic devices can be connected to the face recognition module to be tested through the NFS protocol to ensure data stability. They can be executed through Jenkins and the data can be visualized.

[0133] Electronic devices can communicate with the face recognition module through serial communication. Compared with testing with a USB flash drive, this can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, which may cause the USB flash drive to be unable to issue a test start command, thereby improving the stability of the test.

[0134] Optionally, before executing step 402, the following steps may also be executed:

[0135] The testing requirements for obtaining face recognition modules of electronic devices.

[0136] Step 402 may specifically include the following steps:

[0137] The electronic device determines the test type of the face recognition module and at least one face test data set according to the test requirements.

[0138] In the embodiment of the present application, the test execution personnel can dynamically customize the test task by selecting the device (including the smart door lock with face recognition module), data set, and test type to be executed according to the needs. The data set can use a multi-select plug-in to implement multiple test tasks on the same device; the device (including the smart door lock with face recognition module) without selecting the data set will not execute the test.

[0139] The testing requirements are mainly for verification of some issues. For example, if the customer feedback shows that the unlocking rate decreases when wearing glasses, then you can choose a special data set for wearing glasses to test (run batch processing) to see whether the accuracy of the current model meets the requirements.

[0140] The tester can input the test requirements on the electronic device, and the electronic device can automatically generate the test type of the face recognition module and at least one face test data set according to the test requirements. For example, if the test requirement is: the unlocking rate decreases when wearing glasses, the corresponding test type generated is a comparison test, and the face test data set can include a special data set for wearing glasses.

[0141] The embodiment of the present application can determine the test type of the face recognition module and at least one face test data set according to the test requirements, so as to test the face recognition module in a targeted manner.

[0142] Optionally, after executing step 403, the following steps may also be executed:

[0143] The electronic device receives the test result for the test type and the at least one face test data set returned by the face recognition module corresponding to the port number, and displays the test result.

[0144] Facial recognition modules generally do not have a display. The test results are uploaded to an electronic device and can be displayed on the display of the electronic device, which makes it convenient for testers to observe the test results and visualize the data.

[0145] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0146] The embodiment of the present application can divide the server and the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0147] See also Figure 6 , Figure 6 6 is a schematic diagram of a test device provided in an embodiment of the present application. The test device 600 is applied to a face recognition module. The test device 600 may include a first receiving unit 601, an acquiring unit 602 and a testing unit 603, wherein:

[0148] A first receiving unit 601 is used to receive a first test start instruction, where the first test start instruction carries a first data set address and a first test type;

[0149] An acquiring unit 602 is configured to acquire, from an NFS server according to the first data set address, at least one face test data set corresponding to the first test type, wherein the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data;

[0150] The testing unit 603 is used to perform a first test process corresponding to the first test type on the first test data through a first model to obtain a first test result. The first test result is used to reflect the test effect of the first model. The first test result includes: at least one of test accuracy, test duration, and false recognition rate.

[0151] Optionally, the test processing for the at least one face test data set is performed in parallel through multi-process processing.

[0152] Optionally, the first receiving unit 601 is further configured to receive a second test start instruction, where the second test start instruction carries a second data set address and a second test type;

[0153] The acquiring unit 602 is further configured to acquire, from the NFS server according to the second data set address, at least one face test data set corresponding to the second test type, wherein the at least one face test data set corresponding to the second test type includes a second face test data set, and the second face test data set includes at least one second test data;

[0154] The testing unit 603 is further configured to perform a second test process corresponding to the second test type on the second test data through a second model to obtain a second test result, where the second test result is used to reflect a test effect of the second model;

[0155] The first test process and the second test process are executed in parallel through multi-process processing.

[0156] Optionally, the first receiving unit 601 receives a first test start instruction, including: receiving a first test start instruction sent by an electronic device, and the electronic device communicates with the face recognition module through a serial port communication method.

[0157] Optionally, the testing device 600 may further include an uploading unit 604;

[0158] The uploading unit 604 is used to upload the first test result to the electronic device, and the electronic device is used to display the first test result.

[0159] Among them, the first receiving unit 601, the acquisition unit 602, and the upload unit 604 in the embodiment of the present application can be communication modules of the face recognition module, and the test unit 603 can be a processor of the face recognition module.

[0160] In the embodiment of the present application, when the face recognition module is testing, it can obtain at least one face test data set corresponding to the first test type from the NFS server, thereby testing and processing the test data in the face test data set to obtain a first test result. The first test result can reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model. Compared with testing with a USB flash drive, storing the test set data in the NFS server can avoid the situation where the face test data set is lost due to damage caused by multiple plugging and unplugging of the USB flash drive, thereby improving the test efficiency of the face recognition module.

[0161] See also Figure 7 , Figure 7 700 is a schematic diagram of the structure of another test device provided in an embodiment of the present application. The test device 700 is applied to an electronic device, and the electronic device communicates with at least one face recognition module through a serial communication mode; the test device 700 may include a determination unit 701, a generation unit 702 and a sending unit 703, wherein:

[0162] The determining unit 701 is used to determine the port number of the face recognition module to be tested;

[0163] The determining unit 701 is further used to determine the test type of the face recognition module and at least one face test data set;

[0164] The generating unit 702 is configured to generate a first test start instruction according to the dataset address of the at least one face test dataset and the test type through a continuous integration tool;

[0165] The sending unit 703 is used to send the first test start instruction to the face recognition module corresponding to the port number.

[0166] Optionally, the testing device 700 may further include an acquisition unit 704;

[0167] The acquisition unit 704 is used to acquire the test requirements of the face recognition module;

[0168] The determining unit 701 determines the test type of the face recognition module and at least one face test data set, including: determining the test type of the face recognition module and at least one face test data set according to the test requirements.

[0169] Optionally, the testing device 700 may further include a second receiving unit 705;

[0170] The second receiving unit 705 is used to receive the test result for the test type and the at least one face test data set returned by the face recognition module corresponding to the port number, and display the test result.

[0171] The sending unit 703 and the second receiving unit 705 in the embodiment of the present application may be communication modules of the electronic device, the determining unit 701 and the generating unit 702 may be processors of the electronic device, and the acquiring unit 704 may be a display device of the electronic device.

[0172] In an embodiment of the present application, the electronic device can communicate with the face recognition module through serial communication. Compared with testing with a USB flash drive, it can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, which leads to the USB flash drive being unable to issue a test start command, thereby improving the stability of the test.

[0173] See also Figure 8 , Figure 8 is a structural diagram of a face recognition module provided in an embodiment of the present application, such as Figure 8 As shown, the face recognition module 800 includes a processor 801 and a memory 802, and the processor 801 and the memory 802 can be connected to each other via a communication bus 803. The communication bus 803 can be a peripheral component interconnect standard (Peripheral Component Interconnect, referred to as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus. The communication bus 803 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The memory 802 is used to store computer programs. The computer programs include program instructions. The processor 801 is configured to call the program instructions. The program includes instructions for executing Figure 2 or Figure 3 The method in .

[0174] The processor 801 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.

[0175] The memory 802 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0176] The face recognition module 800 may further include a communication module 804 , which may include input and output devices such as a radio frequency circuit and an antenna.

[0177] In the embodiment of the present application, when the face recognition module is testing, it can obtain at least one face test data set corresponding to the first test type from the NFS server, thereby testing and processing the test data in the face test data set to obtain a first test result. The first test result can reflect the test effect of the first model, and the test effect of the first model can be evaluated according to the first test result. The adjustment direction of the first model can be determined according to the test effect of the first model, and the first model can be adjusted to improve the accuracy of the first model. Compared with testing with a USB flash drive, storing the test set data in the NFS server can avoid the situation where the face test data set is lost due to damage caused by multiple plugging and unplugging of the USB flash drive, thereby improving the test efficiency of the face recognition module.

[0178] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig. 9As shown, the electronic device 900 includes a processor 901 and a memory 902, and the processor 901 and the memory 902 can be connected to each other via a communication bus 903. The communication bus 903 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 903 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The memory 902 is used to store computer programs. The computer programs include program instructions. The processor 901 is configured to call the program instructions. The program includes instructions for executing Figure 4 The method in .

[0179] The processor 901 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.

[0180] The memory 902 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0181] The electronic device 900 may further include a display device 904 , which may include a display.

[0182] The electronic device 900 may further include a communication module 905 , which may include input and output devices such as a radio frequency circuit and an antenna.

[0183] In an embodiment of the present application, the electronic device can communicate with the face recognition module through serial communication. Compared with testing with a USB flash drive, it can avoid the situation where the USB flash drive is damaged due to repeated plugging and unplugging, which leads to the USB flash drive being unable to issue a test start command, thereby improving the stability of the test.

[0184] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the test methods recorded in the above method embodiments.

[0185] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0187] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0190] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0191] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0192] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A testing method, characterized in that: The test method is applied to a face recognition module, the face recognition module is built into a smart door lock, the number of the smart door lock includes at least one, and the method includes: Receiving a first test start instruction sent by an electronic device, wherein the first test start instruction carries a first data set address and a first test type, and the electronic device communicates with the face recognition module through a serial port communication mode; Acquire at least one face test data set corresponding to the first test type from a network file system NFS server according to the first data set address, wherein the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data; A first test result is obtained by performing a first test process corresponding to the first test type on the first test data through a first model, wherein the first test result is used to reflect the test effect of the first model, and the first test result includes: at least one of a test accuracy rate, a test duration, and a false recognition rate; the test effect of the first model is used to determine an adjustment direction of the first model, and the first model is adjusted to improve the accuracy of the first model; the test accuracy rate is used to reflect the recognition accuracy rate of the first model, the test duration is used to reflect the recognition speed of the first model, and the false recognition rate is used to reflect the recognition error of the first model; the test process for the at least one face test data set is performed in parallel through a multi-process processing method; The first test result is uploaded to the electronic device, and the electronic device is used to display the first test result.

2. The method according to claim 1, characterized in that The method further comprises: receiving a second test start instruction, wherein the second test start instruction carries a second data set address and a second test type; Acquire at least one face test data set corresponding to the second test type from the NFS server according to the second data set address, wherein the at least one face test data set corresponding to the second test type includes a second face test data set, and the second face test data set includes at least one second test data; Performing a second test process corresponding to the second test type on the second test data through the second model to obtain a second test result, where the second test result is used to reflect the test effect of the second model; The first test process and the second test process are executed in parallel through a multi-process processing method.

3. A testing method, characterized in that: The testing method is applied to an electronic device, the electronic device communicates with at least one face recognition module via a serial communication mode, and the at least one face recognition module is built in at least one smart door lock; the method comprises: Determine the port number of the face recognition module to be tested; Determining a test type of the face recognition module and at least one face test data set; Generate a first test start instruction according to the dataset address of the at least one face test dataset and the test type through a continuous integration tool, and send the first test start instruction to the face recognition module corresponding to the port number; the dataset address of the at least one face test dataset is used by the face recognition module to obtain at least one face test dataset corresponding to the test type from a network file system NFS server according to the dataset address of the at least one face test dataset; Receive the test results for the test type and the at least one face test data set returned by the face recognition module corresponding to the port number, and display the test results, the test results are used to reflect the test effect of the model in the face recognition module corresponding to the port number, and the test results include: at least one of test accuracy, test duration, and false recognition rate; the test effect of the model is used to determine the adjustment direction of the model, and adjust the model to improve the accuracy of the model; the test accuracy is used to reflect the recognition accuracy of the first model, the test duration is used to reflect the recognition speed of the first model, and the false recognition rate is used to reflect the recognition error of the first model; the test processing for the at least one face test data set is executed in parallel through multi-process processing.

4. The method according to claim 3, characterized in that Before determining the test type of the face recognition module and at least one face test data set, the method further includes: Obtaining the test requirements of the face recognition module; The determining of the test type of the face recognition module and at least one face test data set includes: Determine a test type of the face recognition module and at least one face test data set according to the test requirements.

5. A testing device, characterized in that: The testing device is applied to a face recognition module, the face recognition module is built in a smart door lock, the number of the smart door lock includes at least one, and the testing device includes: A first receiving unit is used to receive a first test start instruction sent by an electronic device, wherein the first test start instruction carries a first data set address and a first test type, and the electronic device communicates with the face recognition module through a serial port communication mode; an acquiring unit, configured to acquire, from an NFS server according to the first data set address, at least one face test data set corresponding to the first test type, wherein the at least one face test data set corresponding to the first test type includes a first face test data set, and the first face test data set includes at least one first test data; A testing unit, used to perform a first test processing corresponding to the first test type on the first test data through a first model to obtain a first test result, wherein the first test result is used to reflect the test effect of the first model, and the first test result includes: at least one of test accuracy, test duration, and false recognition rate; the test effect of the first model is used to determine the adjustment direction of the first model, and the first model is adjusted to improve the accuracy of the first model; the test accuracy is used to reflect the recognition accuracy of the first model, the test duration is used to reflect the recognition speed of the first model, and the false recognition rate is used to reflect the recognition error of the first model; the test processing for the at least one face test data set is performed in parallel through multi-process processing; an uploading unit, used to upload the first test result to the electronic device, and the electronic device is used to display the first test result.

6. A testing device, characterized in that: The testing device is applied to an electronic device, the electronic device communicates with at least one face recognition module via a serial communication method, and the at least one face recognition module is built in at least one smart door lock; the testing device includes: A determination unit, used to determine the port number of the face recognition module to be tested; The determination unit is further used to determine the test type of the face recognition module and at least one face test data set; A generating unit, configured to generate a first test start instruction according to a data set address of the at least one face test data set and the test type through a continuous integration tool; the data set address of the at least one face test data set is used by the face recognition module to obtain at least one face test data set corresponding to the test type from a network file system NFS server according to the data set address of the at least one face test data set; A sending unit, used for sending the first test start instruction to the face recognition module corresponding to the port number; A second receiving unit is used to receive the test results for the test type and the at least one face test data set returned by the face recognition module corresponding to the port number, and display the test results, wherein the test results are used to reflect the test effect of the first model in the face recognition module corresponding to the port number, and the test results include: at least one of test accuracy, test duration, and false recognition rate; the test effect of the first model is used to determine the adjustment direction of the first model, and the first model is adjusted to improve the accuracy of the first model; the test accuracy is used to reflect the recognition accuracy of the first model, the test duration is used to reflect the recognition speed of the first model, and the false recognition rate is used to reflect the recognition error of the first model; the test processing for the at least one face test data set is executed in parallel through multi-process processing.

7. A face recognition module, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 2.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 3 to 4.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 4.

10. A testing system, characterized in that: It includes an electronic device, a plurality of smart door locks with built-in face recognition modules, and an NFS server; the electronic device communicates with the face recognition module via a serial port communication method; The electronic device is used to determine the port number of the face recognition module to be tested, determine the test type of the face recognition module and at least one face test data set, generate a first test start instruction according to the data set address of the at least one face test data set and the test type through a continuous integration tool, and send the first test start instruction to the face recognition module corresponding to the port number; The face recognition module is used to receive a first test start instruction sent by the electronic device, and obtain at least one face test data set corresponding to the test type from the NFS server according to the data set address, wherein the at least one face test data set corresponding to the test type includes a first face test data set, and the first face test data set includes at least one first test data; Performing a first test process corresponding to the test type on the first test data through a first model to obtain a first test result, and uploading the first test result to the electronic device, where the electronic device is used to display the first test result; The first test result is used to reflect the test effect of the first model, and the first test result includes: at least one of test accuracy, test duration, and false recognition rate. The test effect of the first model is used to determine the adjustment direction of the first model, and the first model is adjusted to improve the accuracy of the first model; the electronic device communicates with the face recognition module through serial port communication; the test accuracy is used to reflect the recognition accuracy of the first model, the test duration is used to reflect the recognition speed of the first model, and the false recognition rate is used to reflect the recognition error of the first model; the test processing of the at least one face test data set is executed in parallel through multi-process processing.

Citation Information

Patent Citations

  • Cross-platform algorithm testing method and system

    CN109144857A

  • Examination behavior detection method based on improved Openpose model and facial micro-expressions

    CN111523445A

  • Gender and age identification method and device, storage medium and server

    CN111626303A

  • Self-training method, system and device, electronic equipment and storage medium

    CN112132220A

  • Performance information determination method and device, storage medium and terminal

    CN112306829A