Optical machine test method and device, computer equipment and computer readable storage medium

By determining the target interface unit in the FPGA module and sending test data, the problem that existing optical machine testing equipment only supports one interface is solved, and efficient testing of multiple types of optical machines is achieved.

CN120176987APending Publication Date: 2025-06-20ZHUHAI MOJIE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311770564.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

Existing optical machine testing equipment only supports one type of optical machine interface, resulting in inefficient optical machine testing.

Method used

By determining the target interface unit corresponding to the current optical machine in the field programmable gate array FPGA module, and sending test data to the optical machine based on the interface unit, the optical machine performs image display, and then performs test based on the display results.

Benefits of technology

An optical machine testing equipment supports multiple types of optical machine interfaces, which can test multiple types of optical machine, thereby improving the efficiency of optical machine testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120176987A_ABST
    Figure CN120176987A_ABST
Patent Text Reader

Abstract

The invention discloses an optical machine testing method and device, computer equipment and a storage medium, and the method comprises the steps: determining a target interface unit corresponding to a current optical machine in a field programmable gate array (FPGA) module based on the optical machine type of the current optical machine; sending test data to the current optical machine based on the target interface unit, so that the current optical machine performs image display based on the test data; and testing the current ray machine based on the display result of the current ray machine. The interface units corresponding to the multiple types of optical machines are provided based on the FPGA module, and then the target interface unit corresponding to the current optical machine is determined in the interface units corresponding to the multiple types of optical machines according to the optical machine type of the to-be-tested current optical machine. Therefore, one optical machine testing device can support various types of optical machine interfaces, and various types of optical machines can be tested through one optical machine testing device, so that the optical machine testing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of testing technologies, and in particular, to an optical engine testing method, apparatus, computer device, and computer-readable storage medium. Background Art

[0002] The optical engine is an important display device in AR glasses, which is used to generate images and output the images to the optical waveguide, so as to display the images to the user. Before the optical engine is installed in the device, it needs to be tested. Different types of optical engines have different corresponding interfaces, and different interfaces require different optical engine testing devices.

[0003] In the related art, one optical engine testing device only supports one type of optical engine interface. Therefore, one optical engine testing device can only test one type of optical engine, resulting in low optical engine testing efficiency. Summary of the Invention

[0004] This application provides an optical engine testing method, apparatus, computer device, and computer-readable storage medium to improve the optical engine testing efficiency.

[0005] In a first aspect, this application provides an optical engine testing method, and the method includes:

[0006] Determine a target interface unit corresponding to the current optical engine in a field programmable gate array (FPGA) module based on the optical engine type of the current optical engine;

[0007] Send test data to the current optical engine based on the target interface unit, so that the current optical engine performs image display based on the test data;

[0008] Test the current optical engine based on the display result of the current optical engine.

[0009] In a second aspect, this application further provides an optical engine testing apparatus, and the apparatus includes:

[0010] An interface confirmation module, configured to determine a target interface unit corresponding to the current optical engine in a field programmable gate array (FPGA) module based on the optical engine type of the current optical engine;

[0011] A data sending module, configured to send test data to the current optical engine based on the target interface unit, so that the current optical engine performs image display based on the test data;

[0012] An optical engine testing module, configured to test the current optical engine based on the display result of the current optical engine.

[0013] In a third aspect, the present application further provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the optical engine test method as described above when executing the computer program.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is enabled to implement the optical engine test method as described above.

[0015] The present application discloses an optical engine test method, device, computer device and storage medium. Based on the optical engine type of the current optical engine, a target interface unit corresponding to the current optical engine is determined in a field-programmable gate array (FPGA) module; based on the target interface unit, test data is sent to the current optical engine so that the current optical engine performs image display based on the test data; based on the display result of the current optical engine, the current optical engine is tested. In the above manner, the present application provides interface units corresponding to multiple types of optical engines based on the FPGA module, and then determines the target interface unit corresponding to the current optical engine according to the optical engine type of the current optical engine to be tested. And the test data is sent to the current optical engine through the target interface unit to implement the optical engine test of the current optical engine. Thus, based on the multiple interface units provided by the FPGA module, an optical engine test device can support multiple types of optical engine interfaces, and multiple types of optical engines can be tested by one optical engine test device, thereby improving the optical engine test efficiency. Description of the Drawings

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 It is a schematic diagram of an optical engine test system provided by an embodiment of the present application;

