Face recognition module testing method, device, storage medium and electronic device
Through automated testing methods, the problems of face recognition module testing complexity and time are solved, efficient and accurate test results are achieved, and the module meets the needs of the application scenario.
Patent Information
- Application Number
- CN202110931994.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-08-13
AI Technical Summary
Facial recognition module testing is highly complex and time-consuming, making it difficult to meet the needs of batch testing and rapid testing. The existing technology lacks unified testing standards and has a low degree of automation.
Provide a face recognition module testing method. By establishing a communication connection with the module, determine the test items of the application scenario, automatically test the functions of each module, ensure that the test results meet the functional requirements of the application scenario, and realize a fully automated testing process.
Significantly improve test efficiency and quality, ensure that the face recognition module that passes the test can fully meet the functional requirements of the application scenario, and reduce manual participation and test time.
Smart Images

Figure CN113705389B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automated testing, and in particular to a face recognition module testing method, device, storage medium and electronic device. Background Art
[0002] Face recognition modules are used in many scenarios and have good application prospects in the future. Face recognition modules integrate many functional modules, and the testing process of each functional module is relatively independent and the testing methods are different. This leads to high testing complexity and time consumption of face recognition modules. It also relies heavily on manual testing and is difficult to meet the needs of batch testing and rapid testing. Summary of the invention
[0003] In order to solve at least one of the technical problems mentioned above, the present disclosure proposes a face recognition module testing method, device, storage medium and electronic device.
[0004] According to the first aspect of the present disclosure, a face recognition module testing method is provided, including: establishing a communication connection with the face recognition module; determining at least one test item of the face recognition module, the test item being used to perform a functional test on the face recognition module based on an application scenario; performing a functional test on each of the test items through interaction with the face recognition module, and obtaining a test result corresponding to the test item, the test result characterizing the degree of compliance of the module related to the test item with the functional requirements of the application scenario; and obtaining a face recognition module test result based on each of the test results obtained. Based on the above configuration, the test items can be determined according to the functional requirements of the application scenario, and the functional test of the test items can be completed by automatically controlling the face recognition module, and finally the face recognition module test result can be obtained. The functional requirements of the application scenario are used as the test motivation, so as to ensure that the face recognition module that passes the test can fully meet the functional requirements of its application scenario. The overall test process can be implemented fully automatically, significantly improving the test efficiency and test quality.
[0005] In some possible implementations, the application scenario is a smart door lock scenario, and determining at least one test item of the face recognition module includes: when the face recognition module includes a binocular camera module, determining a binocular camera test item; the binocular camera test item includes a first test requirement, and testing each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes: issuing a first instruction to the face recognition module, the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position, and obtain a first image output by a first camera in the binocular camera module, and obtain a second image output by a second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and the edge face on the calibration plate is located at the edge of the field of view of the binocular camera module, and the center face on the calibration plate is opposite to the binocular camera module; according to the first test requirement, the first image and the second image are detected to obtain the binocular camera test result. Based on the above configuration, automated testing of the binocular camera module in the face recognition module can be achieved, and the obtained binocular camera test results can represent the degree of compliance of the binocular camera module with the binocular camera requirements in the smart door lock scenario.
[0006] In some possible implementations, the first image and the second image are detected according to the first test requirement to obtain a binocular camera test result, which includes at least one of the following situations: when the first test requirement includes an image quality requirement, image quality detection is performed on both the first image and the second image to obtain an image quality test result; when the first test requirement includes a field of view clarity requirement, field of view clarity detection is performed on both the first image and the second image to obtain a field of view clarity test result; when the first test requirement includes a binocular position requirement, relative position detection is performed on the first image and the second image to obtain a relative position test result. Based on the above configuration, the binocular camera module can be tested from three angles: image quality requirement, field of view clarity requirement, and binocular position requirement, to ensure that the face recognition module that passes the test can fully meet the functional requirements of the smart door lock scenario for the binocular camera module.
[0007] In some possible implementations, the field of view clarity requirement includes the number of target faces, and the field of view clarity detection is performed on both the first image and the second image to obtain the field of view clarity test result, including: extracting faces in the first image and the second image respectively to obtain the first number of faces and the second number of faces; when the first number of faces and the second number of faces are equal to the target number of faces, obtaining the field of view clarity test result indicating that the field of view clarity requirement is met; the binocular position requirement includes the target overlap range, and the relative position detection is performed on the first image and the second image to obtain the relative position test result, including: extracting the first target face in the first image and the second target face in the second image, the first target face and the second target face both corresponding to the same face in the calibration plate; calculating the actual overlap between the first target face and the second target face; when the actual overlap falls within the target overlap range, obtaining the relative position test result indicating that the binocular position requirement is met. Based on the above configuration, accurate field of view clarity test results and relative position test results can be obtained.
[0008] In some possible implementations, the application scenario is a smart door lock scenario, and determining at least one test item of the face recognition module includes: when the face recognition module includes a visible light camera module, determining a visible light camera module test item; the visible light camera module test item includes a second test requirement, and testing each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes at least one of the following situations: when the second test requirement includes a photosensitivity requirement, issuing a second instruction to the face recognition module, the second instruction is used to obtain a photosensitivity result of a light sensor; and obtaining a photosensitivity test result according to the photosensitivity result; when the second test requirement includes a filtering requirement, issuing a third instruction to the face recognition module, the third instruction obtains an opening and closing state of a filtering control unit; and obtaining a filtering test result according to the opening and closing state; when the second test requirement includes an imaging requirement, issuing a fourth instruction to the face recognition module, the fourth instruction is used to trigger the visible light camera module to shoot a calibration plate to obtain a third image, and determining an imaging test result according to the third image. Based on the above configuration, automated testing of the visible light camera module in the face recognition module can be achieved, and the degree of compliance of the visible light camera module with the visible light camera requirements in the smart door lock scenario can be evaluated from three aspects: sensitivity test results, light filtering test results, and imaging test results.
[0009] In some possible implementations, the application scenario is a smart door lock scenario, and the determining of at least one test item of the face recognition module includes: determining an algorithm test item, the algorithm test item includes at least one of a face detection test item, a feature extraction test item, a feature comparison test item, and a liveness detection test item; the testing of each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes at least one of the following situations: when the algorithm test item includes a face detection test item, the face recognition module is triggered to perform face detection to obtain a first algorithm test result; when the algorithm test item includes a feature extraction test item, the face recognition module is triggered to perform feature extraction to obtain a second algorithm test result; when the algorithm test item includes a feature comparison test item, the face recognition module is triggered to perform feature comparison to obtain a third algorithm test result; when the algorithm test item includes a liveness detection test item, the face recognition module is triggered to perform liveness detection to obtain a fourth algorithm test result. Based on the above configuration, it is possible to test whether the functions of the modules involved in running the above algorithm meet the application scenario's requirements for the operation of the above algorithm.
[0010] In some possible implementations, the method of testing each of the test items through interaction with the face recognition module to obtain the test results corresponding to the test items also includes: determining the voltage range in which the face recognition module operates; determining multiple voltage intervals in the voltage range; determining at least one test voltage in each of the voltage intervals; testing the target algorithm test items under each of the test voltages to obtain the target algorithm test results under the test voltage, wherein the target algorithm test items are any one of the face detection test items, the feature extraction test items, the feature comparison test items, and the liveness detection test items. Based on the above configuration, the voltage fluctuation can be fully considered during the testing of the algorithm test items, thereby comprehensively testing the ability of the face recognition module to correctly run the relevant algorithms under changing voltage conditions, thereby ensuring the accuracy of the face recognition module algorithm operation results.
[0011] In some possible implementations, the determining of at least one test item of the face recognition module includes: in the case where the face recognition module includes an audio comprehensive processing module, determining an audio test item, the audio comprehensive processing module includes an audio acquisition module and an audio playback module: the testing of each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes: issuing a fifth instruction to the face recognition module, the fifth instruction is used to trigger the first channel of the audio acquisition module to collect sound to obtain a first collection result; playing standard audio; after the standard audio is played, issuing a fifth instruction and a sixth instruction to the face recognition module, the fifth instruction is used to trigger the audio playback module to play the sound collected by the audio acquisition module, and the sixth instruction is used to trigger the second channel of the audio acquisition module to collect sound to obtain a second collection result; according to the standard audio, the first collection result and the second collection result, an audio comprehensive test result is obtained. Based on the above configuration, different channels of the audio acquisition device and whether the audio playback device can meet the requirements of the application scenario can be tested simultaneously through simple test steps, and the test steps are simple but the test effect is comprehensive.
[0012] In some possible implementations, determining at least one test item for the face recognition module includes: determining at least one of a firmware version number test item, a communication function test item, a memory function test item, and a serial number storage test item.
[0013] In some possible implementations, obtaining the face recognition module test result based on each of the test results obtained includes: if the test results corresponding to each test item indicate that the module related to the test item meets the functional requirements of the application scenario, then determining that the face recognition module test result indicates that the test passed. Based on the above configuration, it can be ensured that the face recognition module that passes the test can fully meet the functional requirements of the application scenario.
[0014] In some possible implementations, the method further includes: displaying a test interface; in response to a trigger instruction on the test interface, obtaining test parameters, the test parameters being used to test at least one test item; and displaying the face recognition module test result on the test interface. Based on the above configuration, it is convenient for testers to understand the test results and control the test process.
[0015] According to a second aspect of the present disclosure, a face recognition module testing device is provided, the device comprising: a communication establishment module, used to establish a communication connection with the face recognition module; a test item determination module, used to determine at least one test item of the face recognition module, the test item being used to perform a functional test on the face recognition module based on an application scenario; a test execution module, used to perform a functional test on each of the test items through interaction with the face recognition module, and obtain a test result corresponding to the test item, the test result representing the degree of compliance of the module related to the test item with the functional requirements of the application scenario; a test result determination module, used to obtain a face recognition module test result based on each of the test results obtained.
[0016] In some possible implementations, the application scenario is a smart door lock scenario, and the test item determination module is used to determine the binocular camera test item when the face recognition module includes a binocular camera module: the binocular camera test item includes a first test requirement, and the test execution module includes a binocular test unit, and the binocular test unit is used to issue a first instruction to the face recognition module, and the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position to obtain a first image output by a first camera in the binocular camera module, and to obtain a second image output by a second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and the edge face on the calibration plate is located at the edge of the field of view of the binocular camera module, and the center face on the calibration plate is opposite to the binocular camera module; according to the first test requirement, the first image and the second image are detected to obtain a binocular camera test result.
[0017] In some possible implementations, the binocular test unit is used to perform at least one of the following situations: when the first test requirement includes an image quality requirement, image quality detection is performed on both the first image and the second image to obtain an image quality test result; when the first test requirement includes a field of view clarity requirement, field of view clarity detection is performed on both the first image and the second image to obtain a field of view clarity test result; when the first test requirement includes a binocular position requirement, relative position detection is performed on the first image and the second image to obtain a relative position test result.
[0018] In some possible embodiments, the field of view clarity requirement includes the number of target faces, and the binocular test unit is used to extract faces in the first image and the second image, respectively, to obtain the first number of faces and the second number of faces; when the first number of faces and the second number of faces are both equal to the target number of faces, a field of view clarity test result is obtained, which indicates that the field of view clarity requirement is met; the binocular position requirement includes a target overlap range, and the binocular test unit is used to extract a first target face in the first image and a second target face in the second image, the first target face and the second target face both corresponding to the same face in the calibration plate; the actual overlap degree between the first target face and the second target face is calculated; when the actual overlap degree falls within the target overlap range, a relative position test result is obtained, which indicates that the binocular position requirement is met.
[0019] In some possible implementations, the application scenario is a smart door lock scenario, and the test item determination module is used to determine the visible light camera module test items when the face recognition module includes a visible light camera module; the visible light camera module test items include a second test requirement, and the test execution module includes a visible light test unit, and the visible light test unit is used to execute at least one of the following situations: when the second test requirement includes a photosensitivity requirement, a second instruction is issued to the face recognition module, and the second instruction is used to obtain the photosensitivity result of the light sensor; and obtain the photosensitivity test result according to the photosensitivity result; when the second test requirement includes a filtering requirement, a third instruction is issued to the face recognition module, and the third instruction obtains the opening and closing state of the filtering control unit; and obtains the filtering test result according to the opening and closing state; when the second test requirement includes an imaging requirement, a fourth instruction is issued to the face recognition module, and the fourth instruction is used to trigger the visible light camera module to shoot a calibration plate to obtain a third image, and determine the imaging test result according to the third image.
[0020] In some possible implementations, the application scenario is a smart door lock scenario, and the test item determination module is used to determine the algorithm test items, and the algorithm test items include at least one of a face detection test item, a feature extraction test item, a feature comparison test item, and a liveness detection test item; the test execution module is used to execute at least one of the following situations: when the algorithm test items include a face detection test item, triggering the face recognition module to perform face detection to obtain a first algorithm test result; when the algorithm test items include a feature extraction test item, triggering the face recognition module to perform feature extraction to obtain a second algorithm test result; when the algorithm test items include a feature comparison test item, triggering the face recognition module to perform feature comparison to obtain a third algorithm test result; when the algorithm test items include a liveness detection test item, triggering the face recognition module to perform liveness detection to obtain a fourth algorithm test result.
[0021] In some possible implementations, the test execution module is also used to determine the voltage range in which the face recognition module operates; determine multiple voltage intervals in the voltage range; and test the target algorithm test item under each of the test voltages to obtain the target algorithm test results under the test voltage, wherein the target algorithm test item is any one of the face detection test item, the feature extraction test item, the feature comparison test item, and the liveness detection test item.
[0022] In some possible implementations, the test item determination module is used to determine the audio test item when the face recognition module includes an audio comprehensive processing module, and the audio comprehensive processing module includes an audio acquisition module and an audio playback module: the test execution module is used to issue a fifth instruction to the face recognition module, and the fifth instruction is used to trigger the first channel of the audio acquisition module to collect sound to obtain a first collection result; play standard audio; after the standard audio is played, issue a fifth instruction and a sixth instruction to the face recognition module, the fifth instruction is used to trigger the audio playback module to play the sound collected by the audio acquisition module, and the sixth instruction is used to trigger the second channel of the audio acquisition module to collect sound to obtain a second collection result; obtain an audio comprehensive test result based on the standard audio, the first collection result and the second collection result.
[0023] In some possible implementations, the test item determination module is used to determine at least one of a firmware version number test item, a communication function test item, a memory function test item, and a serial number storage test item.
[0024] In some possible implementations, the test result determination module is used to determine that the face recognition module test result indicates that the test has passed if the test results corresponding to each test item indicate that the module related to the test item meets the functional requirements of the application scenario.
[0025] In some possible implementations, the device also includes a visualization interaction module, which is used to display a test interface; in response to a trigger instruction of the test interface, obtain test parameters, and the test parameters are used to test at least one test item; and display the face recognition module test results on the test interface.
[0026] According to a third aspect of the present disclosure, an electronic device is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements a face recognition module testing method as described in any one of the first aspects by executing the instructions stored in the memory.
[0027] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement a face recognition module testing method as described in any one of the first aspects.
[0028] According to a fifth aspect of the present disclosure, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the face recognition module testing method as described in any one of the first aspects is implemented.
[0029] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0030] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions and advantages in the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 A flow chart showing a method for testing a face recognition module according to an embodiment of the present disclosure is shown;
[0033] Figure 2 A schematic diagram showing a test control interface according to an embodiment of the present disclosure;
[0034] Figure 3 A schematic diagram showing the position of a calibration plate according to an embodiment of the present disclosure is shown;
[0035] Figure 4 A schematic diagram of a calibration plate according to an embodiment of the present disclosure is shown;
[0036] Figure 5 A schematic diagram of a face recognition module according to an embodiment of the present disclosure is shown;
[0037] Figure 6 A flow chart showing a method for testing a face recognition module applied to a smart door lock scenario according to an embodiment of the present disclosure;
[0038] Figure 7 A block diagram of a face recognition module testing device according to an embodiment of the present disclosure is shown;
[0039] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0040] Fig. 9 A block diagram of another electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0043] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0044] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0045] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0046] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0047] In the related art, different manufacturers lack a unified standard for testing face recognition modules. For example, in the process of factory testing, which modules in the face recognition module need to be tested and what test requirements are adopted for the tested modules. There is currently a lack of standardized constraints, which leads to low test standardization and correspondingly reduces the test accuracy of the face recognition module. In addition, the face recognition module includes many modules, and it is difficult to conduct a complete test of these modules, and usually requires manual participation, low test efficiency, high subjective judgment components, and is not conducive to the establishment of unified test standards and batch testing. In view of this, the present disclosure provides a face recognition module testing method, which improves the test standardization of the face recognition module by providing an automated testing framework driven by application scenario functions for the face recognition module, and improves the test efficiency and test quality through automated integrated testing methods. The testing method of the disclosed embodiment can automatically and standardizedly test the face recognition module used in various application scenarios. The disclosed embodiment is not limited to the specific application scenario, which can be various implementation scenarios in the Internet of Things industry, such as smart door lock scenarios, gate control scenarios, smart intercom scenarios, security supervision scenarios, etc.
[0048] The face recognition module test method provided by the embodiment of the present disclosure can be implemented by a host computer, which can be a terminal device, a server or other types of electronic devices, wherein the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the face recognition module test method can be implemented by a processor calling a computer-readable instruction stored in a memory. The face recognition module test method of the embodiment of the present disclosure is described below by taking the host computer as an example of the execution subject.
[0049] Figure 1 A flow chart of a face recognition module testing method according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the above method includes:
[0050] S10: Establishing a communication connection with the above-mentioned face recognition module.
[0051] The embodiments of the present disclosure do not limit the specific method for establishing the communication connection, and a wired or wireless communication connection can be established. For example, if the host computer is a computer terminal device, a serial port connection can be established, and if the host computer is a mobile terminal device, a wireless communication connection can be established. After the communication connection is established, the embodiments of the present disclosure can provide a test interface for the tester, and the tester can control the test process of the face recognition module by operating the test interface.
[0052] S20: Determine at least one test item for the face recognition module, where the test item is used to perform a functional test on the face recognition module based on an application scenario.
[0053] In the embodiments of the present disclosure, test items can be determined according to the functional requirements of the application scenario, and the test items are used to test whether the face recognition module can meet the functional requirements of the application scenario. The face recognition module can be applied to the Internet of Things industry, which can have a variety of landing applications. The present disclosure does not limit the landing applications of the Internet of Things industry. For example, the above-mentioned landing applications can be smart door locks, gate control, smart intercom, security supervision, etc. For any landing application, the embodiments of the present disclosure can determine the test items of the face recognition module based on the functional requirements of this landing application.
[0054] For example, the smart door lock scenario requires that the face recognition module's binocular camera module can accurately identify all faces in the images captured within its field of view. The smart door lock scenario may not require that the clarity of the captured image must be higher than a specific value, but it can require that all faces in the images captured by these camera modules within their field of view can be identified. For another example, the smart intercom scenario requires that the strength and stability of the face recognition module's communication module be sufficient to support users in smart intercom.
[0055] That is to say, the functional requirements in the present disclosure are determined according to the application scenario, and accordingly, the purpose of the test items is to test whether the face recognition module meets the functional requirements of the application scenario. The embodiments of the present disclosure do not limit the method for determining the test items. In one embodiment, the test items can be determined by the following operations: In response to a trigger instruction on the test interface, the application scenario for the test is determined. The test item selection interface corresponding to the above application scenario is displayed, and the above test item selection interface includes various test items in the above application scenario. The above test items are used to perform functional tests on the above face recognition module based on the above application scenario. In response to the trigger instruction on the above test item selection interface, at least one test item is determined. In another embodiment, the test items can also be automatically generated according to the functional requirements of the application scenario. The embodiments of the present disclosure do not limit the automatic generation method.
[0056] After the test items are determined, the test control interface can be displayed. Figure 2 A schematic diagram of a test control interface according to an embodiment of the present disclosure is shown. In response to a trigger instruction to the above test control interface, test parameters can be obtained. The test parameters can be used as execution parameters required for the test, or as test indicator parameters for determining the test results. The present disclosure embodiment does not specifically limit the test parameters. Figure 2 For example, the name and password of the mobile hotspot (Wi-Fi) can be used to test the communication module, the serial number (SN) can be used to test the module related to the serial number storage, the standard current to be tested can be used as the test index of the standby current of the face recognition module, and the DDR (Double Data Rate, double data rate synchronous dynamic random access memory) test times and DDR test start flag are all test parameters of the DDR test. Of course, in some embodiments, the test control interface can also include test control related controls, Figure 2 The test process can be controlled by the "Start" and "Stop" controls. Each face recognition module has a unique serial number. Different face recognition modules can be tested by the "Modify SN" control.
[0057] S30: Performing functional tests on each of the test items through interaction with the face recognition module to obtain test results corresponding to the test items, wherein the test results represent the degree to which the modules related to the test items comply with the functional requirements of the application scenarios.
[0058] The embodiment of the present disclosure does not limit the test order of the test items. It is only necessary to perform a complete test on each determined test item. Different application scenarios may correspond to different test items, or the test requirements of the same test item in different application scenarios may also be different. The embodiment of the present disclosure takes the smart door lock scenario as an example to describe the execution details of step S30.
[0059] In the case where the face recognition module includes a binocular camera module, binocular camera test items may be determined, and the binocular camera test items include the first test requirement. In this case, each of the test items is tested through interaction with the face recognition module to obtain test results corresponding to the test items, including:
[0060] S101: Sending a first instruction to the face recognition module, wherein the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position, thereby obtaining a first image output by a first camera in the binocular camera module and a second image output by a second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and an edge face on the calibration plate is located at an edge of a field of view of the binocular camera module, and a center face on the calibration plate is opposite to the binocular camera module.
[0061] The binocular camera test item is implemented by triggering the binocular camera module to shoot a calibration plate placed at the target position. The disclosed embodiment does not specifically limit the target position, for example, it can be 60 cm away from the above binocular camera module. Figure 3 A schematic diagram of the position of the calibration plate according to an embodiment of the present disclosure is shown. The center of the calibration plate is opposite to the center of the binocular camera module. The embodiment of the present disclosure does not limit the shape of the calibration plate, which can be circular or rectangular, and the shape of the calibration plate is related to the target position. For example, if the calibration plate is circular, the radius of the circle is positively correlated with the above distance. If the calibration plate is rectangular, the length and width of the rectangle are both positively correlated with the above distance. The purpose of this setting is to ensure that the edge face of the calibration plate just falls into the field of view of the binocular camera module and is located at the edge of the field of view. In the embodiment of the present disclosure, face images are distributed on the edge and center of the calibration plate. The face image at the center is opposite to the above binocular camera module, and the edge face is used to detect the field of view clarity of the binocular camera module.
[0062] The disclosed embodiments do not limit the distribution of faces in the calibration plate, but only require that the face distribution includes edge faces and center faces, so as to determine the positional relationship between the calibration plate and the camera module through the center face, and to detect the field of view clarity through the edge faces. In one embodiment, a rectangular calibration plate can have a center face at the center of the rectangle, and an edge face at each of the four corners of the rectangle. In another embodiment, a circular calibration plate can have a center face at the center of the circle, and an edge face at each of the two endpoints of the horizontal diameter of the center of the circle and the two endpoints of the vertical diameter. Figure 4 A schematic diagram of a calibration plate according to an embodiment of the present disclosure is shown. The calibration plate includes one central face and eight edge faces.
[0063] S102: According to the first test requirement, the first image and the second image are detected to obtain a binocular camera test result.
[0064] The disclosed embodiment can start the test of the binocular camera module by sending a first instruction to the face recognition module to obtain the binocular camera test result. The above binocular camera test result is the test result corresponding to the binocular camera test item in the disclosed embodiment, and the above binocular camera test result indicates the degree of compliance of the binocular camera module with the binocular camera requirements in the above smart door lock scenario.
[0065] The first test requirement may include at least one of an image quality requirement, a field of view clarity requirement, and a binocular position requirement. In the case where the first test requirement includes an image quality requirement, image quality detection is performed on both the first image and the second image to obtain an image quality test result, and the image quality test result indicates the degree to which the binocular camera module complies with the image quality requirement.
[0066] The embodiments of the present disclosure do not limit the image quality requirements. For example, the image quality requirements may include at least one of brightness requirements, contrast requirements, sharpness requirements, and signal-to-noise ratio requirements. For any one of the image quality requirements, the test requirements for the smart door lock scene for that item can be determined. Taking the brightness requirement as an example, the corresponding test requirement can be characterized by a brightness range interval. If the first brightness determined based on the first image and the second brightness determined based on the second image are both within the above brightness range interval, it is determined that the above binocular camera module meets the brightness requirements. The embodiments of the present disclosure do not limit the specific method for determining brightness, contrast, sharpness, and signal-to-noise ratio. You can refer to the prior art, or you can design a corresponding method yourself.
[0067] In the case where the first test requirement includes a field of view clarity requirement, field of view clarity detection is performed on both the first image and the second image to obtain a field of view clarity test result, which represents the degree of compliance of the binocular camera module with the field of view clarity requirement.
[0068] The smart door lock scenario requires that the clarity of the face image within the full field of view can meet the face recognition requirements. That is to say, as long as the face is within the field of view of the binocular camera module, even if the clarity may be lost due to being at the edge of the field of view, it is still sufficient for face recognition. Based on this functional requirement of the smart door lock scenario, the embodiment of the present disclosure performs field of view clarity detection. In one embodiment, the field of view clarity requirement includes the number of target faces, and the field of view clarity detection is performed on both the first image and the second image to obtain the field of view clarity test results, including:
[0069] S1021: Extract faces from the first image and the second image respectively to obtain a first number of faces and a second number of faces.
[0070] In the disclosed embodiment, the first image is the image obtained by the first camera in the binocular camera module shooting the above calibration plate, recorded as image 1, and the second image is the image obtained by the second camera in the binocular camera module shooting the above calibration plate, recorded as image 2.
[0071] S1023: When the number of the first faces and the number of the second faces are both equal to the number of the target faces, a field of view clarity test result is obtained, which indicates that the field of view clarity requirement is met.
[0072] by Figure 4 For example, the calibration plate includes 9 faces in total. Based on the requirements of the smart door lock scene for field of view clarity detection, it can be known that the number of target faces should be 9. If the number of the first face and the number of the second face are both 9, it means that the first camera and the second camera can both meet the field of view clarity requirements of the smart door lock scene, that is, the FOV (Field of View) of the first camera and the second camera meets the requirements of the smart door lock scene.
[0073] In the case where the first test requirement includes a binocular position requirement, a relative position detection is performed on the first image and the second image to obtain a relative position test result, and the relative position test result represents the degree of compliance of the binocular camera module with the binocular position requirement.
[0074] In one embodiment, the binocular position requirement includes a target overlap range, and the relative position detection of the first image and the second image is performed to obtain a relative position test result, including:
[0075] S1022: extracting a first target face in the first image and a second target face in the second image, wherein the first target face and the second target face both correspond to the same face in the calibration plate.
[0076] The embodiment of the present disclosure does not limit the same face as above. For example, the first target face and the second target face both correspond to the central face of the calibration plate. Figure 4 The face in the upper left corner of the calibration plate.
[0077] In one embodiment, the number of first target faces and second target faces is not limited. For example, three first target faces can be determined in image 1, namely target face 11, target face 12, and target face 13. Three second target faces can be determined in image 2, namely target face 21, target face 22, and target face 23, where target face 11 and target face 21 correspond to Figure 4 The central face of the calibration plate, target face 12 and target face 22 correspond to Figure 4 The upper left face of the calibration plate, target face 13 and target face 23 correspond to Figure 4 The face in the lower right corner of the calibration plate is selected to form three target face pairs, namely (target face 11, target face 21), (target face 12, target face 22) and (target face 13, target face 23).
[0078] S1024: Calculate the actual overlap between the first target face and the second target face.
[0079] By adjusting image 1 and image 2 to the same size, the actual overlap between the first target face and the second target face can be calculated. If there are multiple first target faces and multiple second target faces, the actual overlap between the two target faces in each target face pair is calculated, and the average of the actual overlaps corresponding to each target face pair is used as the actual overlap obtained in step S1024.
[0080] S1026: When the actual overlap degree falls within the target overlap range, a relative position test result is obtained, indicating that the binocular position requirement is met.
[0081] The disclosed embodiment does not limit the target overlap range, and only needs to meet the position requirements of the binocular camera module in the smart door lock scenario.
[0082] The disclosed embodiments can test the binocular camera module from the perspectives of image quality requirements, field of view clarity requirements and / or binocular position requirements to ensure that the functional requirements of the binocular camera module for the smart door lock scenario are fully met.
[0083] In the embodiment of the present disclosure, when the above-mentioned face recognition module includes a visible light camera module, the visible light camera module test items can be determined, and the above-mentioned visible light camera module test items include the second test requirements. The visible light camera module can be an RGB camera module or an ordinary optical camera module, and the embodiment of the present disclosure does not limit the visible light camera module. Some visible light camera modules can automatically perform fill light according to changes in external light intensity. Specifically, the visible light camera module may include a camera, a light sensor, an infrared LED (light emitting diode) fill light, and an IR-CUT (light filtering control unit). The IR-CUT can automatically open and close according to changes in the intensity of light outside the camera. For example, when there is sufficient light during the day, it is turned off and no fill light is performed. When there is insufficient light at night, it is turned on so that the infrared LED fill light can perform fill light.
[0084] This type of visible light camera module has a photosensitivity function, an imaging function, and a light filtering function. Accordingly, the second test requirement may include a photosensitivity requirement, a light filtering requirement, and an imaging requirement. Of course, for other visible light camera modules, at least one of the photosensitivity function, the imaging function, and the light filtering function may be tested according to actual conditions.
[0085] In the case where the second test requirement includes a photosensitivity requirement, a second instruction is issued to the face recognition module, and the second instruction is used to obtain the photosensitivity result of the light sensor; a photosensitivity test result is obtained based on the photosensitivity result, and the photosensitivity test result represents the degree of compliance of the visible light camera module with the photosensitivity requirement.
[0086] The visible light camera module feeds back the photosensitivity results through the light sensor. The host computer that performs the test can determine the actual light intensity based on the relevant test parameters, and the photosensitivity error of the light sensor can be determined based on the actual light intensity and the photosensitivity results. If the photosensitivity error falls within the error range required by the smart door lock scenario, it is determined that the visible light camera module meets the photosensitivity requirements of the smart door lock scenario.
[0087] In the case where the second test requirement includes a filtering requirement, a third instruction is issued to the face recognition module, and the third instruction is used to obtain the opening and closing state of the filtering control unit; the filtering test result is obtained according to the opening and closing state, and the filtering test result represents the degree of compliance of the visible light camera module with the filtering requirement.
[0088] Referring to the above, the expected opening and closing state of the filtering control unit under ideal conditions can be determined based on the actual light intensity. If the opening and closing state fed back by the visible light camera module is consistent with the expected opening and closing state, it can be determined that the above visible light camera module meets the filtering requirements under the above smart door lock scenario.
[0089] In one embodiment, the above-mentioned light sensing result and the open / closed state can be obtained by reading the control pin signal of the light sensor and the control pin signal of the light filtering control unit respectively.
[0090] In the case where the second test requirement includes an imaging requirement, a fourth instruction is issued to the face recognition module, the fourth instruction is used to trigger the visible light camera module to shoot the calibration plate to obtain a third image, and an imaging test result is determined based on the third image, and the imaging test result represents the degree of compliance of the visible light camera module with the imaging requirement. The imaging requirements may include the above-mentioned field of view clarity requirements and image quality requirements, and accordingly, the test process is also based on the same concept, which will not be described in detail here.
[0091] The disclosed embodiments can realize automated testing of the visible light camera module in the face recognition module, and the test results can characterize the degree of compliance of the visible light camera module with the visible light camera requirements in the smart door lock scenario.
[0092] In some embodiments, an algorithm test item may also be determined, and the algorithm test item is intended to test whether the face recognition module can correctly run the algorithm required by its application scenario. Taking the smart door lock scenario as an example, the face recognition module needs to run at least one of the face detection algorithm, feature extraction algorithm, feature comparison algorithm, and liveness detection algorithm in the smart door lock scenario. Accordingly, the algorithm test item includes at least one of the face detection test item, feature extraction test item, feature comparison test item, and liveness detection test item.
[0093] When the above-mentioned algorithm test items include face detection test items, the above-mentioned face recognition module can be triggered to perform face detection to obtain a first algorithm test result. The above-mentioned first algorithm test result represents the degree of compliance of the above-mentioned face recognition module with the face recognition requirements in the above-mentioned smart door lock scenario.
[0094] When the above-mentioned algorithm test items include feature extraction test items, the above-mentioned face recognition module can be triggered to perform feature extraction to obtain a second algorithm test result. The above-mentioned second algorithm test result represents the degree of compliance of the above-mentioned face recognition module with the feature extraction requirements in the above-mentioned smart door lock scenario.
[0095] When the above-mentioned algorithm test items include feature comparison test items, the above-mentioned face recognition module can be triggered to perform feature comparison to obtain a third algorithm test result. The above-mentioned third algorithm test result represents the degree of compliance of the above-mentioned face recognition module with the feature comparison requirements in the above-mentioned smart door lock scenario.
[0096] When the above-mentioned algorithm test items include liveness detection test items, the above-mentioned face recognition module can be triggered to perform liveness detection to obtain a fourth algorithm test result. The above-mentioned fourth algorithm test result represents the degree of compliance of the above-mentioned face recognition module with the liveness detection requirements in the above-mentioned smart door lock scenario.
[0097] The test method for any of the above-mentioned algorithm test items in the embodiments of the present disclosure is based on the same inventive concept, and the following description is given by taking the face detection test item as an example. The face detection test item is intended to test whether the face recognition module can correctly run the preset face detection algorithm, and this face detection algorithm can be built into the face recognition module in the form of a program or instruction. The present disclosure does not limit the specific content of the face detection algorithm, which can be an existing open source algorithm or an original algorithm. Similarly, the present disclosure does not limit the specific content of any of the feature extraction algorithm, feature comparison algorithm, and liveness detection algorithm, which can be an existing open source algorithm or an original algorithm.
[0098] By comparing the running result of the face detection algorithm with the expected face test result, the face detection error can be obtained. If the error is within the error range allowed by the smart door lock scenario, the first algorithm test result indicates that the face recognition module meets the face recognition requirements in the smart door lock scenario. The disclosed embodiments do not limit the running process of the face detection algorithm. For example, the face recognition module can use the built-in picture as the face detection object to run the face detection algorithm.
[0099] The algorithm test project proposed in the embodiment of the present disclosure can test whether the functions of the modules involved in running the above-mentioned algorithms meet the application scenario's running requirements for the above-mentioned algorithms. For example, the smart door lock scenario requires the running of a feature extraction algorithm, and the algorithm requires the CPU (Central Processing Unit), DSP (Digital Signal Processing), and Flash (flash memory) to work together during the running process. The feature extraction test project can at least test whether the CPU, DSP, and Flash meet the smart door lock scenario's running requirements for the feature extraction algorithm.
[0100] In addition, in order to prevent voltage fluctuations from adversely affecting the operation results of the above algorithm during the actual use of the face recognition module, the embodiment of the present disclosure can also take voltage into consideration to test any of the above algorithm test items. For any algorithm test item, the following test process can be performed:
[0101] S201: Determine the voltage range within which the face recognition module operates.
[0102] S202: Determine a plurality of voltage intervals in the above voltage range.
[0103] The embodiments of the present disclosure do not limit the above voltage range and voltage interval. For example, if the operating voltage of the face recognition module is 3 to 5.5, five voltage intervals can be divided in the voltage range, namely [3, 3.5), [3.5, 4), [4, 4.5), [4.5, 5), [5, 5.5]. The units of voltage-related numbers in the embodiments of the present disclosure are all volts (V).
[0104] S203: Determine at least one test voltage in each of the voltage intervals.
[0105] The embodiments of the present disclosure do not limit the specific method for determining the test voltage in the voltage range, nor the specific number of the determined test voltages. Taking the above five voltages as an example, 3, 3.5, 4, 4.5, 5, and 5.5 can be determined as relatively representative test voltages, so that the operating performance of the face recognition module in various voltage operating states can be comprehensively tested.
[0106] S204: Under each of the above test voltages, the target algorithm test item is tested to obtain the target algorithm test result under the above test voltage, where the above target algorithm test item is any one of the above face detection test item, the above feature extraction test item, the above feature comparison test item and the above liveness detection test item.
[0107] Taking the above-mentioned target algorithm project as the face detection test project as an example, the face detection project can be tested under each determined test voltage condition, and the first algorithm test result (target algorithm test result) under the test voltage condition can be obtained. By fully considering the voltage fluctuation during the test process of the target algorithm test project, the ability of the face recognition module to correctly run the relevant algorithm under the changing voltage conditions can be fully tested to ensure the accuracy of the face recognition module algorithm operation results.
[0108] In some embodiments, when the face recognition module includes an audio comprehensive processing module, the audio test items are determined, and the audio comprehensive processing module includes an audio acquisition module and an audio playback module. The embodiments of the present disclosure do not limit the audio acquisition module and the audio playback module, and the audio acquisition module can be various types of microphones, and the audio playback module can be various types of speakers.
[0109] The present disclosure provides a method for testing an audio test item, including:
[0110] S301: Sending a fifth instruction to the face recognition module, where the fifth instruction is used to trigger the first channel of the audio collection module to collect sound to obtain a first collection result.
[0111] The embodiment of the present disclosure does not limit the first channel and the second channel below, and the first channel and the second channel only need to be different channels. For example, the first channel can be the left channel, and correspondingly, the second channel can be the right channel.
[0112] S302: Play standard audio.
[0113] After the fifth instruction is issued, the host computer can play the standard audio. The present disclosure does not limit the standard audio, which can be the audio preset by the tester for testing the audio test item. Playing the standard audio after the fifth instruction is issued can ensure that the first channel is not missed under normal circumstances, and the complete standard audio can be collected.
[0114] S303: After the above-mentioned standard audio is played, the fifth instruction and the sixth instruction are sent to the above-mentioned face recognition module, the above-mentioned fifth instruction is used to trigger the above-mentioned audio playback module to play the sound collected by the above-mentioned audio collection module, and the above-mentioned sixth instruction is used to trigger the second channel of the above-mentioned audio collection module to collect sound to obtain a second collection result.
[0115] In one embodiment, the sixth instruction can be first issued to trigger the second channel of the audio acquisition module to collect sound. When the second channel is turned on, the fifth instruction can be issued to trigger the audio playback module to play the sound collected by the audio acquisition module. This sequence can ensure that the second channel is not missed under normal circumstances.
[0116] S304: Obtaining a comprehensive audio test result according to the standard audio, the first acquisition result and the second acquisition result.
[0117] In the disclosed embodiment, the audio comprehensive test result represents the degree to which the audio comprehensive processing module complies with the audio processing requirements in the application scenario.
[0118] The present disclosure does not limit the specific criteria for obtaining the frequency synthesis test results. In one embodiment, when the difference between the above standard audio, the above first acquisition result and the above second acquisition result is less than the upper limit of the difference in the audio processing requirements of the application scenario, it can be determined that the audio synthesis processing module meets the audio processing requirements of the application scenario. By setting the above test process, the present disclosure can simultaneously test different channels of the audio acquisition device and whether the audio playback device can meet the requirements of the application scenario through simple test steps. The test steps are simple but the test effect is comprehensive.
[0119] In some embodiments, at least one of the firmware version number test item, communication function test item, memory function test item, and serial number storage test item can also be determined based on the actual test situation. The embodiments of the present disclosure are not limited to this, and the specific testing process is described below.
[0120] S40: Obtain the above-mentioned face recognition module test result according to the above-mentioned test results.
[0121] The specific expression form of the test results of each test item is not limited in the embodiments of the present disclosure, and the expression form of the test results of each test item may be the same or different. Exemplarily, the test results of the test items may be characterized in a binary form or a scoring form. If it is a test result in a binary form, the test result may characterize whether the test item fully meets the functional requirements of the application scenario or does not meet the functional requirements of the application scenario at all. If it is a test result in a scoring form, the test result may ensure the specific degree to which the test item meets the functional requirements of the application scenario.
[0122] In the disclosed embodiment, if the test results corresponding to each test item indicate that the module related to the test item meets the functional requirements of the application scenario, then it is determined that the test result of the face recognition module indicates that the test has passed, that is, the face recognition module can be used in the actual application scenario after passing the test. If the test result of any test item indicates that the module related to the test item does not fully meet the functional requirements of the application scenario, the test fails, and such a face recognition module cannot be put into the actual application scenario temporarily. This method for determining the face module test result can ensure that the face recognition module that has passed the test can fully meet the functional requirements of the application scenario.
[0123] Specifically, if the test result of a test item is in binary form, it can be directly determined whether the module related to the test item meets the functional requirements of the above application scenario. If the test result of a test item is in scoring form, a corresponding score threshold can be set. If the score of the test result is higher than the score threshold, it is determined that the functional module related to the test item corresponding to the test result meets the functional requirements of the above application scenario.
[0124] The disclosed embodiment can also display the above face recognition module test results on the test interface. Figure 2 For example, Figure 2 The display interface on the right can be used to display the test results of the face recognition module, so that the tester can intuitively understand the test results. Figure 2 The display interface can also display the specific test process and the test results corresponding to each test item.
[0125] In the related art, the detection form of the face recognition module is single, the hardware coverage of the detection is low, the detection process is inefficient, and a large amount of manual participation is required, and the degree of automation is low. The face recognition module testing method provided by the embodiment of the present disclosure can determine the test items according to the functional requirements of the application scenario, and complete the test of the test items by automatically controlling the face recognition module, and finally obtain the face recognition module test results. Taking the functional requirements of the application scenario as the test motivation, the test items of the face recognition module are standardized, and the test requirements of each test item are clarified, so that the test results are more objective, thereby ensuring that the face recognition module that passes the test can fully meet the functional requirements of its application scenario. The overall test process can be implemented fully automatically, significantly improving the test efficiency and test quality.
[0126] Figure 5 The face recognition module according to the embodiment of the present disclosure is shown in the figure, which includes a binocular camera module 1, a visible light camera module 2, an audio integrated processing module 3, a Wi-Fi module 4, a data processing module 5 (including a CPU and a DSP), a Flash module 6 and a DDR module 7. For this type of face recognition module, the embodiment of the present disclosure provides a test method for its application in the smart door lock scenario, please refer to Figure 6 , the above method comprises:
[0127] Step 1: Establish a communication connection between the host computer and the face recognition module.
[0128] In the actual test process, the tester can place the face recognition module on the tooling, then power on the face recognition module, and connect the face recognition module to the host computer. For example, if the host computer is a computer terminal, a connection can be established with the face recognition module through the serial port of the computer terminal. After the connection is established, a test control interface for testing the face recognition module can be displayed in the host computer. The interface can refer to Figure 2 .
[0129] Step 2: Get the test parameters.
[0130] In the actual test process, the tester can set the test parameters in the test control interface, or automatically obtain the test parameters by reading the test script. In one embodiment, the tester can set the test parameters by performing the following operations:
[0131] The tester can enter the serial number, standby standard current, Wi-Fi name, password, choose whether to perform DDR test, and set the number of DDR tests in the test control interface. The disclosed embodiment does not limit the method for the tester to obtain the serial number. For example, the tester can use a barcode scanner to scan the identification code on the face recognition module, which includes the serial number information. The serial number of the face recognition module is used to track and trace the face recognition module.
[0132] Step 3: Start the test of the firmware version number test item.
[0133] Testers can click Figure 2 The test process can be started by clicking the "Start" control in the test, and subsequent tests of the test items can be automatically started and executed. The host computer can send a firmware version acquisition instruction. After receiving the instruction, the face recognition module reads the stored firmware version number from the Flash module and returns the version number to the host computer. The host computer can determine whether the version number is consistent with the serial number obtained in the second step. If they are consistent, it means that the firmware version number test item has passed the test.
[0134] Step 4: Start testing the communication function test items.
[0135] The host computer sends a Wi-Fi connection command to trigger the face recognition module to connect to Wi-Fi according to the Wi-Fi name and password set in the second step, and then returns the Wi-Fi strength. The host computer uses this strength to determine whether the communication function test project has passed the test.
[0136] Step 5: Start the test of the binocular camera test project.
[0137] for Figure 5 To test the binocular camera module in the face recognition module, it is necessary to test whether the module meets the image quality requirements, field of view clarity requirements and binocular position requirements at the same time. The specific test process is described above. When all three requirements are met, the binocular camera test project is tested.
[0138] Step 6: Start testing the visible light camera module test items.
[0139] for Figure 5 To test the visible light camera module in the face recognition module, it is necessary to test whether the module meets the photosensitivity requirements, light filtering requirements and imaging requirements at the same time. The specific testing process is described above. When all three requirements are met, the visible light camera module test item is tested.
[0140] Step 7: Start testing the algorithm test project.
[0141] for Figure 5To test the face recognition module, it is necessary to test the face detection test items, feature extraction test items, feature comparison test items and liveness detection test items at the same time. When these four test items are tested and passed, the seventh step test is passed. Of course, the voltage fluctuation can also be fully considered in the test process of each specific test item. The specific test process is referred to the previous article and will not be repeated here.
[0142] Step 8: Start the test of the audio test item.
[0143] for Figure 5 The audio integrated processing module in the face recognition module is tested. The test process refers to the previous article.
[0144] Step 9: Start the test of the memory function test project.
[0145] The memory function test project can be used to test the DDR module. Specifically, the host computer sends a DDR test command, and the face recognition module uses the DDR test tool to test the DDR module after receiving the command and feedback the test result. The present disclosure does not limit the DDR test tool, and it can use an open source test tool, which tests the performance of the DDR module by reading and writing the DDR module multiple times. The number of tests of the DDR test tool can be set in the second step, which will not be repeated here.
[0146] Step 10: Start the test of the serial number storage test project
[0147] The host computer can send the serial number obtained in the second step to the face recognition module, which stores the serial number in the Flash module of its main board and uses the successful storage as a sign that the face recognition module has passed the test.
[0148] Through the above steps, the face recognition module test result (target test result) can be obtained. If any step before this step fails the test, the test process can be directly exited. The target test result is that the test fails. If the tenth step is executed and the tenth step is executed successfully, it can be characterized that the face recognition module has passed the test, and by storing the serial number in the face recognition module, it is convenient to trace the later performance of the face recognition module. The embodiment of the present disclosure does not limit the execution order of the above steps 3 to 9, and can be adjusted according to actual conditions.
[0149] If the face recognition module test is completed, the tester can test the next face recognition module. During the overall testing process, the tester only needs to install the test equipment and set the necessary test parameters, and the host computer and the face recognition module can automatically interact to complete the subsequent testing process. The degree of test automation is greatly improved, and a relatively complete test can be performed on multiple hardware modules of the face recognition module. Through systematic and automated testing, the test efficiency and quality are significantly improved, which is especially suitable for testing scenarios of large quantities of face recognition modules on production lines.
[0150] Those skilled in the art will appreciate that, in the above method of the specific implementation, the order in which the steps are written does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0151] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.
[0152] Figure 7 A block diagram of a face recognition module testing device according to an embodiment of the present disclosure is shown, and the device comprises:
[0153] The communication establishing module 10 is used to establish a communication connection with the above-mentioned face recognition module.
[0154] The test item determination module 20 is used to determine at least one test item of the face recognition module, and the test item is used to perform a functional test on the face recognition module based on an application scenario.
[0155] The test execution module 30 is used to perform functional tests on each of the above test items by interacting with the above face recognition module to obtain test results corresponding to the above test items. The above test results represent the degree of compliance of the modules related to the above test items with the functional requirements of the above application scenarios.
[0156] The test result determination module 40 is used to obtain the above-mentioned face recognition module test result according to the above-mentioned test results.
[0157] In some possible implementations, the application scenario is a smart door lock scenario, and the test item determination module is used to determine the binocular camera test items when the face recognition module includes a binocular camera module: the binocular camera test items include a first test requirement, and the test execution module includes a binocular test unit, and the binocular test unit is used to issue a first instruction to the face recognition module, and the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position to obtain a first image output by the first camera in the binocular camera module, and to obtain a second image output by the second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and the edge face on the calibration plate is located at the edge of the field of view of the binocular camera module, and the center face on the calibration plate is opposite to the binocular camera module; according to the first test requirement, the first image and the second image are detected to obtain the binocular camera test result.
[0158] In some possible implementations, the binocular test unit is used to perform at least one of the following situations: when the first test requirement includes an image quality requirement, image quality detection is performed on both the first image and the second image to obtain an image quality test result; when the first test requirement includes a field of view clarity requirement, field of view clarity detection is performed on both the first image and the second image to obtain a field of view clarity test result; when the first test requirement includes a binocular position requirement, relative position detection is performed on the first image and the second image to obtain a relative position test result.
[0159] In some possible implementations, the field of view clarity requirement includes the number of target faces, and the binocular test unit is used to extract faces in the first image and the second image, respectively, to obtain the first number of faces and the second number of faces; when the first number of faces and the second number of faces are both equal to the target number of faces, a field of view clarity test result is obtained, which indicates that the field of view clarity requirement is met; the binocular position requirement includes a target overlap range, and the binocular test unit is used to extract a first target face in the first image and a second target face in the second image, and the first target face and the second target face both correspond to the same face in the calibration plate; the actual overlap degree between the first target face and the second target face is calculated; when the actual overlap degree falls within the target overlap range, a relative position test result is obtained, which indicates that the binocular position requirement is met.
[0160] In some possible implementations, the above-mentioned application scenario is a smart door lock scenario, and the above-mentioned test item determination module is used to determine the visible light camera module test item when the above-mentioned face recognition module includes a visible light camera module; the above-mentioned visible light camera module test item includes a second test requirement, and the above-mentioned test execution module includes a visible light test unit, and the above-mentioned visible light test unit is used to execute at least one of the following situations: when the above-mentioned second test requirement includes a photosensitivity requirement, a second instruction is issued to the above-mentioned face recognition module, and the above-mentioned second instruction is used to obtain the photosensitivity result of the light sensor; and obtain the photosensitivity test result according to the above-mentioned photosensitivity result; when the above-mentioned second test requirement includes a filtering requirement, a third instruction is issued to the above-mentioned face recognition module, and the above-mentioned third instruction obtains the opening and closing state of the filtering control unit; and obtains the filtering test result according to the above-mentioned opening and closing state; when the above-mentioned second test requirement includes an imaging requirement, a fourth instruction is issued to the above-mentioned face recognition module, and the above-mentioned fourth instruction is used to trigger the above-mentioned visible light camera module to shoot the calibration plate to obtain a third image, and determine the imaging test result according to the above-mentioned third image.
[0161] In some possible implementations, the application scenario is a smart door lock scenario, and the test item determination module is used to determine the algorithm test items, and the algorithm test items include at least one of a face detection test item, a feature extraction test item, a feature comparison test item, and a liveness detection test item; the test execution module is used to execute at least one of the following situations: when the algorithm test items include face detection test items, the face recognition module is triggered to perform face detection to obtain a first algorithm test result; when the algorithm test items include feature extraction test items, the face recognition module is triggered to perform feature extraction to obtain a second algorithm test result; when the algorithm test items include feature comparison test items, the face recognition module is triggered to perform feature comparison to obtain a third algorithm test result; when the algorithm test items include liveness detection test items, the face recognition module is triggered to perform liveness detection to obtain a fourth algorithm test result.
[0162] In some possible implementations, the test execution module is further used to determine the voltage range in which the face recognition module operates; determine multiple voltage intervals in the voltage range; and test the target algorithm test item at each of the test voltages to obtain the target algorithm test result at the test voltage, wherein the target algorithm test item is any one of the face detection test item, the feature extraction test item, the feature comparison test item, and the liveness detection test item.
[0163] In some possible implementations, the test item determination module is used to determine the audio test item when the face recognition module includes an audio comprehensive processing module, and the audio comprehensive processing module includes an audio acquisition module and an audio playback module: the test execution module is used to issue a fifth instruction to the face recognition module, and the fifth instruction is used to trigger the first channel of the audio acquisition module to collect sound to obtain a first collection result; play standard audio; after the standard audio is played, issue a fifth instruction and a sixth instruction to the face recognition module, and the fifth instruction is used to trigger the audio playback module to play the sound collected by the audio acquisition module, and the sixth instruction is used to trigger the second channel of the audio acquisition module to collect sound to obtain a second collection result; obtain an audio comprehensive test result based on the standard audio, the first collection result and the second collection result, and the audio comprehensive test result represents the degree of compliance of the audio comprehensive processing module with the audio processing requirements in the above application scenario.
[0164] In some possible implementations, the test item determination module is used to determine at least one of a firmware version number test item, a communication function test item, a memory function test item, and a serial number storage test item.
[0165] In some possible implementations, the test result determination module is used to determine that the face recognition module test result indicates that the test has passed if the test results corresponding to each test item indicate that the module related to the test item meets the functional requirements of the application scenario.
[0166] In some possible implementations, the device further includes a visualization interaction module, which is used to display a test interface; in response to a trigger instruction for the test interface, test parameters are obtained, and the test parameters are used to test at least one test item; and the test results of the face recognition module are displayed on the test interface.
[0167] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0168] The present disclosure also provides a computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and when the at least one instruction or at least one program is loaded and executed by a processor, the method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0169] The embodiments of the present disclosure also provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the above method is implemented.
[0170] The embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to perform the method.
[0171] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0172] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0173] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0174] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0175] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0176] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0177] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0178] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0179] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0180] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0181] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0182] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0183] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.
[0184] Fig. 9 1 is a block diagram of another electronic device according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Fig. 9, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0185] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0186] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0187] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0188] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0189] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0190] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C+, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0191] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0192] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0193] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0194] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the above-mentioned module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0195] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A face recognition module testing method, characterized in that: The application scenario of the method is a smart door lock scenario, and the method includes: Establishing a communication connection with the face recognition module; Determine at least one test item of a face recognition module, wherein the test item is used to perform a functional test on the face recognition module based on an application scenario; the step of determining at least one test item of the face recognition module includes: when the face recognition module includes a binocular camera module, determining a binocular camera test item; the binocular camera test item is implemented by triggering the binocular camera module to shoot a calibration plate placed at a target position; the binocular camera test item includes a first test requirement; By interacting with the face recognition module, a functional test is performed on each of the test items to obtain a test result corresponding to the test item, and the test result represents the degree of compliance of the module related to the test item with the functional requirements of the application scenario; the test item is tested by interacting with the face recognition module to obtain a test result corresponding to the test item, including: sending a first instruction to the face recognition module, the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position, obtain a first image output by a first camera in the binocular camera module, and obtain a second image output by a second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and the edge face on the calibration plate is located at the edge of the field of view of the binocular camera module, and the center face on the calibration plate is opposite to the binocular camera module; the edge face on the calibration plate is used to detect the field of view clarity of the binocular camera module; according to the first test requirement, the first image and the second image are detected to obtain a binocular camera test result; Obtaining face recognition module test results according to the obtained test results; In the case where the test results corresponding to the test items include a visual field clarity test result and a relative position test result, the visual field clarity test result and the relative position test result are obtained by the following operations respectively: Respectively extracting faces in the first image and the second image respectively output by the first camera and the second camera in the dual-mode binocular camera module in the face recognition module to obtain the number of first faces and the number of second faces; when the number of first faces and the number of second faces are both equal to the number of target faces, obtaining a field of view clarity test result indicating that the field of view clarity requirement is met; A first target face in the first image and a second target face in the second image are extracted, wherein the first target face and the second target face both correspond to the same face in the calibration plate; an actual overlap degree between the first target face and the second target face is calculated; and when the actual overlap degree falls within a target overlap range, a relative position test result characterizing that binocular position requirements are met is obtained.
2. The method according to claim 1, characterized in that The detecting the first image and the second image according to the first test requirement to obtain a binocular camera test result also includes: In the case where the first test requirement includes an image quality requirement, image quality detection is performed on both the first image and the second image to obtain an image quality test result.
3. The method according to claim 1 or 2, characterized in that: The application scenario is a smart door lock scenario, and the determining of at least one test item of the face recognition module includes: when the face recognition module includes a visible light camera module, determining a visible light camera module test item; The visible light camera module test items include a second test requirement, and the test results corresponding to the test items are obtained by testing each of the test items through interaction with the face recognition module, including at least one of the following situations: In the case where the second test requirement includes a photosensitivity requirement, a second instruction is issued to the face recognition module, wherein the second instruction is used to obtain a photosensitivity result of the light sensor; and a photosensitivity test result is obtained according to the photosensitivity result; In the case where the second test requirement includes a light filtering requirement, a third instruction is issued to the face recognition module, wherein the third instruction obtains an on / off state of a light filtering control unit; and a light filtering test result is obtained according to the on / off state; In the case where the second test requirement includes an imaging requirement, a fourth instruction is issued to the face recognition module, wherein the fourth instruction is used to trigger the visible light camera module to photograph the calibration plate to obtain a third image, and an imaging test result is determined based on the third image.
4. The method according to claim 1 or 2, characterized in that: The application scenario is a smart door lock scenario, and the determining of at least one test item of the face recognition module includes: determining an algorithm test item, wherein the algorithm test item includes at least one of a face detection test item, a feature extraction test item, a feature comparison test item, and a liveness detection test item; The testing of each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes at least one of the following situations: In a case where the algorithm test item includes a face detection test item, triggering the face recognition module to perform face detection to obtain a first algorithm test result; In the case where the algorithm test item includes a feature extraction test item, triggering the face recognition module to perform feature extraction to obtain a second algorithm test result; In the case where the algorithm test item includes a feature comparison test item, triggering the face recognition module to perform feature comparison to obtain a third algorithm test result; When the algorithm test item includes a liveness detection test item, the face recognition module is triggered to perform liveness detection to obtain a fourth algorithm test result.
5. The method according to claim 4, characterized in that The step of testing each of the test items by interacting with the face recognition module to obtain a test result corresponding to the test item further includes: Determining the voltage range within which the face recognition module operates; determining a plurality of voltage intervals within the voltage range; determining at least one test voltage in each of the voltage intervals; Under each of the test voltages, the target algorithm test item is tested to obtain the target algorithm test result under the test voltage, and the target algorithm test item is any one of the face detection test item, the feature extraction test item, the feature comparison test item and the liveness detection test item.
6. The method according to claim 1 or 2, characterized in that: The determining of at least one test item of the face recognition module includes: determining an audio test item when the face recognition module includes an audio comprehensive processing module, wherein the audio comprehensive processing module includes an audio acquisition module and an audio playback module; The testing of each of the test items through interaction with the face recognition module to obtain a test result corresponding to the test item includes: Sending a fifth instruction to the face recognition module, wherein the fifth instruction is used to trigger the first channel of the audio collection module to collect sound to obtain a first collection result; Play standard audio; After the standard audio is played, a fifth instruction and a sixth instruction are sent to the face recognition module, wherein the fifth instruction is used to trigger the audio playback module to play the sound collected by the audio collection module, and the sixth instruction is used to trigger the second channel of the audio collection module to collect sound to obtain a second collection result; An audio comprehensive test result is obtained according to the standard audio, the first acquisition result and the second acquisition result.
7. The method according to claim 1 or 2, characterized in that: The determining of at least one test item of the face recognition module includes: determining at least one of a firmware version number test item, a communication function test item, a memory function test item, and a serial number storage test item.
8. The method according to claim 1 or 2, characterized in that: The face recognition module test result is obtained according to each of the test results obtained, including: If the test results corresponding to each test item indicate that the module related to the test item meets the functional requirements of the application scenario, it is determined that the face recognition module test result indicates that the test has passed.
9. The method according to claim 1 or 2, characterized in that: The method further comprises: Display the test interface; In response to a trigger instruction on the test interface, obtaining test parameters, wherein the test parameters are used to test at least one test item; The face recognition module test results are displayed on the test interface.
10. A face recognition module testing device, characterized in that: The application scenario of the method is a smart door lock scenario, and the device includes: A communication establishment module, used to establish a communication connection with the face recognition module; A test item determination module is used to determine at least one test item of a face recognition module, wherein the test item is used to perform a functional test on the face recognition module based on an application scenario; the at least one test item of the face recognition module is determined, including: when the face recognition module includes a binocular camera module, determining a binocular camera test item; the binocular camera test item is implemented by triggering the binocular camera module to shoot a calibration plate placed at a target position; the binocular camera test item includes a first test requirement; A test execution module, used to perform functional testing on each of the test items through interaction with the face recognition module to obtain test results corresponding to the test items, wherein the test results represent the degree of compliance of the modules related to the test items with the functional requirements of the application scenario; the test of each of the test items through interaction with the face recognition module to obtain test results corresponding to the test items comprises: issuing a first instruction to the face recognition module, wherein the first instruction is used to trigger the binocular camera module to shoot a calibration plate placed at a target position to obtain a first image output by a first camera in the binocular camera module, and to obtain a second image output by a second camera in the binocular camera module; the shape of the calibration plate is determined according to the target position, and the edge face on the calibration plate is located at the edge of the field of view of the binocular camera module, and the center face on the calibration plate is opposite to the binocular camera module; the edge face on the calibration plate is used to detect the field of view clarity of the binocular camera module; according to the first test requirement, the first image and the second image are detected to obtain the binocular camera test result; A test result determination module, used to obtain a face recognition module test result based on the obtained test results; The test execution module is also used for the following operations: In the case where the test results corresponding to the test items include a visual field clarity test result and a relative position test result, the visual field clarity test result and the relative position test result are obtained by the following operations respectively: Respectively extracting faces in the first image and the second image respectively output by the first camera and the second camera in the dual-mode binocular camera module in the face recognition module to obtain the number of first faces and the number of second faces; when the number of first faces and the number of second faces are both equal to the number of target faces, obtaining a field of view clarity test result indicating that the field of view clarity requirement is met; A first target face in the first image and a second target face in the second image are extracted, wherein the first target face and the second target face both correspond to the same face in the calibration plate; an actual overlap degree between the first target face and the second target face is calculated; and when the actual overlap degree falls within a target overlap range, a relative position test result characterizing that binocular position requirements are met is obtained.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the face recognition module testing method as described in any one of claims 1 to 9.
12. An electronic device, characterized in that: It includes at least one processor and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the face recognition module testing method as described in any one of claims 1 to 9 by executing the instructions stored in the memory.
