Automatic testing device and system for head-up display
By designing automated test devices and systems, using CAN test instructions and acquisition instructions combined with image processing and word processing modules, we solve the problems of low efficiency and high cost of head-up display testing in the existing technology, and achieve fast and accurate automated testing and error location. .
Patent Information
- Application Number
- CN202322299737.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2033-08-25
AI Technical Summary
The testing of existing automotive head-up displays mainly relies on manual or semi-automatic methods, resulting in low efficiency, slow speed and high cost, and the test cannot be completed quickly and accurately.
An automated test device and system is designed, including a host computer, data acquisition output component, acquisition component, identification module and comparison module. Automated testing is realized through CAN test instructions and acquisition instructions, and image processing and word processing modules are used to compare presets and comparisons. The returned image and text content are combined with the Pytest testing framework and OpenCV library for pixel-to-pixel comparison to generate test results.
It achieves fast and accurate automated testing of the head-up display, improves testing efficiency and accuracy, and reduces costs. After the test, the error location can be visually viewed.
Smart Images

Figure CN221840712U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of automobile head-up display testing, in particular to an automatic testing device and system for a head-up display. Background Art
[0002] With the continuous improvement of urbanization and the rapid growth of the economy, people's demand for cars is growing, and the speed of car updates is accelerating. Among them, the controller of the car cockpit has also gone through the development process of instrument cluster, radio, car machine, and head-up display. The head-up display has become an important component of the car cockpit, which can ensure driving safety and improve the driving experience. The after-installed head-up display is a display system that combines composite parameter space virtual imaging technology with a deep customized map interface. It can display important information such as indicator lights and text alarms. The more information displayed, the more faults or errors it will have, so the testing of the head-up display is very important.
[0003] However, most of the current tests for automotive head-up displays are in manual or semi-automatic testing, which results in low efficiency, long cycles, and low accuracy during the testing process. Manual testing is not cost-effective in terms of cost and efficiency, so it is very necessary to design a reasonable head-up display automatic test device and system.
[0004] Therefore, it is necessary to provide an automated testing device and system for a head-up display, which can quickly and accurately complete the automated testing of the head-up display. Utility Model Content
[0005] The utility model aims to provide an automatic testing device and system for a head-up display, which can quickly and accurately complete the automatic testing of the head-up display.
[0006] In order to achieve the above-mentioned purpose, the technical solution adopted by the utility model is as follows: an automatic testing device for a head-up display, comprising:
[0007] Host computer used to send CAN test instructions and collect instructions;
[0008] A data acquisition and output component for receiving a CAN test instruction from a host computer and converting the CAN test instruction into a CAN test signal;
[0009] A head-up display to be tested for receiving a CAN test signal and displaying corresponding content based on the CAN test signal;
[0010] A collection component for receiving a collection instruction from a host computer and collecting display content of the head-up display to be tested based on the collection instruction;
[0011] An identification module for identifying the display content of the acquisition component;
[0012] A comparison module for receiving display content and comparing it with preset content;
[0013] And a control signal simulation module for supporting sending CAN test instructions.
[0014] Furthermore, it also includes two test brackets for supporting the head-up display and the acquisition component to be tested respectively.
[0015] Furthermore, the data acquisition output component, the head-up display to be tested and the acquisition component are located in a test dark box with a cavity.
[0016] Furthermore, the comparison module is an image processing module and / or a text processing module.
[0017] Furthermore, the image processing module is an image processing algorithm encapsulated based on the OpenCV2 library, which performs a point-to-point comparison between pixels of the preset image and the returned image.
[0018] Furthermore, the host computer includes a Pytest test framework, and the control signal simulation module, the identification module and the comparison module are arranged inside the Pytest test framework.
[0019] Furthermore, the Pytest test framework also integrates a test result processing module that displays the comparison results in Excel format.
[0020] Furthermore, the data acquisition output component is connected to the head-up display to be tested via a CAN twisted pair cable.
[0021] Furthermore, the host computer is connected to the data acquisition output component and the acquisition component via USB cables respectively.
[0022] The utility model also provides an automatic testing system for a head-up display, comprising the automatic testing device for the head-up display as described above.
[0023] The utility model provides an automated testing device and system for a head-up display, in which a CAN test instruction and an acquisition instruction are sent by a host computer, and a data acquisition output component converts the CAN test instruction into a CAN test signal. The head-up display to be tested displays the corresponding content based on the CAN test signal, and then the acquisition component acquires the display content of the head-up display to be tested based on the acquisition instruction. The recognition module identifies the display content of the acquisition component, and the comparison module receives the display content and compares it with the preset content. In addition, the device also includes a control signal simulation module for supporting the sending of CAN test instructions. When the comparison results are all consistent, the function test of the head-up display to be tested is qualified. Therefore, the utility model can realize the automated testing of the head-up display, solving the problems of low efficiency, slow speed and high cost of manual testing or semi-automatic testing. When the test is completed, the tester only needs to check the test record to get the error of the head-up display. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a functional module framework diagram of the utility model;
[0025] Figure 2 It is a structural schematic diagram of the utility model;
[0026] Figure 3 The utility model is a flow chart of the testing method.
[0027] in:
[0028] 1-acquisition component, 2-data acquisition output component, 3-head-up display to be tested, 4-test dark box, 5-head-up display bracket, 6-acquisition component bracket, 7-USB cable, 8-CAN twisted pair cable, 9-host computer;
[0029] 91 - control signal simulation module, 92 - identification module, 93 - comparison module, 94 - test result processing module. DETAILED DESCRIPTION
[0030] The following will describe the implementation of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific implementations, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0031] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0032] Example 1
[0033] See also Figure 1 and Figure 2 This embodiment proposes an automated testing device for a head-up display, including a host computer 9, a data acquisition output component 2, an acquisition component 1, and a head-up display 3 to be tested. The data acquisition output component 2 is connected to the head-up display 3 to be tested via a CAN twisted pair 8, and the host computer 9 is connected to the data acquisition output component 2 and the acquisition component 1 via a USB cable 7. The functions and implementation principles of each part of the device are described below:
[0034] Host computer 9: used to send CAN test instructions and acquisition instructions.
[0035] Data acquisition output component 2: used for receiving CAN test instructions from the host computer 9, and converting the CAN test instructions into CAN test signals.
[0036] The head-up display 3 to be tested is used to receive the CAN test signal and display corresponding content based on the CAN test signal.
[0037] Collection component 1: used for receiving the collection instruction of the host computer 9 and collecting the display content of the head-up display 3 to be tested based on the collection instruction.
[0038] In one embodiment: the host computer 9 includes a Pytest test framework, and a control signal simulation module 91, an identification module 92 and a comparison module 93 are integrated in the Pytest test framework. Among them, the comparison module 93 can select an image processing module and / or a text processing module. Of course, it is not limited to this, and it is determined according to the user's needs. When the user needs to compare images, select the image processing module, and when the user needs to compare texts, select the text processing module. When both need to be compared, select the image processing module and the text processing module. In one embodiment, the Pytest test framework also integrates a test result processing module 94. The functions, connection relationships and effects of each module will be introduced below:
[0039] Control signal simulation module 91: used to support sending CAN test instructions.
[0040] Image processing module: The image processing module is used to compare the returned image with the preset image after receiving the image returned by the acquisition component 1. Among them, the preset image is pre-stored in the host computer 9. The preset image is the display image of the head-up display 3 to be tested in the correct state, and the image meets the requirements for correct display of the instrument. In this embodiment, the image processing module is based on the open source library platform computer vision library OpenCV2, which has powerful image processing functions. The image processing process in this embodiment is an image processing algorithm encapsulated by the OpenCV2 library, which compares the preset image and the returned image one by one pixel point-to-point. If the two images are completely consistent, the result obtained is a completely black image. If not consistent, the result obtained is an image that can display the inconsistent results. According to the comparison result, it is judged whether the test result of the current head-up display 3 to be tested meets the expectations.
[0041] Text processing module: During the test, the acquisition component 1 takes a picture of the text information of the head-up display 3 to be tested and stores it in the host computer 9. The text processing module performs text recognition on the test picture stored locally, compares the recognition result with the design text of the head-up display 3 to be tested and outputs the result, so that the text recognition test result can be obtained. In one embodiment, the text processing module uses the open source OCR engine Tesseract because it has powerful text recognition capabilities. Of course, there is no specific limitation. When the text is consistent with the comparison result, the functional test of the head-up display 3 to be tested is qualified.
[0042] The test result processing module 94 is used to display the comparison result in Excel format. By viewing the EXCEL report, it is possible to intuitively locate whether the specific functions of the head-up display 3 to be tested are qualified.
[0043] Identification module 92: used to identify the display content of acquisition component 1.
[0044] In this embodiment, the host computer 9 is written based on Python language. Of course, it can also be written in other languages that meet the requirements, and there is no specific limitation.
[0045] Next, the data acquisition output component 2 will be introduced. The data acquisition output component 2 in this embodiment is connected to the head-up display 3 to be tested through a hard-wired line. When the host computer 9 is written based on the Python language, the data acquisition output component 2 provides a Python call function. Through the control signal simulation module 91 in the Python host computer 9, the corresponding signal simulation, sending and receiving are performed on the function of the head-up display 3 to be tested, so as to achieve the effect of triggering the function of the head-up display 3 to be tested. In one embodiment, the model of the data acquisition output component 2 is USBCANFD-200U. Among them, the data acquisition output component 2 includes a data acquisition module and a signal output module, and the signal output module is used to simulate the CAN signal and send it to the head-up display 3 to be tested.
[0046] Finally, the acquisition component 1 is introduced. The acquisition component 1 is used to acquire the image or text information of the head-up display 3 to be tested. In this embodiment, the acquisition component 1 selects an industrial camera with a resolution of 1920*1080 and a frame rate of 30fps. In addition, the industrial camera supports automatic zoom, up to 10 times zoom.
[0047] Preferably, in order to support the acquisition component 1 and the head-up display 3 to be tested, a head-up display bracket 5 and an acquisition component bracket 6 are respectively provided.
[0048] Preferably, in order to provide a closed environment without light source interference for the head-up display 3 to be tested, the data acquisition output component 2, the head-up display 3 to be tested and the acquisition component 1 are placed in a test dark box 4 with a cavity. The material requirement of the test dark box 4 is to be sealed and lightproof.
[0049] In summary, the CAN test instructions and acquisition instructions are sent through the host computer 9, and the data acquisition output component 2 converts the CAN test instructions into CAN test signals. The head-up display 3 to be tested displays the corresponding image and text content based on the CAN test signal, and the acquisition component 1 takes a photo of the head-up display 3 to be tested based on the acquisition instruction. Then the recognition module 92 is used for recognition, and the image processing module and the text processing module compare the returned text and the returned image, and compare them with the preset text and image. When the comparison results are consistent, the function test of the head-up display 3 to be tested is qualified. Therefore, the utility model can realize the automated testing of the head-up display, which solves the problems of low efficiency, slow speed and high cost of manual testing or semi-automatic testing. When the test is over, the tester only needs to check the test record to get the error of the head-up display.
[0050] Example 2
[0051] This embodiment also provides an automated testing system for a head-up display, including the automated testing device for the head-up display as described above.
[0052] See also Figure 3 , the test method using the above-mentioned automated test system for the head-up display includes:
[0053] Start the automated test system of the head-up display, and set the signal connection between the data acquisition output component 2, the acquisition component 1, the head-up display to be tested 3, and the host computer 9;
[0054] The host computer 9 loads the test script corresponding to the head-up display 3 to be tested and executes the test script;
[0055] The Python program of the host computer 9 sends a control command to the data acquisition output component 2, and the data acquisition output component 2 executes the control command and sends a corresponding CAN test signal that triggers the function of the head-up display 3 to be tested;
[0056] The head-up display 3 to be tested receives the corresponding CAN signal and displays the corresponding image content;
[0057] The host computer 9 controls the acquisition component 1 to take a photo of the corresponding image and transmit the corresponding photo back to the host computer 9;
[0058] After receiving the returned photo, the upper computer 9 runs the image processing module and the text processing module to process and judge whether the processed photo image is consistent with the preset image. If the results are consistent, it is determined whether the current test case is the last one. If it is the last one, the test report is output and the test ends. If the results are inconsistent, it means that the test has failed. The error record is saved first, and then it is determined whether the current test case is the last one. If it is not the last one, the next test case is executed. After the test is completed, the tester only needs to check the test record to know where the instrument has errors. The utility model is simple to operate. It only needs to load the test case and run the test script to complete the automated test of the head-up display.
[0059] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the utility model, which are used to illustrate the technical solution of the utility model, rather than to limit it. The protection scope of the utility model is not limited thereto. Although the utility model is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the above-mentioned embodiments within the technical scope disclosed by the utility model, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiment of the utility model, and should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. An automated testing device for a head-up display, characterized in that: include Host computer used to send CAN test instructions and collect instructions; A data acquisition and output component for receiving a CAN test instruction from a host computer and converting the CAN test instruction into a CAN test signal; A head-up display to be tested for receiving a CAN test signal and displaying corresponding content based on the CAN test signal, wherein the data acquisition and output component is connected to the head-up display to be tested via a CAN twisted pair cable; A collection component for receiving a collection instruction from a host computer and collecting display contents of a head-up display to be tested based on the collection instruction, wherein the host computer is connected to a data collection output component and a collection component via a USB cable, respectively, and the data collection output component, the head-up display to be tested and the collection component are located in a test dark box having a cavity; An identification module for identifying the display content of the acquisition component; A comparison module for receiving display content and comparing it with preset content; Control signal simulation module used to support sending CAN test instructions; And two test brackets for supporting the head-up display and acquisition components to be tested respectively.
2. The automated testing device for a head-up display according to claim 1, characterized in that: The comparison module is an image processing module and / or a text processing module.
3. The automated testing device for a head-up display according to claim 2, characterized in that: The image processing module is an image processing algorithm encapsulated based on the OpenCV2 library, which performs a point-to-point comparison between the pixels of the preset image and the returned image.
4. The automated testing device for a head-up display according to claim 1, characterized in that: The host computer includes a Pytest test framework, and the control signal simulation module, the identification module and the comparison module are arranged inside the Pytest test framework.
5. The automated testing device for a head-up display according to claim 4, characterized in that: The Pytest test framework also integrates a test result processing module that displays the comparison results in Excel format.
6. An automated testing system for a head-up display, characterized in that: An automated testing device for a head-up display comprising any one of claims 1-5.
Citation Information
Cited By
Vehicle head-up display test method and device, electronic equipment and readable storage medium
CN119803957A