[0018] Figure 2 It is a schematic flowchart of the first embodiment of an optical engine test method provided by an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of the display timing of an optical engine provided by an embodiment of the present application;

[0020] Figure 4 It is a schematic flowchart of the second embodiment of an optical engine test method provided by an embodiment of the present application;

[0021] Figure 5 A schematic block diagram of a test picture sending process based on a display timing provided for an embodiment of the present application;

[0022] Figure 6 A schematic diagram of an optical engine test device provided for an embodiment of the present application;

[0023] Figure 7 A schematic block diagram of the structure of a computer device provided for an embodiment of the present application. Specific embodiments

[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0025] The flowcharts shown in the accompanying drawings are only illustrative, and do not necessarily include all contents and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can also be decomposed, combined, or partially merged, so the actual execution order may be changed according to the actual situation.

[0026] It should be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of the present application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.

[0027] It should also be understood that the term "and / or" used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0028] The embodiments of the present application provide an optical engine test method, device, computer device, and storage medium. Among them, the optical engine test method can be applied to a server. The method is based on multiple interface units provided by an FPGA (Field Programmable Gate Array) module, enabling an optical engine test device to support multiple types of optical engine interfaces and allowing multiple types of optical engines to be tested by one optical engine test device, thereby improving the optical engine test efficiency. Among them, the server can be an independent server or a server cluster.

[0029] The optical engine test method is applied to an optical engine test system, such as Figure 1As shown in the figure, the optical engine test system includes:

[0030] A host computer 100, configured to generate and send down test pictures and system parameters, where the system parameters include system commands (such as start or stop) and display timings;

[0031] An FPGA module 200, configured to provide interface units corresponding to various types of optical engines, and based on the interface units corresponding to various types of optical engines, send test pictures to the corresponding type of optical engine;

[0032] Wherein, the FPGA module 200 specifically includes:

[0033] A parameter parsing module 210, configured to parse the data sent down by the host computer 100;

[0034] An external memory control module 220, configured to store the test pictures in the external memory 300 when the parameter parsing unit 210 parses that the data sent down by the host computer 100 is a test picture; or read the test pictures from the external memory 300 when the parameter parsing unit 210 parses that the data sent down by the host computer 100 is system parameters;

[0035] An internal storage module 230, configured to cache the test pictures read from the external memory 300;

[0036] A display timing control module 240, configured to generate display timings corresponding to various types of optical engines according to the display timing requirements corresponding to various types of optical engines;

[0037] An interface control module 250, configured to pre-instantiate a corresponding number of interface units (such as interface unit 0 shown as 251, interface unit 1 shown as 252, and interface unit n shown as 25n, etc.) according to the interface type of the optical engine to be tested and the number of optical engines to be tested, and determine the interface unit corresponding to the interface type of the optical engine to be tested among the respective interface units;

[0038] An external memory 300, configured to store the test pictures sent down by the host computer 100.

[0039] It can be understood that, in order not to lose the saved data in the case of power failure, a Flash memory is used as the external memory 300 in this embodiment.

[0040] Next, in combination with the accompanying drawings, based on the above optical engine test system, some embodiments of the present application will be described in detail. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0041] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of an optical engine test method provided by an embodiment of the present application.

[0042] As shown Figure 2 in the figure, the optical engine test method specifically includes steps S101 to S103.

[0043] S101. Based on the optical engine type of the current optical engine, determine the target interface unit corresponding to the current optical engine in the field programmable gate array (FPGA) module;

