AR equipment testing method, system and equipment and storage medium
Through the automated testing process of embedded controllers, moving parts and cameras, the problem of high costs and mis-issued instructions caused by manual operations in optical testing of AR equipment is solved, and an efficient and reliable testing process is achieved.
Patent Information
- Application Number
- CN202410527363.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-10-11
AI Technical Summary
Existing optical testing methods for AR equipment rely on manual operation, resulting in high costs and mis-issued instructions, affecting testing efficiency and reliability.
Embedded controllers are used to communicate with moving parts and cameras to automatically execute the AR device testing process, including receiving startup signals, moving parts, sending projection instructions, shooting and detecting pictures, and realizing automated testing.
It improves the efficiency and reliability of AR equipment testing, reduces manual operation errors, and improves integration.
Smart Images

Figure CN118758929A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to a testing method, system, device and storage medium for an AR device. Background Art
[0002] AR (Augmented Reality) equipment is a near-eye display device that overlaps the image generated by the device with the real world. Most technologies use optical components for reflection, refraction, and diffraction to ultimately form an image on the retina. Currently, AR equipment has been widely used in various fields. In order to ensure the reliability of AR equipment, optical testing is required.
[0003] When conducting optical tests, the control scheme of industrial computer + PLC (Programmable Logic Controller) is currently widely used. Specifically, the staff operates the host computer based on the keyboard and mouse to send instructions to the PLC, so that the PLC controls the motion mechanism to reach the required position, and the staff operates the host computer to send instructions to the industrial computer, so that the industrial computer controls the interaction between the visual camera and the AR device. In the case of long-term and large-scale product testing, the labor cost is high, and it is also easy for the staff to miss or send the wrong instructions, which affects the test efficiency and test reliability.
[0004] In summary, how to effectively implement the testing of the AR device under test and ensure the testing efficiency and reliability is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a test method, system, device and storage medium for an AR device, so as to effectively implement the test of the AR device under test and ensure the test efficiency and reliability.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for testing an AR device, wherein a controller is disposed in a workstation and is communicatively connected with a moving component and a first camera in the workstation, and a picture card is fixed on a designated panel of the workstation. The method for testing the AR device is applied to the controller, and includes:
[0008] After the AR device under test is fixed on the moving part, a running start signal is received;
[0009] After receiving the operation start signal, controlling the moving component to move to a first target position;
[0010] Sending a first projection instruction to the AR device under test, so that the AR device under test displays a standard image on its first screen after receiving the first projection instruction;
[0011] Controlling a first camera to shoot the first screen of the AR device under test at a first designated position with the picture card as a background, and receiving a first shot picture sent by the first camera;
[0012] Perform corner point detection on the first captured image to obtain a first detection result and output the first detection result.
[0013] In one embodiment, after receiving the operation start signal and before controlling the moving component to move to the target position, the method further includes:
[0014] The AR device under test is controlled to move to each calibration position in sequence, and the Camera-IMU joint calibration of the AR device under test is performed through shooting by the first camera, so that the AR device under test obtains the standard image.
[0015] In one embodiment, after the AR device under test is fixed on the moving component, receiving the operation start signal includes:
[0016] After the AR device under test is fixed on the moving part, a running start signal generated by a running button is received;
[0017] The operation button is arranged on the outer shell of the workstation, and when the operation button is operated, the operation button sends the operation start signal to the controller.
[0018] In one embodiment, after obtaining the first detection result and outputting the first detection result, the method further includes:
[0019] The first captured image is outputted.
[0020] In one implementation, outputting the first captured image includes:
[0021] Marking the corner point detection area in the first captured image, and outputting the first captured image to a first screen for display after marking;
[0022] Wherein, the first screen is arranged on the outer shell of the workstation.
[0023] In one embodiment, the controller is an embedded controller, which is communicatively connected to the moving component via a pulse signal output interface, the embedded controller is communicatively connected to the first camera via a network port, and the embedded controller is communicatively connected to the AR device under test via serial port communication.
[0024] In one embodiment, the image card is an image card with switchable image card content, and after the controller sends a first image projection instruction to the AR device under test, the image card content displayed by the image card is the first image card content;
[0025] The testing methods for AR devices also include:
[0026] Controlling the moving component to move to a second target position;
[0027] Sending a second projection instruction to the AR device under test, so that the AR device under test displays a standard image on its second screen after receiving the second projection instruction;
[0028] Controlling the first camera to shoot the second screen of the AR device under test at a second designated position with the second picture card content shown by the picture card as the background, and receiving a second shot picture sent by the first camera;
[0029] Perform corner point detection on the second captured image to obtain a second detection result and output the second detection result.
[0030] In a second aspect, the present invention provides a test system for an AR device, wherein a controller is disposed in a workstation and is communicatively connected with a moving component in the workstation and a first camera, and a picture card is fixed on a designated panel of the workstation. The test system for the AR device is applied to the controller, and includes:
[0031] A running start signal receiving module, used for receiving a running start signal after the AR device under test is fixed on the moving part;
[0032] A moving component control module, used for controlling the moving component to move to a first target position;
[0033] The AR device control module under test is used to send a first projection instruction to the AR device under test, so that the AR device under test displays a standard image on its first screen after receiving the first projection instruction;
[0034] A first camera control module is used to control the first camera to shoot the first screen of the AR device under test at a first specified position with the picture card as the background, and receive a first shot picture sent by the first camera;
[0035] The first detection result output module is used to perform corner point detection on the first captured image, obtain a first detection result and output the first detection result.
[0036] In a third aspect, the present invention provides a testing device for an AR device, comprising:
[0037] Memory for storing computer programs;
[0038] A processor is used to execute the computer program to implement the steps of the AR device testing method as described in the claim.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the test method of the AR device as described in the claim are implemented.
[0040] By applying the technical solution provided in the embodiment of the present invention, the automatic test of the AR device under test is realized based on the controller arranged in the workstation and connected to the moving part and the first camera in the workstation. Specifically, after the AR device under test is fixed on the moving part, the controller only needs to receive the operation start signal to automatically execute the complete test process, that is, the controller first controls the moving part to move to the first target position, and then sends the first projection command to the AR device under test, so that the AR device under test displays the standard image on its first screen after receiving the first projection command. After that, the controller controls the first camera to shoot the first screen of the AR device under test at the first specified position with the picture card as the background, and receives the first shot picture sent by the first camera. Finally, the controller performs corner point detection on the first shot picture, obtains the first detection result and outputs the first detection result. It can be seen that after receiving the operation start signal, the controller can immediately execute the complete test process without the need for the staff to perform step-by-step operations through the keyboard and mouse, which is conducive to ensuring the test efficiency and reliability. In addition, the controller, the moving part, the picture card and the first camera communication are all arranged in the workstation, which is conducive to improving the integration.
[0041] In summary, the solution of the present application can effectively implement the testing of the AR device under test, ensuring the testing efficiency and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A flowchart of an implementation method of a testing method for an AR device provided in a specific embodiment of the present invention;
[0044] Figure 2 It is a front schematic diagram of a workstation housing in a specific embodiment of the present invention;
[0045] Figure 3 A schematic diagram of the connection relationship of the controller in a specific implementation mode of the present invention;
[0046] Figure 4 It is a partial schematic diagram of the interior of a workstation in a specific implementation manner of the present invention;
[0047] Figure 5 A schematic diagram of the structure of a testing system for an AR device provided in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0048] The core of the present invention is to provide a testing method for an AR device, which can effectively implement the testing of the AR device under test and ensure the testing efficiency and reliability.
[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0050] Please refer to Figure 1 , Figure 1 This is an implementation flow chart of a test method for an AR device provided in a specific embodiment of the present invention. The controller is arranged in a workstation and is in communication connection with a moving component and a first camera in the workstation. The image card is fixed on a designated panel of the workstation. The method can be applied to the controller and includes the following steps:
[0051] Step S101: After the AR device under test is fixed on the moving component, an operation start signal is received.
[0052] There are many specific types of AR devices under test, such as AR glasses under test. In practical applications, the AR device under test can be automatically picked up by mechanical equipment and fixed on the moving parts in the workstation, or the AR device under test can be manually fixed on the moving parts in the workstation by a worker. Figure 2, which is a front schematic diagram of the workstation shell. A rolling door 201 is provided on the workstation shell. The staff can open the rolling door 201 to place the AR device under test and fix it on the moving parts in the workstation. It can be understood that after the test is completed, the rolling door 201 can also be opened to take out the AR device under test and place the next AR device under test.
[0053] The controller is arranged in the workstation. In practical applications, in order to achieve high concentration and low power consumption, the controller may be an embedded controller.
[0054] When the controller receives the run start signal, it means that the AR device under test has been successfully fixed on the moving part and the subsequent test process can be carried out. Figure 2 In the case of, a first screen 202 is provided on the front of the workstation housing, for example, a touch screen, and the staff can send a run start signal to the controller by clicking the touch screen. Of course, other implementations can also have other ways of sending the run start signal. For example, in one case, in order to facilitate the staff's operation, the staff can press a button to make the controller confirm that it has received the run start signal and can perform subsequent test processes.
[0055] That is, in a specific implementation of the present invention, step S101 may specifically include: after the AR device under test is fixed on the moving component, receiving an operation start signal generated by an operation button;
[0056] In this embodiment, the operation button can be arranged on the outer shell of the workstation to facilitate the operation of the staff. When the operation button is operated by the staff, the operation button can generate an electrical signal to the relevant pin of the controller, so that the controller determines that it has received the operation start signal.
[0057] also, Figure 2 Also shown are two indicator lights 203. The left one is, for example, a green light. When it is on, it means that the test is in progress and the status is normal. The right one is, for example, a red light. When it is on, it means that the test status is abnormal. For example, the voltage in the circuit is abnormal, the current is abnormal, the movement of the moving parts is abnormal, etc., which can be regarded as abnormal test status and the current test is immediately suspended to wait for the staff to handle it.
[0058] Step S102: After receiving the operation start signal, control the moving component to move to the first target position.
[0059] The controller is arranged in the workstation and is in communication connection with the moving parts in the workstation, such as Figure 3In the implementation mode, the controller is specifically an embedded controller, which is connected to the touch screen on the front of the workstation housing through the SPI communication interface, and is connected to the moving part through the pulse signal output interface. After the moving part receives the pulse signal sent by the controller, it can move and finally reach the preset first target position. That is, in this example, the controller specifically controls the moving part based on the pulse signal, which is relatively simple and convenient in control.
[0060] The specific structure of the moving parts can be set and adjusted according to actual needs. For example, it can usually include a motor, a motor driver for driving the motor and controlled by a controller, and a mechanical motion mechanism connected to the motor. For example, the mechanical motion mechanism is specifically a multi-axis robotic arm, and the AR device under test is fixed on the multi-axis robotic arm.
[0061] The moving part moves to the first target position, which means that the AR device under test has reached the required position, and it can be understood that the specific coordinates of the first target position can be predetermined based on the actual scene so that the moving part can accurately reach the position.
[0062] Step S103: Sending a first projection instruction to the AR device under test, so that the AR device under test displays a standard image on its first screen after receiving the first projection instruction.
[0063] The controller needs to communicate with the AR device under test, for example Figure 3 In the example, the embedded controller communicates with the AR device under test through serial port communication, which is a communication method that most AR devices can usually support.
[0064] After the moving part moves to the first target position, it means that the AR device under test has reached the required position. At this time, the controller can send a first projection instruction to the AR device under test, so that after the AR device under test receives the first projection instruction, it displays the standard image on its own first screen. For example, when the AR device under test has only one screen, after receiving the first projection instruction, the standard image is displayed in full screen.
[0065] The standard image is a calibrated image used to implement optical testing. For example, in one scenario, the AR device under test has been pre-calibrated with the Camera-IMU joint calibration in one or more workstations at the previous stage, and the standard image required for step S103 has been obtained and stored in the AR device under test. At this time, the AR device under test can directly display the standard image on its first screen.
[0066] Further, in a specific embodiment of the present invention, after step S101 and before controlling the moving component to move to the target position in step S102, the following may also be included:
[0067] The AR device under test is controlled to move to each calibration position in sequence, and the Camera-IMU (Inertial Measurement Unit) joint calibration of the AR device under test is performed through shooting by the first camera, so that the AR device under test obtains a standard image.
[0068] In this implementation, it is considered that the calibration performed by the previous workstation can also be integrated in the workstation of the present application, that is, one workstation is used to complete the functions of multiple workstations, which further improves the integration and is conducive to further improving the overall test efficiency of the AR device under test.
[0069] Specifically, it is necessary to use moving parts to control the AR device under test to move to each preset calibration position in sequence. Whenever a calibration position is reached, it is necessary to use the first camera to take pictures. Finally, based on these captured images, the Camera-IMU joint calibration of the AR device under test is realized, so that a standard image of the AR device under test that has completed the calibration can be established.
[0070] In addition, it should be noted that in the process of Camera-IMU joint calibration, depending on the specific implementation method selected, the first camera can be fixed or moved as needed. Of course, if the first camera needs to be moved, it is necessary to additionally configure a moving component dedicated to controlling the movement of the first camera in the workstation, and under the control of the controller, the first camera can reach the required specified positions.
[0071] Step S104: Control the first camera to shoot a first screen of the AR device under test at a first designated position with the picture card as the background, and receive a first shot picture sent by the first camera.
[0072] The controller is arranged to communicate with the first camera, for example Figure 3 In the implementation manner, considering that many cameras have network ports, the embedded controller is specifically connected to the first camera for communication via the network port.
[0073] After receiving the first projection instruction, the AR device under test can display a standard image on its first screen. At this time, it is necessary to control the first camera to shoot at the first designated position. For example, in an occasion, when there is no need to move the first camera, the first camera can be fixed at the first designated position in advance. The specific coordinates of the first designated position can be preset according to actual needs. The first camera is at this position to simulate the eyes of a person wearing the AR device under test viewing the first screen at this position.
[0074] See also Figure 4, is a partial schematic diagram of the interior of a workstation in one embodiment. The graphics card needs to be fixed on a designated panel of the workstation, usually on the back panel of the workstation. Figure 4 The diagram card is shown fixed to the rear panel of the workstation, and Figure 4 In the example, the AR device under test is marked as 401 , the image card is marked as 402 , and the moving part is marked as 403 .
[0075] When executing step S104, the first camera uses the picture card as the background to shoot the first screen of the AR device under test for displaying the standard image, and receives the first shot picture sent by the first camera, that is, the first camera takes pictures through the first screen of the AR device under test. The picture obtained after the shooting is successful is called the first shot picture, and the first camera will return the first shot picture to the controller.
[0076] Step S105: performing corner point detection on the first captured image, obtaining a first detection result and outputting the first detection result.
[0077] When the first camera takes a picture through the first screen of the AR device under test, ideally, the corresponding marked points of the picture card are optically matched with the corresponding corner points of the standard image. This process is also called corner point detection for the first captured image, and then a first detection result can be obtained, that is, whether the first captured image of the AR device under test has passed the corner point detection. The controller can output the first detection result, for example, by sound reminder or display. In addition, in some implementation modes, the first detection result and the first captured image can also be uploaded to the production line system MES.
[0078] In a specific implementation of the present invention, after obtaining the first detection result and outputting the first detection result, the method may further include: outputting the first captured image.
[0079] This implementation takes into account that if only the first detection result is output, false detection may occur and is not easy to be discovered in time. In this regard, after corner point detection is performed on the first captured image, not only the first detection result is output, but the first captured image is also output, so that the staff can actively check whether the detection result is correct. In particular, for the AR device under test that fails the corner point detection, the staff can check whether the first detection result is a false positive by observing the first captured image.
[0080] For example, in actual applications, the first captured image and the first detection result can be sent to the touch screen on the front of the workstation shell. The touch screen converts the 32-bit data into 16 bits and stores it in SDRAM (Synchronous Dynamic Random Access Memory) through the SDRAM controller. Finally, the first captured image and the first detection result stored in SDRAM are read through the SDRAM controller, and then displayed on the touch screen through the RGB TFT-LCD interface. In addition, for the AR device under test that fails the corner point detection, sound and light alarms can be used to remind the staff to check the first detection result.
[0081] In a specific implementation of the present invention, outputting the first captured image may specifically include:
[0082] The corner point detection area is marked in the first captured image, and after marking, the first captured image is output to a first screen for display; wherein the first screen is arranged on an outer shell of the workstation.
[0083] In this implementation, after corner point detection is performed on the first photograph, the corner point detection area can also be marked in the first photograph, for example, a write operation is performed on the first photograph, so that the corner point detection area in the first photograph is framed with a box, thereby facilitating the verification of the staff. In this implementation, after the first photograph is marked, the first photograph is output to the first screen for display, and the first screen can be, for example, the touch screen set on the front of the workstation housing in the above implementation.
[0084] In a specific embodiment of the present invention, the image card is an image card whose image card content can be switched. After the controller sends a first image projection instruction to the AR device under test, the image card content displayed by the image card is the first image card content;
[0085] Accordingly, the AR device testing method described in this application may also include:
[0086] Controlling the moving component to move to a second target position;
[0087] Sending a second projection command to the AR device under test, so that the AR device under test displays a standard image on its second screen after receiving the second projection command;
[0088] Controlling the first camera to shoot a second screen of the AR device under test at a second designated position with the second picture card content shown in the picture card as the background, and receiving a second shot picture sent by the first camera;
[0089] Perform corner point detection on the second captured image to obtain a second detection result and output the second detection result.
[0090] This implementation takes into account that, in some cases, the AR device under test may have multiple screens that need to be optically tested. In order to further improve the integration and test efficiency, in this implementation, the test can still be implemented based on the workstation.
[0091] Specifically, the optical test of different screens of the AR device under test may require the use of different picture cards. Therefore, in this implementation, the picture card used in the workstation is a picture card with switchable picture card content. In the test process described above, the optical test of the first screen of the AR device under test is performed, so the picture card content shown on the picture card is the first picture card content, and in this implementation, the optical test of the second screen of the AR device under test is performed, so the picture card content shown on the picture card is the second picture card content. The switching of the picture card content can be performed under the control of the controller.
[0092] When conducting an optical test on the second screen of the AR device under test, the principle can be referred to in correspondence with the above. Specifically, it is necessary to control the moving part to move to the second target position so that the second screen of the AR device under test can be at the required coordinates. After that, the controller can send a second projection command to the AR device under test so that the AR device under test displays a standard image on its own second screen. At this time, it is necessary to control the first camera to be at the second specified position, and to shoot the second screen of the AR device under test with the content of the second picture card shown in the picture card as the background, that is, to shoot through the second screen of the first camera. The picture taken is called the second shot picture and is transmitted back to the controller, so that the controller can perform corner point detection on the second shot picture, obtain the second detection result and output the second detection result. Since the relevant principles are the same as above, they will not be repeated.
[0093] In addition, it should be noted that in some embodiments, when performing optical tests on different screens of the AR device under test, different cameras may be used. In such a case, an additional camera, such as a second camera, needs to be configured in the workstation. By controlling the second camera to reach a second specified position, the second screen of the AR device under test can be used to take a second picture and transmit it back to the controller.
[0094] It is also understandable that when it is necessary to perform optical tests on the first screen and the second screen of the AR device under test, for example, after receiving the operation start signal, the optical tests on the first screen and the second screen can be performed successively.
[0095] By applying the technical solution provided in the embodiment of the present invention, the automatic test of the AR device under test is realized based on the controller arranged in the workstation and connected to the moving part and the first camera in the workstation. Specifically, after the AR device under test is fixed on the moving part, the controller only needs to receive the operation start signal to automatically execute the complete test process, that is, the controller first controls the moving part to move to the first target position, and then sends the first projection command to the AR device under test, so that the AR device under test displays the standard image on its first screen after receiving the first projection command. After that, the controller controls the first camera to shoot the first screen of the AR device under test at the first specified position with the picture card as the background, and receives the first shot picture sent by the first camera. Finally, the controller performs corner point detection on the first shot picture, obtains the first detection result and outputs the first detection result. It can be seen that after receiving the operation start signal, the controller can immediately execute the complete test process without the need for the staff to perform step-by-step operations through the keyboard and mouse, which is conducive to ensuring the test efficiency and reliability. In addition, the controller, the moving part, the picture card and the first camera communication are all arranged in the workstation, which is conducive to improving the integration.
[0096] In summary, the solution of the present application can effectively implement the testing of the AR device under test, ensuring the testing efficiency and reliability.
[0097] Corresponding to the above method embodiment, an embodiment of the present invention further provides a testing system for an AR device, which can be referred to in correspondence with the above.
[0098] See also Figure 5 FIG. 1 is a schematic diagram of a structure of a test system for an AR device in the present invention. The controller is arranged in a workstation and is in communication connection with a moving part and a first camera in the workstation. The image card is fixed on a designated panel of the workstation. The test system for the AR device is applied to the controller, and includes:
[0099] The operation start signal receiving module 501 is used to receive the operation start signal after the AR device under test is fixed on the moving component;
[0100] The moving component control module 502 is used to control the moving component to move to a first target position after receiving the operation start signal;
[0101] The tested AR device control module 503 is used to send a first projection instruction to the tested AR device, so that the tested AR device displays a standard image on its first screen after receiving the first projection instruction;
[0102] A first camera control module 504 is used to control a first camera to shoot the first screen of the AR device under test at a first designated position with the picture card as the background, and receive a first shot picture sent by the first camera;
[0103] The first detection result output module 505 is used to perform corner point detection on the first captured image, obtain a first detection result, and output the first detection result.
[0104] In a specific embodiment of the present invention, a calibration control module is also included, which is used to:
[0105] After the operation start signal receiving module 501 receives the operation start signal, before the moving component control module 502 controls the moving component to move to the target position, the AR device under test is controlled to move to each calibration position in sequence, and the Camera-IMU joint calibration of the AR device under test is performed through the shooting of the first camera, so that the AR device under test obtains the standard image.
[0106] In a specific implementation of the present invention, the operation start signal receiving module 501 is specifically used for:
[0107] After the AR device under test is fixed on the moving part, a running start signal generated by a running button is received;
[0108] The operation button is arranged on the outer shell of the workstation, and when the operation button is operated, the operation button sends the operation start signal to the controller.
[0109] In a specific implementation of the present invention, the first detection result output module 505 is further used to:
[0110] After obtaining the first detection result and outputting the first detection result, the first captured image is outputted.
[0111] In a specific implementation of the present invention, the first detection result output module 505 outputs the first captured image, including:
[0112] Marking the corner point detection area in the first captured image, and outputting the first captured image to a first screen for display after marking;
[0113] Wherein, the first screen is arranged on the outer shell of the workstation.
[0114] In a specific embodiment of the present invention, the controller is an embedded controller, which is communicatively connected to the moving part via a pulse signal output interface, the embedded controller is communicatively connected to the first camera via a network port, and the embedded controller is communicatively connected to the AR device under test via serial port communication.
[0115] In a specific implementation of the present invention, the image card is an image card whose image card content can be switched, and after the controller sends a first image projection instruction to the AR device under test, the image card content displayed by the image card is the first image card content;
[0116] The moving component control module 502 is also used to: control the moving component to move to a second target position;
[0117] The tested AR device control module 503 is further configured to: send a second projection instruction to the tested AR device, so that the tested AR device displays a standard image on its second screen after receiving the second projection instruction;
[0118] The first camera control module 504 is further used to: control the first camera to shoot the second screen of the AR device under test at a second designated position with the second picture card content shown by the picture card as the background, and receive a second shot picture sent by the first camera;
[0119] The first detection result output module 505 is further used to: perform corner point detection on the second captured image, obtain a second detection result, and output the second detection result.
[0120] Corresponding to the above method embodiment, the embodiment of the present invention further provides a test device for an AR device and a computer-readable storage medium, which can be referred to in correspondence with the above.
[0121] The test equipment of the AR device may include:
[0122] Memory for storing computer programs;
[0123] A processor is used to execute the computer program to implement the steps of the AR device testing method as described in any of the above embodiments.
[0124] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the test method of the AR device described in any of the above embodiments are implemented. The computer readable storage medium mentioned here includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
[0125] It should also be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0126] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0127] The present application uses specific examples to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for testing an AR device, characterized in that: The controller is arranged in the workstation and is in communication connection with the moving parts and the first camera in the workstation. The image card is fixed on a designated panel of the workstation. The test method of the AR device is applied to the controller, including: After the AR device under test is fixed on the moving part, a running start signal is received; After receiving the operation start signal, controlling the moving component to move to a first target position; Sending a first projection instruction to the AR device under test, so that the AR device under test displays a standard image on its first screen after receiving the first projection instruction; Controlling a first camera to shoot the first screen of the AR device under test at a first designated position with the picture card as a background, and receiving a first shot picture sent by the first camera; Perform corner point detection on the first captured image to obtain a first detection result and output the first detection result.
2. The method for testing an AR device according to claim 1, characterized in that: After receiving the operation start signal and before controlling the moving component to move to the target position, the method further includes: The AR device under test is controlled to move to each calibration position in sequence, and the Camera-IMU joint calibration of the AR device under test is performed through shooting by the first camera, so that the AR device under test obtains the standard image.
3. The method for testing an AR device according to claim 1, characterized in that: After the AR device under test is fixed on the moving part, a running start signal is received, including: After the AR device under test is fixed on the moving part, a running start signal generated by a running button is received; The operation button is arranged on the outer shell of the workstation, and when the operation button is operated, the operation button sends the operation start signal to the controller.
4. The method for testing an AR device according to claim 1, wherein: After obtaining the first detection result and outputting the first detection result, the method further includes: The first captured image is outputted.
5. The method for testing an AR device according to claim 4, characterized in that: Outputting the first captured image includes: Marking the corner point detection area in the first captured image, and outputting the first captured image to a first screen for display after marking; Wherein, the first screen is arranged on the outer shell of the workstation.
6. The method for testing an AR device according to claim 1, characterized in that: The controller is an embedded controller, which is communicatively connected to the moving component via a pulse signal output interface, which is communicatively connected to the first camera via a network port, and which is communicatively connected to the AR device under test via a serial port communication.
7. The method for testing an AR device according to any one of claims 1 to 6, characterized in that: The image card is an image card whose image card content can be switched. After the controller sends a first image projection instruction to the AR device under test, the image card content displayed by the image card is the first image card content; The testing methods for AR devices also include: Controlling the moving component to move to a second target position; Sending a second projection instruction to the AR device under test, so that the AR device under test displays a standard image on its second screen after receiving the second projection instruction; Controlling the first camera to shoot the second screen of the AR device under test at a second designated position with the second picture card content shown by the picture card as the background, and receiving a second shot picture sent by the first camera; Perform corner point detection on the second captured image to obtain a second detection result and output the second detection result.
8. A testing system for an AR device, characterized in that: The controller is arranged in the workstation and is in communication connection with the moving parts in the workstation and the first camera. The image card is fixed on a designated panel of the workstation. The test system of the AR device is applied to the controller, including: A running start signal receiving module, used for receiving a running start signal after the AR device under test is fixed on the moving part; A moving component control module, used for controlling the moving component to move to a first target position; The AR device control module under test is used to send a first projection instruction to the AR device under test, so that the AR device under test displays a standard image on its first screen after receiving the first projection instruction; A first camera control module is used to control the first camera to shoot the first screen of the AR device under test at a first specified position with the picture card as the background, and receive a first shot picture sent by the first camera; The first detection result output module is used to perform corner point detection on the first captured image, obtain a first detection result and output the first detection result.
9. A test device for an AR device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the method for testing an AR device as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for testing an AR device according to any one of claims 1 to 7 are implemented.
