Image interface verification method and system and image equipment
By using the storage module in the image interface verification system to generate and transmit serial data streams, the normality of the image interface is directly verified, and the problems of low efficiency and poor stability in the existing technology are solved, and efficient and reliable image interface verification is achieved.
Patent Information
- Application Number
- CN202310727592.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-19
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, the image interface verification process is inefficient, and requires plugging into a camera or hardware device for testing, and the verification process is unstable.
Provide an image interface verification method and system, obtain preset images through storage module to generate serial data streams, transmit them to the image input interface of the device to be tested, and obtain the back-passed data stream from the output interface for storage and resolution sequence playback. If successful, it is confirmed that the image interface is normal, avoiding the need to plug in the test equipment.
It improves the efficiency and stability of the image interface verification process, reduces the complexity and error rate of the verification process, and enhances the reliability of the verification results.
Smart Images

Figure CN119172520A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging device testing, and in particular to an imaging interface verification method, system and imaging device. Background Art
[0002] In the related art, when testing an image interface, a test camera or hardware device is generally connected to the image interface, and then the camera or related hardware device is run to verify whether the image interface is working properly. Therefore, the verification process of the image interface is relatively inefficient. Summary of the invention
[0003] In view of this, the present application provides an image interface verification method, system and image device, which are used to improve the efficiency of the image interface verification process. The technical solution of the present application is as follows:
[0004] The first aspect of the present application provides an image interface verification method, which is applied to an image interface verification system, wherein the image interface verification system includes a storage module, a receiving module and a sending module, wherein the storage module is connected to the receiving module and the sending module respectively, the receiving module is used to connect to the image output interface of the device under test, and the sending module is used to connect to the image input interface of the device under test; wherein the image interface verification method includes: obtaining at least one preset image from the storage module, and generating a serial data stream using the at least one preset image; controlling the sending module to transmit the serial data stream to the image input interface; controlling the receiving module to obtain the returned serial data stream from the image output interface, and if the receiving module successfully obtains the returned serial data stream from the image output interface, it is determined that the image interface of the device under test is normal.
[0005] In one embodiment of the present application, after controlling the receiving module to obtain the returned serial data stream from the image output interface, the image interface verification method also includes: controlling the receiving module to transmit the returned serial data stream to the storage module for storage; deserializing and playing the serial data stream returned from the storage module; if the returned serial data stream is successfully deserialized and played, determining that the image interface of the device under test is normal.
[0006] In one embodiment of the present application, the sending module includes an interface data unit, wherein controlling the sending module to transmit the serial data stream to the image input interface includes: controlling the interface data unit to copy the serial data stream from the storage module; and controlling the interface data unit to transmit the copied serial data stream to the image input interface.
[0007] In one embodiment of the present application, the receiving module includes a computer interface unit and an image signal processing unit, wherein controlling the receiving module to obtain the serial data stream returned from the image output interface includes: controlling the computer interface unit to receive the returned serial data stream; controlling the image signal processing unit to obtain the returned serial data stream from the computer interface unit, and storing the returned serial data stream in the storage module.
[0008] In one embodiment of the present application, the receiving module includes a direct memory access unit, wherein controlling the receiving module to obtain the returned serial data stream from the image output interface includes: controlling the direct memory access unit to receive the returned serial data stream, and storing the returned serial data stream to the storage module.
[0009] In one embodiment of the present application, the image interface verification system also includes a multiplexing module, which is respectively connected to the receiving module and the sending module, and the image interface verification method also includes: when a remote serial data stream sent by an external terminal is received through the receiving module, controlling the multiplexing module to forward the remote serial data stream to the sending module; the sending module transmits the remote serial data stream to the image input interface; controlling the receiving module to obtain the returned remote serial data stream from the image output interface and transmit it to the storage module for storage; deserializing and playing the remote serial data stream returned from the storage module; if the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0010] The second aspect of the present application provides an image interface verification system, including a storage module, a receiving module, a sending module and a controller, wherein the storage module is connected to the receiving module and the sending module respectively, the receiving module is used to connect to the image output interface of the device under test, and the sending module is used to connect to the image input interface of the device under test; wherein the controller is used to: obtain at least one preset image from the storage module, and generate a serial data stream using the at least one preset image; control the sending module to transmit the serial data stream to the image input interface; control the receiving module to obtain the returned serial data stream from the image output interface; if the receiving module successfully obtains the returned serial data stream from the image output interface, it is determined that the image interface of the device under test is normal.
[0011] In one embodiment of the present application, after controlling the receiving module to obtain the returned serial data stream from the image output interface, the controller is also used to: control the receiving module to transmit the returned serial data stream to the storage module for storage; deserialize and play the serial data stream returned from the storage module; if the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0012] In one embodiment of the present application, the image interface verification system also includes a multiplexing module, which is respectively connected to the receiving module and the sending module, and the controller is also used to: when a remote serial data stream sent by an external terminal is received through the receiving module, control the multiplexing module to forward the remote serial data stream to the sending module; the sending module transmits the remote serial data stream to the image input interface; control the receiving module to obtain the returned remote serial data stream from the image output interface and transmit it to the storage module for storage; deserialize and play the remote serial data stream returned from the storage module; if the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0013] A third aspect of the present application is an imaging device, comprising an image output interface, an image input interface and the above-mentioned image interface verification system.
[0014] In the embodiment of the present application, an image interface verification system is set up, including a storage module, a receiving module and a sending module. When verifying the image interface of the device to be tested, the pre-stored preset image is obtained from the storage module, and a serial data stream is generated and transmitted to the image input interface of the device to be tested, so that the image interface verification process does not need to plug the image interface into a test camera or hardware device, thereby improving the efficiency of the image interface verification process. In addition, serial data stream processing of the preset image can improve the stability and reliability of the preset image transmission process, thereby improving the stability and reliability of the verification process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic block diagram of an image interface verification system provided in an embodiment of the present application.
[0016] Figure 2 It is a flowchart of an image interface verification method provided in an embodiment of the present application.
[0017] Figure 3 It is a flowchart of another image interface verification method provided in an embodiment of the present application.
[0018] Figure 4It is a flowchart of a serial data stream sending method provided in an embodiment of the present application.
[0019] Figure 5 It is a flowchart of a method for receiving a returned serial data stream provided in an embodiment of the present application.
[0020] Figure 6 It is a flowchart of the third image interface verification method provided in the embodiment of the present application.
[0021] Figure 7 It is a schematic block diagram of an image interface verification system provided in an embodiment of the present application.
[0022] Figure 8 It is a schematic block diagram of another image interface verification system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] It should be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.
[0024] At present, imaging systems composed of multiple cameras are widely used in various products, such as automobile driving assistance systems, which are mainly composed of cameras arranged at various positions of the car and on-board computers, and intelligent monitoring systems composed of multiple cameras and computers. Among them, the on-board computers and computers in the above-mentioned imaging systems are all equipped with hardware imaging interfaces, and are connected to the camera and the display module through the imaging interface to receive the video stream data of the camera and display it through the display module.
[0025] In the related art, when testing an image interface, a test camera or hardware device is generally connected to the image interface, and then the camera or related hardware device is run to verify whether the image interface is working properly. Therefore, the verification process of the image interface is relatively inefficient.
[0026] The present application provides an image interface verification method, system and image device for improving the efficiency of the image interface verification process.
[0027] Please refer to Figure 1 , Figure 1A schematic block diagram of an image interface verification system provided in an embodiment of the present application, wherein the image interface verification system 100 includes a storage module 110, a receiving module 120 and a sending module 130, the storage module 110 is respectively connected to the receiving module 120 and the sending module 130, the receiving module 120 is used to connect to the image output interface 201 of the device under test 200, and the sending module 130 is used to connect to the image input interface 202 of the device under test.
[0028] Next, combine Figure 1 This application introduces an image interface verification method. Please refer to Figure 2 , Figure 2 A flowchart of an image interface verification method provided in an embodiment of the present application specifically includes the following steps:
[0029] Step S21: Obtain at least one preset image from the storage module, and generate a serial data stream using the at least one preset image.
[0030] In the embodiment of the present application, the above-mentioned image interface verification system can be set in an electronic device, which is the device to be tested, and can be used to verify the image interface of the electronic device when the electronic device is started or receives an interface verification instruction. It can be understood that the image interface verification system also includes a controller, which can be a processor of the electronic device. When performing image interface verification, the processor of the electronic device runs an application to execute the image interface verification method provided by this solution.
[0031] Alternatively, the image interface verification system can also constitute an independent interface verification device, in which interfaces are respectively provided in the sending module and the receiving module for connecting with the image input interface and the image output interface of the device to be tested, and the interface verification device includes a controller and a memory, the memory stores the application, and the controller runs the application to execute the image interface verification method provided by this scheme.
[0032] Among them, the image input interface and image output interface of the device under test include but are not limited to HDMI interface (HDMI, High Definition Multimedia Interface), DVI interface (DVI, Digital Visual Interface) and VGA interface (VGA, Video Graphics Array), etc.
[0033] In the embodiment of the present application, various types of preset images may be pre-stored in the storage module, for example, images taken in different environments and under different photography-related devices, as well as network images transmitted by remote devices, etc., which are not limited here. After receiving the interface verification instruction, the controller may obtain at least one preset image from the storage module according to the interface verification instruction, and perform GMSL serial data processing (GMSL, Gigabit Multimedia Serial Link) to generate a serial data stream. For example, when it is necessary to test three image output interfaces at the same time, the interface verification instruction may be used to enable the controller to obtain three preset images for serial data processing, or for photography-related devices connected to the image input interface, the interface verification instruction may be used to enable the controller to obtain the preset image of the corresponding photography-related device for serial data processing, etc., which are not limited here.
[0034] Step S22: controlling the sending module to transmit the serial data stream to the image input interface.
[0035] In the embodiment of the present application, after the serial data stream is generated, the controller controls the sending module to obtain the serial data stream from the storage module, and transmits the serial data stream to the image input interface of the device under test. The device under test is in the startup state during the interface verification process, and after receiving the serial data stream through the image input interface, the serial data stream can be signal processed and finally output from the image output interface.
[0036] Step S23: Control the receiving module to obtain the returned serial data stream from the image output interface.
[0037] In the embodiment of the present application, when the controller controls the sending module to transmit the serial data stream, it will also control the receiving module to start and receive the serial data stream returned by the image output interface of the device under test. After starting, the receiving module can wait for a preset time before receiving the returned serial data stream to avoid misjudgment of interface verification caused by internal data transmission delay of the device under test.
[0038] Step S24: If the receiving module successfully obtains the returned serial data stream from the image output interface, it is determined that the image interface of the device under test is normal.
[0039] In the embodiment of the present application, when the receiving module successfully obtains the returned serial data stream from the image output interface, the controller can determine that the image interface of the device under test is normal, otherwise, it is determined that the image interface of the device under test is abnormal and the interface verification fails. The abnormal image interface of the device under test includes abnormal image input interface and abnormal image output interface.
[0040] Among them, in some embodiments, the image interface verification system is set in the device under test, and when the controller is the processor of the device under test, when it is determined that the image interface of the device under test is normal, the controller can control the device under test to start up and operate normally, and when the image interface is abnormal, the controller can control the device under test to display interface abnormality information after startup and stop working.
[0041] It can be understood that in the embodiment of the present application, by setting up an image interface verification system, including a storage module, a receiving module and a sending module, when verifying the image interface of the device to be tested, the pre-stored preset image is obtained from the storage module, and a serial data stream is generated and transmitted to the image input interface of the device to be tested, so that the image interface verification process does not need to plug the image interface into the test camera or hardware device, thereby improving the efficiency of the image interface verification process. In addition, serial data stream processing of the preset image can improve the stability and reliability of the preset image transmission process, thereby improving the stability and reliability of the verification process.
[0042] Please refer to Figure 3 , Figure 3 A flowchart of another image interface verification method provided in an embodiment of the present application specifically includes the following steps:
[0043] Step S31: Obtain at least one preset image from the storage module, and generate a serial data stream using the at least one preset image.
[0044] Step S32: Control the sending module to transmit the serial data stream to the image input interface.
[0045] Step S33: Control the receiving module to obtain the returned serial data stream from the image output interface.
[0046] In the embodiment of the present application, steps S31-S33 are consistent with the above-mentioned steps S21-S23 and will not be repeated here.
[0047] Step S34: controlling the receiving module to transmit the returned serial data stream to the storage module for storage.
[0048] In an embodiment of the present application, after determining that the receiving module receives a returned serial data stream from the image output interface, the controller will control the receiving module to transmit the serial data stream to the storage module for storage, so as to control the analysis of the stored serial data stream and obtain the verification result of the image interface of the device under test, so as to improve the reliability of the verification result.
[0049] Step S35: deserialize and play the serial data stream returned from the storage module.
[0050] Step S36: If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0051] In the embodiment of the present application, the storage module may also store a GMSL deserialization application, and the controller may run the application to deserialize the serial data stream returned from the storage module. After determining that the returned serial data stream is successfully deserialized, the controller determines that the image interface of the device under test is normal. Furthermore, the controller may also determine that when the deserialized image is consistent with the original preset image, the image interface of the device under test is normal, so as to further improve the reliability of the verification result.
[0052] In some embodiments, the sending module includes an interface data unit, the data interface unit is connected to the storage module and is used to connect to the image input interface of the device under test. Figure 4 As shown, the step of controlling the sending module to transmit the serial data stream to the image input interface includes:
[0053] Step S41: Control the interface data unit to copy the serial data stream from the storage module.
[0054] Step S42: Control the interface data unit to transmit the copied serial data stream to the image input interface.
[0055] In the embodiment of the present application, the interface data unit is an IDU unit (IDU, Interface Data Unit). When transmitting the serial data stream to the image input interface, the controller controls the interface data unit to copy the serial data stream from the storage module to transmit to the image input interface.
[0056] In some embodiments, the receiving module includes a computer interface unit and an image signal processing unit, the image signal processing unit is connected to the storage module, the computer interface unit is connected to the image signal processing unit, and the computer interface unit is also used to connect to the image output interface of the device under test. Figure 5 As shown, the steps of controlling the receiving module to obtain the returned serial data stream from the image output interface include:
[0057] Step S51: Control the computer interface unit to receive the returned serial data stream.
[0058] Step S52: Control the image signal processing unit to obtain the returned serial data stream from the computer interface unit, and store the returned serial data stream in the storage module.
[0059] In the embodiment of the present application, the computer interface unit is a CIM unit (CIM, computer interface module), and the image signal processing unit is an ISP unit (ISP, (Image Signal Processing, image signal processing).
[0060] In some embodiments, the receiving module includes a direct memory access unit, which is connected to the storage module and is also used to connect to the image output interface of the device under test. The step of controlling the receiving module to obtain the returned serial data stream from the image output interface includes: controlling the direct memory access unit to receive the returned serial data stream and storing the returned serial data stream in the storage module. The direct memory access unit is a DMA unit (DMA, Direct Memory Access).
[0061] In some embodiments, the image interface verification system further includes a multiplexing module, and the multiplexing module is connected to the receiving module and the sending module respectively. Figure 6 As shown, the image interface verification method includes:
[0062] Step S61: when a remote serial data stream sent by an external terminal is received through the receiving module, the multiplexing module is controlled to forward the remote serial data stream to the sending module.
[0063] In the embodiment of the present application, the external terminal includes an electronic device connected to the image interface verification system via remote communication, such as a computer, a tablet computer, etc. When the image interface verification system receives the remote serial data stream, it can directly use the remote serial data stream to verify the image interface.
[0064] Step S62: The sending module transmits the remote serial data stream to the image input interface.
[0065] In the embodiment of the present application, the controller controls the multiplexing module to forward the remote serial data stream to the sending module, and controls the sending module to transmit the remote serial data stream to the image input interface.
[0066] Step S63: Control the receiving module to obtain the remote serial data stream returned from the image output interface, and transmit it to the storage module for storage.
[0067] Step S64: deserialize and play the remote serial data stream transmitted back from the storage module.
[0068] Step S65: If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0069] In the embodiment of the present application, the process of verifying the image interface using a remote serial data stream is similar to the process of verifying the image interface using a serial data stream generated by a preset image, and will not be repeated here.
[0070] Please refer to Figure 7 , Figure 7 This is a schematic block diagram of an image interface verification system provided in an embodiment of the present application, wherein the image interface verification system 700 includes a storage module 710 , a receiving module 720 , a sending module 730 and a controller 740 .
[0071] In the embodiment of the present application, the storage module 710 is connected to the receiving module 720 and the sending module 730 respectively. The receiving module 720 is used to connect to the image output interface of the device under test, and the sending module 730 is used to connect to the image input interface of the device under test.
[0072] Among them, the controller 740 is used to: obtain at least one preset image from the storage module 710, and use at least one preset image to generate a serial data stream, control the sending module 730 to transmit the serial data stream to the image input interface, and control the receiving module 720 to obtain the returned serial data stream from the image output interface. If the receiving module 720 successfully obtains the returned serial data stream from the image output interface, it is determined that the image interface of the device under test is normal.
[0073] In some embodiments, after controlling the receiving module 720 to obtain the returned serial data stream from the image output interface, the controller 740 is also used to: control the receiving module 720 to transmit the returned serial data stream to the storage module 710 for storage, and deserialize and play the returned serial data stream in the storage module 710. If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0074] In some embodiments, Figure 8 As shown, the image interface verification system 700 also includes a multiplexing module 750, and the multiplexing module 750 is respectively connected to the receiving module 720 and the sending module 730, and the controller 740 is also used for: when a remote serial data stream sent by an external terminal is received through the receiving module 720, the multiplexing module 750 is controlled to forward the remote serial data stream to the sending module 730, and the sending module 730 transmits the remote serial data stream to the image input interface, and the receiving module 720 is controlled to obtain the returned remote serial data stream from the image output interface, and transmit it to the storage module 710 for storage, and the remote serial data stream returned from the storage module 710 is deserialized and played. If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
[0075] An embodiment of the present application also provides an imaging device, including an image output interface, an image input interface, and any of the image interface verification systems in the above embodiments.
[0076] It can be understood that the beneficial effects that can be achieved by the image interface verification system and the image device provided in the above embodiments can refer to the beneficial effects of the corresponding image interface verification method provided above, and will not be repeated here.
[0077] An embodiment of the present application further provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the above-mentioned image interface verification method.
[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0079] The above embodiments are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope of the claims of the present application.
Claims
1. A method for verifying an image interface, characterized in that: Applied to an image interface verification system, the image interface verification system includes a storage module, a receiving module and a sending module, the storage module is connected to the receiving module and the sending module respectively, the receiving module is used to connect to the image output interface of the device under test, and the sending module is used to connect to the image input interface of the device under test; wherein, the image interface verification method includes: Acquire at least one preset image from the storage module, and generate a serial data stream using the at least one preset image; Controlling the sending module to transmit the serial data stream to the image input interface; Control the receiving module to obtain the serial data stream transmitted back from the image output interface; If the receiving module successfully obtains the serial data stream transmitted back from the image output interface, it is determined that the image interface of the device under test is normal.
2. The image interface verification method according to claim 1, characterized in that: After controlling the receiving module to obtain the returned serial data stream from the image output interface, the image interface verification method further includes: Controlling the receiving module to transmit the returned serial data stream to the storage module for storage; Deserialize and play the serial data stream transmitted back from the storage module; If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
3. The image interface verification method according to claim 1, characterized in that: The sending module includes an interface data unit, wherein controlling the sending module to transmit the serial data stream to the image input interface includes: Controlling the interface data unit to copy the serial data stream from the storage module; The interface data unit is controlled to transmit the copied serial data stream to the image input interface.
4. The image interface verification method according to claim 1, characterized in that: The receiving module includes a computer interface unit and an image signal processing unit, wherein controlling the receiving module to obtain the serial data stream transmitted back from the image output interface includes: Controlling the computer interface unit to receive the returned serial data stream; The image signal processing unit is controlled to obtain the returned serial data stream from the computer interface unit, and store the returned serial data stream in the storage module.
5. The image interface verification method according to claim 1, characterized in that: The receiving module includes a direct memory access unit, wherein controlling the receiving module to obtain the serial data stream returned from the image output interface includes: The direct memory access unit is controlled to receive the returned serial data stream, and store the returned serial data stream in the storage module.
6. The image interface verification method according to claim 1, characterized in that: The image interface verification system further includes a multiplexing module, wherein the multiplexing module is connected to the receiving module and the sending module respectively, and the image interface verification method further includes: When a remote serial data stream sent by an external terminal is received through the receiving module, controlling the multiplexing module to forward the remote serial data stream to the sending module; The sending module transmits the remote serial data stream to the image input interface; Controlling the receiving module to obtain the remote serial data stream transmitted back from the image output interface, and transmit it to the storage module for storage; Deserialize and play the remote serial data stream transmitted back from the storage module; If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
7. An image interface verification system, characterized in that: It includes a storage module, a receiving module, a sending module and a controller, wherein the storage module is connected to the receiving module and the sending module respectively, the receiving module is used to connect to the image output interface of the device under test, and the sending module is used to connect to the image input interface of the device under test; wherein the controller is used to: Acquire at least one preset image from the storage module, and generate a serial data stream using the at least one preset image; Controlling the sending module to transmit the serial data stream to the image input interface; Control the receiving module to obtain the serial data stream transmitted back from the image output interface; If the receiving module successfully obtains the serial data stream transmitted back from the image output interface, it is determined that the image interface of the device under test is normal.
8. The image interface verification system according to claim 7, characterized in that: After controlling the receiving module to obtain the returned serial data stream from the image output interface, the controller is further used to: Controlling the receiving module to transmit the returned serial data stream to the storage module for storage; Deserialize and play the serial data stream transmitted back from the storage module; If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
9. The image interface verification system according to claim 7, characterized in that: The image interface verification system further includes a multiplexing module, wherein the multiplexing module is connected to the receiving module and the sending module respectively, and the controller is further used for: When a remote serial data stream sent by an external terminal is received through the receiving module, controlling the multiplexing module to forward the remote serial data stream to the sending module; The sending module transmits the remote serial data stream to the image input interface; Controlling the receiving module to obtain the remote serial data stream transmitted back from the image output interface, and transmit it to the storage module for storage; Deserialize and play the remote serial data stream transmitted back from the storage module; If the returned serial data stream is successfully deserialized and played, it is determined that the image interface of the device under test is normal.
10. An imaging device, characterized in that: It comprises an image output interface, an image input interface and an image interface verification system as described in any one of claims 7 to 9.