[0044] In this embodiment, the optical engine types include the type corresponding to the serial peripheral interface (SPI) interface (i.e., Serial Peripheral Interface), the type corresponding to the command mode of the high-speed serial interface between the processor and the display module (i.e., MIPI DSI Command Mode), and the type corresponding to the video mode (i.e., MIPI DSI Video Mode). The interface units corresponding to each type of optical engine are predefined in the interface control module of the FPGA module. When testing the current optical engine, obtain the optical engine type of the current optical engine. Then, among the predefined interface units in the interface control module of the FPGA module, determine the interface unit corresponding to the optical engine type of the current optical engine, and use this interface unit as the target interface unit.

[0045] In one embodiment, each optical engine type is numbered in the host computer in advance. For example, the optical engine type corresponding to the SPI interface is numbered 0, the optical engine type corresponding to the MIPI DSI Command Mode is numbered 1, the optical engine type corresponding to the MIPI DSI Video Mode is numbered 2, etc. Based on the start command of the test process issued by the host computer, the parameter parsing unit in the FPGA module parses the data sent by the host computer. Among them, the sent data includes test data and system commands; the system commands include start commands and stop commands; the test data includes a test picture set, the optical engine interface type, and display parameters; the display parameters include display timing and display pixel size. When the start command is parsed, the interface control module in the FPGA module determines the target interface unit according to the optical engine type of the current optical engine among the interface units corresponding to each optical engine type.

[0046] S102. Based on the target interface unit, send test data to the current optical engine so that the current optical engine performs image display based on the test data;

[0047] In this embodiment, the test data includes test pictures and the display timing of the optical engine to be tested. Among them, the test pictures can be a test picture set, and the test picture set includes specific pictures, such as all-white, all-black, all-red, all-green, all-blue pictures or pictures of grids of various colors, etc. As Figure 3As shown, the display timing includes display line pixels (i.e., horizontal display pixels), column pixels (i.e., vertical display pixels), vertical back porch pixels VBP, vertical front porch pixels VFP, horizontal back porch pixels HBP, horizontal front porch pixels FBP, vertical sync pulse width VSYNC, horizontal sync pulse width HSYNS, and the blanking area (i.e., the gray area in the figure) other than the display active area in the figure, etc. After determining the target interface unit in the interface control module, the target interface unit sends test data to the current optical engine. Thus, the current optical engine displays the corresponding image according to the test data for optical engine testing.

[0048] In one embodiment, when the optical engine to be tested can generate display timing according to its own screen parameters internally, only the test picture is obtained as the test data; if the optical engine to be tested cannot generate display timing according to its own screen parameters, the test picture and the display timing corresponding to the optical engine to be tested (i.e., the screen of the optical engine to be tested) are obtained as the test data. Among them, the screen parameters include resolution, refresh rate (i.e., the number of times the electron beam scans the image on the screen within 1 s), color gamut, color accuracy, and color depth, etc.

[0049] In another embodiment, the test picture and its corresponding display timing can be defaultly obtained as the test data, that is, the target interface unit sends the test data including the test picture and its corresponding display timing to the current optical engine. If the current optical engine can generate display timing according to the test picture internally, the image is output with the display timing generated internally by the current optical engine.

[0050] S103. Test the current optical engine based on the display result of the current optical engine.

[0051] In this embodiment, in order to perform optical engine testing on the current optical engine, it is necessary to make the current optical engine output a specific image. Then, the display parameters such as the pixel size, color, and color temperature of the displayed image are detected. If there are no abnormalities in the parameters to be detected, it means that the current optical engine passes the test; otherwise, it means that the current optical engine test fails.

[0052] Specifically, after the target interface unit outputs the test data to the current optical engine, the display result of the current optical engine for the image corresponding to the test data is obtained, and the test of the current optical engine is completed according to the display result. If the display result is that all display parameters are within the preset range, it means that the current optical engine passes the test; otherwise, it means that the current optical engine test fails.

[0053] This embodiment provides an optical engine testing method. Based on the optical engine type of the current optical engine, a target interface unit corresponding to the current optical engine is determined in a field programmable gate array (FPGA) module; based on the target interface unit, test data is sent to the current optical engine so that the current optical engine performs image display based on the test data; based on the display result of the current optical engine, the current optical engine is tested. In the above manner, this application provides interface units corresponding to multiple types of optical engines based on the FPGA module, and then determines the target interface unit corresponding to the current optical engine according to the optical engine type of the current optical engine to be tested. And the test data is sent to the current optical engine through the target interface unit to implement the optical engine test of the current optical engine. Thus, based on the multiple interface units provided by the FPGA module, an optical engine testing device can support multiple types of optical engine interfaces, and multiple types of optical engines can be tested by one optical engine testing device, thereby improving the optical engine testing efficiency.

[0054] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of an optical engine testing method provided by an embodiment of this application.

[0055] As Figure 4 shown, before step S102, this optical engine testing method further includes:

[0056] S110, determining the test data based on the optical engine type of the current optical engine.

[0057] In one embodiment, since the internal part of some optical engines can generate a display timing, therefore, the host computer or the FPGA module does not need to further send a display timing to this type of optical engine. Thus, according to the two types of optical engines that can generate a display timing and those that cannot, the test data is classified. Specifically, the optical engine type and its corresponding test data are set in advance. For the optical engine that can generate a display timing according to the test picture, the corresponding test data is the test picture, and for the optical engine that cannot generate a display timing according to the test picture, the corresponding test data is the test picture and the display timing corresponding to this optical engine type.

[0058] In one embodiment, the display timing control module in the FPGA module pre-generates the display timing corresponding to each type of optical engine according to the display timing requirements of each type of optical engine, such as the display line pixel size requirement, column pixel requirement, or blanking area requirement, etc.

[0059] Further, the S110 specifically includes:

[0060] When the optical engine type of the current optical engine is the first type, obtaining a test picture as the test data, where the optical engine of the first type is an optical engine that can generate a display timing.

[0061] When the type of the current optical engine is the second type, obtain a test picture and the display timing corresponding to the current optical engine as the test data, where the optical engine of the second type is an optical engine that cannot generate display timing.

[0062] In this embodiment, the type of the optical engine includes a first type, that is, an optical engine type in which the display timing can be generated according to its own display screen parameters inside the optical engine, such as the type corresponding to MIPI DSI Command Mode and the type corresponding to SPI, and a second type, that is, an optical engine type in which the display timing cannot be generated according to its own display screen inside the optical engine, such as the type corresponding to MIPI DSI Video Mode.

[0063] When the display timing can be generated according to the test picture inside the optical engine of the current optical engine, that is, the type of the current optical engine is the first type, only obtain the test picture as the test data;

[0064] If the display timing cannot be generated inside the optical engine of the current optical engine, that is, the type of the current optical engine is the second type, then obtain the test picture and the display timing corresponding to the optical engine to be tested as the test data.

[0065] In the above manner, determine the test data according to the type of the optical engine, which can simplify the test data and further improve the test efficiency of the optical engine.

[0066] Further, before the step S102, it further includes:

[0067] Obtain the test data from an external memory and store the test data in an internal storage module in the FPGA module.

[0068] In this embodiment, the host computer (that is, a computer that can directly issue control commands, such as a control terminal such as a computer or a tablet) sends the test data (that is, the test picture) to the FPGA module through a communication interface (such as a common serial port or USB). When the parameter parsing module in the FPGA module parses that the data sent by the host computer is a test picture, write the test picture into the external memory. Then store the test picture in the external memory in the internal storage module in the FPGA module.

[0069] In one embodiment, the test pictures with a usage frequency exceeding a preset value can be stored from the external memory to the internal storage module in the FPGA module to reduce the sending time of the test data and further improve the test efficiency of the optical engine.

[0070] In another embodiment, when it is parsed that the data sent by the host computer is a start command, read the test picture from the external memory (the external memory is a power-failure non-volatile device such as Flash) according to the start instruction and cache it in the internal storage module.

[0071] In more embodiments, after the host computer sends a test picture to the external memory once, according to a preset period, it is determined whether the test picture set in the host computer is updated. If it is updated, the host computer is made to re-send the updated test picture set; if it is not updated, there is no need for the host computer to re-send the picture set in subsequent tests.

[0072] Further, sending the test data to the current optical engine based on the target interface unit includes:

[0073] Based on the target interface unit, sending the test picture to the current optical engine according to the display timing.

[0074] In this embodiment, as Figure 5 shown, the test data in the internal storage module is output to the target interface unit according to the display timing corresponding to the current optical engine. The target interface unit then outputs the test picture to the current optical engine according to the display timing.

[0075] Further, before the step S101, it further includes:

[0076] Based on the number of optical engines to be tested, determine the number of interface units, and instantiate the interface units corresponding to the number of interface units.

[0077] In this embodiment, the interface control module can pre-instantiate multiple interface units according to the size of the test resources and the requirements for the number of optical engines to be tested. For example, instantiate 4 DSI Video Mode interfaces or SPI interfaces. Among them, instantiating an interface unit is the process of creating an object interface with a class in object-oriented programming. One interface can only send test data to one optical engine at the same time. By controlling multiple interface units to send test data to multiple optical engines at the same time, not only can a test device test multiple types of optical engines, but also multiple optical engines can be tested simultaneously, further improving the optical engine test efficiency.

[0078] Please refer to Figure 6 , Figure 6 FIG. is a schematic block diagram of an optical engine test device provided by an embodiment of the present application. The optical engine test device is used to execute the foregoing optical engine test method. Among them, the optical engine test device can be configured in a server.

[0079] As Figure 6 shown, the optical engine test device 300 includes:

[0080] An interface confirmation module 301, configured to determine the target interface unit corresponding to the current optical engine in a field programmable gate array (FPGA) module based on the optical engine type of the current optical engine;

[0081] The data sending module 302 is configured to send test data to the current optical engine based on the target interface unit, so that the current optical engine performs image display based on the test data;

[0082] The optical engine testing module 303 is configured to test the current optical engine based on the display result of the current optical engine.

[0083] Furthermore, the optical engine testing device 300 further includes:

[0084] The data determining module is configured to determine the test data based on the optical engine type of the current optical engine.

[0085] Furthermore, the data determining module includes:

[0086] The first data determining unit is configured to obtain a test picture as the test data when the optical engine type of the current optical engine is the first type, where the optical engine of the first type is an optical engine capable of generating a display timing. The optical engine of the first type can generate a display timing according to its own display screen parameters.

[0087] Furthermore, the data determining module includes:

[0088] The second data determining unit is configured to obtain a test picture and the display timing corresponding to the current optical engine as the test data when the optical engine type of the current optical engine is the second type.

[0089] Furthermore, the data sending module 302 includes:

[0090] The data sending unit is configured to send the test picture to the current optical engine based on the target interface unit according to the display timing.

[0091] Furthermore, the optical engine testing device 300 further includes:

[0092] The interface instantiation module is configured to determine the number of interface units based on the number of optical engines to be tested, and instantiate the interface units corresponding to the number of interface units.

[0093] Furthermore, the optical engine testing device 300 further includes:

[0094] The data storage module is configured to obtain the test data from an external memory and store the test data in the internal storage module in the FPGA module.

[0095] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described device and each module can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0096] The above-mentioned device can be implemented in the form of a computer program, which can run on a computer device as shown in Figure 6 .

[0097] Please refer to Figure 7 , Figure 7 which is a schematic block diagram of the structure of a computer device provided by an embodiment of the present application. The computer device can be a server.

[0098] Referring to Figure 7 , the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory can include a non-volatile storage medium and an internal memory.

[0099] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which when executed, can cause the processor to execute any one of the opto-mechanical testing methods.

[0100] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.

[0101] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any one of the opto-mechanical testing methods.

[0102] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 7 the structure shown in

[0103] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0104] Wherein, in one embodiment, the processor is configured to run a computer program stored in a memory to implement the following steps:

[0105] Based on the type of the current optical engine, determine a target interface unit corresponding to the current optical engine in a field programmable gate array (FPGA) module;

[0106] Based on the target interface unit, send test data to the current optical engine so that the current optical engine performs image display based on the test data;

[0107] Based on the display result of the current optical engine, test the current optical engine.

[0108] In one embodiment, before the processor implements sending test data to the current optical engine based on the target interface unit so that the current optical engine performs image display based on the test data, the processor is further configured to implement:

[0109] Based on the type of the current optical engine, determine the test data.

[0110] In one embodiment, before the processor implements determining the test data based on the type of the current optical engine, the processor is further configured to implement:

[0111] When the type of the current optical engine is the first type, obtain a test picture as the test data, wherein the optical engine of the first type is an optical engine capable of generating a display timing.

[0112] In one embodiment, when the processor implements determining the test data based on the type of the current optical engine, the processor is further configured to implement:

[0113] When the type of the current optical engine is the second type, obtain a test picture and the display timing corresponding to the current optical engine as the test data.

[0114] In one embodiment, when the processor implements sending test data to the current optical engine based on the target interface unit, the processor is further configured to implement:

[0115] Based on the target interface unit, send the test picture to the current optical engine according to the display timing.

[0116] In one embodiment, before the processor implements determining a target interface unit corresponding to the current optical engine in a field programmable gate array (FPGA) module based on the type of the current optical engine, the processor is further configured to implement:

[0117] Based on the number of optical engines to be tested, determine the number of interface units and instantiate the interface units corresponding to the number of interface units.

[0118] In one embodiment, before the processor implements sending test data to the current optical engine based on the target interface unit to enable the current optical engine to perform image display based on the test data, the processor is further configured to implement:

[0119] Obtain the test data from an external memory and store the test data in an internal storage module in the FPGA module.

[0120] An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the processor executes the program instructions, any optical engine test method provided in the embodiments of the present application is implemented.

[0121] Wherein, the computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device.

[0122] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. An optical-mechanical testing method, characterized in that, The method includes: Based on the type of the current optical engine, determining a target interface unit corresponding to the current optical engine in a Field-Programmable Gate Array (FPGA) module; Based on the target interface unit, sending test data to the current optical engine so that the current optical engine performs image display based on the test data; Testing the current optical engine based on the display result of the current optical engine.

2. The optical-mechanical testing method according to claim 1, characterized in that, Before the step of sending test data to the current optical engine based on the target interface unit so that the current optical engine performs image display based on the test data, it further includes: Determining the test data based on the type of the current optical engine.

3. The optical-mechanical testing method according to claim 2, characterized in that, The determining the test data based on the type of the current optical engine includes: When the type of the current optical engine is the first type, obtaining a test picture as the test data, where the optical engine of the first type is an optical engine capable of generating a display timing.

4. The optical-mechanical testing method according to claim 2, characterized in that, The determining the test data based on the type of the current optical engine includes: When the type of the current optical engine is the second type, obtaining a test picture and the display timing corresponding to the current optical engine as the test data, where the optical engine of the second type is an optical engine incapable of generating a display timing.

5. The optical-mechanical testing method according to claim 4, characterized in that, The sending test data to the current optical engine based on the target interface unit includes: Based on the target interface unit, sending the test picture to the current optical engine according to the display timing.

6. The optical-mechanical testing method according to claim 1, characterized in that, Before the step of determining a target interface unit corresponding to the current optical engine in a Field-Programmable Gate Array (FPGA) module based on the type of the current optical engine, it further includes: Based on the number of optical engines to be tested, determining the number of interface units and instantiating the interface units corresponding to the number of interface units.

7. The optical-mechanical testing method according to any one of claims 1 to 6, characterized in that, Before the step of sending test data to the current optical engine based on the target interface unit so that the current optical engine performs image display based on the test data, it further includes: Obtaining the test data from an external memory and storing the test data in an internal storage module in the FPGA module.

8. An optical-mechanical testing device, characterized in that, It includes: An interface confirmation module, configured to determine a target interface unit corresponding to the current optical engine in a Field-Programmable Gate Array (FPGA) module based on the type of the current optical engine; A data sending module, configured to send test data to the current optical engine based on the target interface unit so that the current optical engine performs image display based on the test data; An optical engine testing module, configured to test the current optical engine based on the display result of the current optical engine.

9. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store a computer program; The processor is configured to execute the computer program and implement the optical engine testing method according to any one of claims 1 to 7 when executing the computer program.

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 processor is caused to implement the optical engine testing method according to any one of claims 1 to 7.