Automatic test method and device for abnormal display of vehicle-mounted information entertainment terminal

Through the automated testing system and image quality algorithm, the problems of insufficient equipment resources and low efficiency in in-vehicle infotainment terminal testing have been solved, and efficient testing and anomaly detection have been achieved around the clock.

CN120651538APending Publication Date: 2025-09-16BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510793706.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing in-vehicle infotainment terminal testing methods have problems such as insufficient test equipment resources, low test efficiency, insufficient data coverage, and delayed abnormal response.

Method used

An automated testing system is used to shoot the display screen of the device under test from multiple angles through a camera. The PSNR and SSIM algorithms are used to calculate the image quality, determine whether the image meets the threshold requirements, and test it iteratively until the preset number of times is reached.

Benefits of technology

It achieves 24-hour uninterrupted automated testing, reduces manpower input, improves testing efficiency and accuracy, and can detect display anomalies in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120651538A_ABST
    Figure CN120651538A_ABST
Patent Text Reader

Abstract

The invention provides an automatic test method and device for abnormal display of a vehicle-mounted information entertainment terminal, and the method comprises the steps: calling a camera to carry out the multi-angle shooting of a display screen of a tested device, and obtaining a plurality of test images at different angles; calculating each test image and the corresponding standard image according to a PSNR (Peak Signal to Noise Ratio) algorithm to obtain a corresponding PSNR value; judging whether the PSNR values are greater than a preset PSNR threshold value or not; if each PSNR value is greater than the PSNR threshold value, calculating each test image and the corresponding standard image according to an SSIM algorithm to obtain a corresponding SSIM value; judging whether each SSIM value is greater than a preset SSIM threshold value or not; and if each SSIM value is greater than the preset SSIM threshold value, returning to the step of calling the camera to carry out multi-angle shooting on the display screen of the tested equipment to obtain a plurality of test images at different angles. The invention can reduce the human input and improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile testing, and in particular to an automated testing method and device for display anomalies of an in-vehicle infotainment terminal. Background Art

[0002] During the development of in-vehicle infotainment terminals, traditional testing methods have the following significant flaws: 1. Insufficient testing equipment resources: Due to the limited number of equipment under development, it is unable to meet the needs of large-scale, multi-round testing; 2. Low testing efficiency: The testing process that relies on manual operations is time-consuming and difficult to achieve continuous testing around the clock. 3. Insufficient data coverage: Manual testing is subject to subjective factors and time constraints, resulting in poor consistency of results; 4. Delayed response to exceptions: Manual monitoring cannot capture and display exceptions in real time, which can easily lead to delayed problem discovery and affect R&D progress.

[0003] Therefore, the existing in-vehicle infotainment terminal testing method has the problem of low testing efficiency. Summary of the Invention

[0004] The embodiments of the present invention provide an automated testing method and device for display anomalies of an in-vehicle infotainment terminal, aiming to solve the problem of low testing efficiency in existing in-vehicle infotainment terminal testing methods.

[0005] In a first aspect, an embodiment of the present invention provides an automated testing method for display anomalies in an in-vehicle infotainment terminal. The method is applied to a controller of an automated testing system, wherein the controller is connected to at least one camera via a network. The method includes: Use the camera to shoot the display screen of the device under test from multiple angles to obtain test images at multiple different angles; Calculate each of the test images and the corresponding standard image according to the PSNR algorithm to obtain a corresponding PSNR value; Determining whether the PSNR values ​​are all greater than a preset PSNR threshold; If each of the PSNR values ​​is greater than the PSNR threshold, then calculating each of the test images and the corresponding standard image according to the SSIM algorithm to obtain a corresponding SSIM value; Determining whether each of the SSIM values ​​is greater than a preset SSIM threshold; If all the SSIM values ​​are greater than the preset SSIM threshold, the process returns to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of cycles reaches the preset number of iterations.

[0006] In a second aspect, an embodiment of the present invention further provides an automated testing device for abnormal display of an in-vehicle infotainment terminal. The device is configured in a controller of an automated testing system, the controller being connected to at least one camera via a network, and the device comprises: The shooting unit is used to call the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple different angles; A first calculation unit is used to calculate each of the test images and the corresponding standard image according to a PSNR algorithm to obtain a corresponding PSNR value; A first judging unit, configured to judge whether the PSNR values ​​are all greater than a preset PSNR threshold; a second calculation unit, configured to calculate each of the test images and the corresponding standard image according to an SSIM algorithm to obtain a corresponding SSIM value if each of the PSNR values ​​is greater than the PSNR threshold; A second judging unit, configured to judge whether each of the SSIM values ​​is greater than a preset SSIM threshold; The loop unit is used to return to the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles if all the SSIM values ​​are greater than the preset SSIM threshold, until the number of loops reaches the preset number of iterations.

[0007] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0008] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method described in the first aspect can be implemented.

[0009] The present invention provides an automated testing method and device for display anomalies of an in-vehicle infotainment terminal. The method is applied to a controller of an automated testing system, wherein the controller is connected to at least one camera via a network. The method comprises: calling a camera to shoot a display screen of a device under test at multiple angles to obtain multiple test images at different angles; calculating each test image and a corresponding standard image according to a PSNR algorithm to obtain a corresponding PSNR value; determining whether the PSNR values ​​are all greater than a preset PSNR threshold; if each PSNR value is greater than the PSNR threshold, calculating each test image and the corresponding standard image according to a SSIM algorithm to obtain a corresponding SSIM value; determining whether each SSIM value is greater than a preset SSIM threshold; if each SSIM value is greater than the preset SSIM threshold, returning to the step of calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, until the number of cycles reaches a preset number of iterations. The embodiment of the present invention can perform 24-hour uninterrupted automated testing on the device under test without manual operation, thereby reducing manpower input and improving testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0011] Figure 1 A flowchart of an automated testing method for display anomalies of an in-vehicle infotainment terminal provided by an embodiment of the present invention; Figure 2 A schematic block diagram of an automated testing device for display anomalies of an in-vehicle infotainment terminal provided by an embodiment of the present invention; Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0012] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0013] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0014] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0015] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations. The embodiment of the present invention provides an automated testing method and device for abnormal display of an in-vehicle infotainment terminal. The automated testing method for abnormal display of an in-vehicle infotainment terminal can be found in Figure 1 , Figure 1 The present invention provides a flowchart of an automated testing method for display anomalies in an in-vehicle infotainment terminal. The method is applied to a controller of an automated testing system, which is connected to at least one camera via a network.

[0016] Figure 1 The following is a flow chart of an automated testing method for display abnormalities of an in-vehicle infotainment terminal provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110-S160.

[0017] S110 , calling a camera to shoot a display screen of the device under test at multiple angles to obtain test images at multiple different angles.

[0018] In this embodiment, a camera is called to shoot the display screen of the device under test at multiple angles according to preset angle parameters to obtain test images at multiple different angles, thereby solving the problem of unreliable test results caused by insufficient test data.

[0019] Preferably, the controller is connected to multiple devices under test through a network to support parallel testing of multiple devices under test.

[0020] In one embodiment, step S110 includes: calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple initial test image groups; wherein each initial test image group includes multiple frames of initial test images shot continuously at the same angle; based on preset selection rules, the optimal frame is selected from the initial test image group as the test image of the corresponding angle.

[0021] In this embodiment, a camera is called to shoot the display screen of the device under test at multiple angles according to preset angle parameters to obtain multiple initial test image groups; wherein, each initial test image group includes multiple frames of initial test images shot continuously at the same angle, and transient interference is eliminated by continuously shooting multiple frames of images; based on preset selection rules, the optimal frame is selected from the initial test image group as the test image of the corresponding angle, and the preset selection rule is any one of a clarity priority rule, a stability priority rule, and an abnormal pixel filtering rule.

[0022] In one embodiment, after step S110 , the method further includes: performing color correction on each of the test images based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image.

[0023] In this embodiment, in order to address the color deviation problem caused by long-term operation, each test image is color corrected based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image. The corrected test image eliminates ambient light interference and can effectively reduce test errors.

[0024] S120 , calculating each of the test images and the corresponding standard image according to a PSNR algorithm to obtain a corresponding PSNR value.

[0025] In this embodiment, each test image is associated with a standard image. The shooting angles of the two images are the same. The standard image is a display image without abnormalities shot at the same angle before the automated test is performed. Calculate each of the test images and the corresponding standard image to obtain the corresponding PSNR value; wherein, MAX I A constant representing the maximum pixel value in the test image (for 8-bit images, MAX I = 255), MSE The PSNR is the mean square error, defined as the average square of the differences between the pixels of the test image and the corresponding standard image. The present invention can simply and directly quantify the differences between the test image and the corresponding standard image based on the PSNR algorithm, enabling detection of small changes caused by noise.

[0026] S130: Determine whether the PSNR values ​​are all greater than a preset PSNR threshold.

[0027] In this embodiment, it is determined whether the PSNR values ​​are all greater than a preset PSNR threshold, and the PSNR threshold can be set according to actual applications; preferably, the PSNR threshold is 30 dB, and the PSNR threshold can be dynamically adjusted according to the test scenario requirements.

[0028] In one embodiment, after step S130, the method further includes: if any of the PSNR values ​​is not greater than the PSNR threshold, generating an abnormality test report including an abnormal image and the time when the abnormality occurred, and sending the report to a designated contact person.

[0029] In this embodiment, if any of the PSNR values ​​is not greater than the PSNR threshold, an abnormal test report including the abnormal image and the time when the abnormality occurred is generated and sent to the designated contact person, so that the designated personnel can quickly locate the abnormal point, thereby improving the efficiency of troubleshooting and the timeliness of quality control.

[0030] S140: If each of the PSNR values ​​is greater than the PSNR threshold, calculate each of the test images and the corresponding standard image according to the SSIM algorithm to obtain a corresponding SSIM value.

[0031] In this embodiment, if all the PSNR values ​​are greater than the PSNR threshold, then according to the SSIM algorithm Calculate each of the test images and the corresponding standard image to obtain the corresponding SSIM value; where μ x and μ y are the mean values ​​of image x and y respectively, and are the variances of images x and y, σ xy is the covariance of images x and y, C1 and C2 are small constants used to stabilize the denominator, image x is the test image, and image y is the standard image corresponding to image x.

[0032] In one embodiment, the SSIM algorithm is used to calculate each of the test images and the corresponding standard image to obtain a corresponding SSIM value, including: dividing the test image into multiple rectangular areas of equal area; calculating each rectangular area and the corresponding standard rectangular area according to the SSIM algorithm to obtain a corresponding regional SSIM value, and taking the arithmetic mean of the SSIM values ​​of each area as the SSIM value.

[0033] In this embodiment, the test image is divided into multiple rectangular areas of equal area according to the width and height of the display screen; each rectangular area and the corresponding standard rectangular area are calculated according to the SSIM algorithm to obtain the corresponding regional SSIM value. The present invention can accurately identify subtle anomalies such as structural distortion and contrast imbalance (such as screen distortion and screen flickering) based on the obtained regional SSIM value; and the arithmetic mean of the SSIM values ​​of each of the said regions is used as the SSIM value.

[0034] Specifically, determine whether the SSIM values ​​of each of the areas are greater than the preset regional SSIM threshold; if the SSIM values ​​of each of the areas are greater than the regional SSIM threshold, then take the arithmetic mean of the SSIM values ​​of each of the areas as the SSIM value; if any of the regional SSIM values ​​is not greater than the regional SSIM threshold, then generate an abnormality test report containing the abnormal image and the time when the abnormality occurred, and send it to the designated contact person.

[0035] Preferably, the present invention can dynamically adjust the regional SSIM threshold and the SSIM threshold according to the test scenario requirements.

[0036] S150: Determine whether all the SSIM values ​​are greater than a preset SSIM threshold.

[0037] In this embodiment, it is determined whether each of the SSIM values ​​is greater than a preset SSIM threshold; wherein the SSIM threshold can be dynamically adjusted according to the requirements of the test scenario.

[0038] S160. If all the SSIM values ​​are greater than the preset SSIM threshold, return to the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of cycles reaches the preset number of iterations.

[0039] In this embodiment, if each of the SSIM values ​​is greater than the preset SSIM threshold, the number of loops is accumulated and the process returns to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of loops reaches the preset number of iterations.

[0040] In one embodiment, step S160 includes: if each of the SSIM values ​​is greater than a preset SSIM threshold, controlling the device under test to enter a sleep state through a relay, and accumulating the number of cycles; after delaying the preset sleep time, controlling the device under test to enter a power-on state through a relay; after delaying the preset power-on time, returning to execute the step of calling the camera to shoot the display screen of the device under test from multiple angles to obtain test images from multiple angles, until the number of cycles reaches a preset number of iterations.

[0041] In this embodiment, if each of the SSIM values ​​is greater than a preset SSIM threshold, the device under test is controlled by a relay to enter a sleep state, and the number of cycles is accumulated; after delaying the preset sleep time, the device under test is controlled by a relay to enter a power-on state; after delaying the preset power-on time, the process returns to executing the step of calling the camera to shoot the display screen of the device under test from multiple angles to obtain test images from multiple angles, until the number of cycles reaches a preset number of iterations; wherein the preset sleep time and the preset power-on time can be set according to actual applications to ensure that the device under test can truly simulate the power management state of the actual working scenario in the sleep-power-on cycle test, and ensure the consistency of the test conditions with the actual operating environment of the device, thereby accurately verifying the stability of the device under test when switching between different power consumption modes.

[0042] In one embodiment, after the number of cycles reaches a preset number of iterations, the method further includes: generating a pass test report including the test start and end time, the number of cycles, and the test images of each iteration.

[0043] In this embodiment, a pass test report including the test start and end time, the number of cycles, and the test images of each iteration is generated to ensure that the test process is traceable and the results are clear and traceable.

[0044] In summary, the embodiments of the present invention can perform 24-hour uninterrupted automated testing on the device under test without manual operation, thereby reducing manpower investment and improving test efficiency.

[0045] Figure 2 A schematic block diagram of an automated testing device for abnormal display of an in-vehicle infotainment terminal provided by an embodiment of the present invention. Figure 2 As shown, corresponding to the above-mentioned automated testing method for abnormal display of in-vehicle infotainment terminal, the present invention also provides an automated testing device for abnormal display of in-vehicle infotainment terminal, the device is configured in the controller of the automated testing system, and the controller is connected to at least one camera through a network. Figure 2 The automatic testing device 700 for detecting abnormal display of an in-vehicle infotainment terminal includes: The shooting unit 701 is used to call a camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple different angles; The first calculation unit 702 is configured to calculate each of the test images and the corresponding standard image according to a PSNR algorithm to obtain a corresponding PSNR value; A first judging unit 703 is configured to judge whether the PSNR values ​​are all greater than a preset PSNR threshold; A second calculation unit 704 is configured to calculate each of the test images and the corresponding standard image according to an SSIM algorithm to obtain a corresponding SSIM value if each of the PSNR values ​​is greater than the PSNR threshold; The second judging unit 705 is configured to judge whether each of the SSIM values ​​is greater than a preset SSIM threshold; The loop unit 706 is used to return to the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles if all the SSIM values ​​are greater than the preset SSIM threshold, until the number of loops reaches the preset number of iterations.

[0046] In some embodiments, when executing the step of calling a camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple different angles, the shooting unit 701 is specifically configured to: Call the camera to shoot the display screen of the device under test at multiple angles to obtain multiple initial test image groups; each initial test image group contains multiple frames of initial test images shot continuously at the same angle; based on preset selection rules, the optimal frame is selected from the initial test image group as the test image of the corresponding angle.

[0047] In some embodiments, after executing the step of calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, the shooting unit 701 is further configured to: Color correction is performed on each of the test images based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image.

[0048] In some embodiments, after executing the step of determining whether all the PSNR values ​​are greater than a preset PSNR threshold, the first determining unit 703 is further configured to: If any of the PSNR values ​​is not greater than the PSNR threshold, an abnormality test report including the abnormal image and the time when the abnormality occurred is generated and sent to a designated contact person.

[0049] In some embodiments, when the second calculation unit 704 calculates each of the test images and the corresponding standard image according to the SSIM algorithm to obtain the corresponding SSIM value, it is specifically configured to: The test image is divided into multiple rectangular areas of equal area; each rectangular area and the corresponding standard rectangular area are calculated according to the SSIM algorithm to obtain the corresponding regional SSIM value, and the arithmetic mean of the SSIM values ​​of each region is used as the SSIM value.

[0050] In some embodiments, if each of the SSIM values ​​is greater than a preset SSIM threshold, the loop unit 706 returns to execute the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles until the number of loops reaches a preset number of iterations. Specifically, it is used to: If all the SSIM values ​​are greater than the preset SSIM threshold, the device under test is controlled to enter a sleep state through a relay, and the number of cycles is accumulated; after delaying the preset sleep time, the device under test is controlled to enter a power-on state through a relay; after delaying the preset power-on time, the process returns to the step of calling the camera to shoot the display screen of the device under test from multiple angles to obtain test images from multiple angles, until the number of cycles reaches the preset number of iterations.

[0051] In some embodiments, after the loop number reaches a preset number of iterations, the loop unit 706 is further configured to: Generate a pass test report including the test start and end time, number of cycles, and test images of each iteration.

[0052] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned automatic testing device for display abnormalities of the in-vehicle infotainment terminal and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.

[0053] The above-mentioned automatic testing device for abnormal display of the in-vehicle infotainment terminal can be implemented in the form of a computer program. The computer program can be used in Figure 3 Runs on the computer equipment shown.

[0054] See also Figure 3 , Figure 3 8 is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The computer device 800 can be a terminal or a server, wherein the terminal can be an electronic device with communication functions. The server can be a standalone server or a server cluster consisting of multiple servers.

[0055] See Figure 3 The electronic device 800 includes a processor 802 , a memory, and a network interface 805 connected via a system bus 801 , wherein the memory may include a non-volatile storage medium 803 and an internal memory 804 .

[0056] The non-volatile storage medium 803 can store an operating system 8031 ​​and a computer program 8032. The computer program 8032 includes program instructions, which, when executed, can cause the processor 802 to execute an automated testing method for display anomalies of an in-vehicle infotainment terminal.

[0057] The processor 802 is used to provide computing and control capabilities to support the operation of the entire electronic device 800.

[0058] The internal memory 804 provides an environment for the operation of the computer program 8032 in the non-volatile storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute an automated testing method for display abnormalities of an in-vehicle infotainment terminal.

[0059] The network interface 805 is used to communicate with other devices over the network. Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 800 to which the solution of the present invention is applied. The specific electronic device 800 may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0060] The processor 802 is configured to execute a computer program 8032 stored in the memory to implement the following steps: Calling a camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles; calculating each of the test images and the corresponding standard images according to the PSNR algorithm to obtain a corresponding PSNR value; judging whether the PSNR values ​​are all greater than a preset PSNR threshold; if each of the PSNR values ​​is greater than the PSNR threshold, calculating each of the test images and the corresponding standard images according to the SSIM algorithm to obtain a corresponding SSIM value; judging whether each of the SSIM values ​​is greater than a preset SSIM threshold; if each of the SSIM values ​​is greater than the preset SSIM threshold, returning to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of loops reaches a preset number of iterations.

[0061] In some embodiments, when the processor 802 implements the step of calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, the processor 802 specifically implements the following steps: Call the camera to shoot the display screen of the device under test at multiple angles to obtain multiple initial test image groups; each initial test image group contains multiple frames of initial test images shot continuously at the same angle; based on preset selection rules, the optimal frame is selected from the initial test image group as the test image of the corresponding angle.

[0062] In some embodiments, after implementing the step of calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, the processor 802 further implements the following steps: Color correction is performed on each of the test images based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image.

[0063] In some embodiments, after implementing the step of determining whether the PSNR values ​​are all greater than a preset PSNR threshold, the processor 802 further implements the following steps: If any of the PSNR values ​​is not greater than the PSNR threshold, an abnormality test report including the abnormal image and the time when the abnormality occurred is generated and sent to a designated contact person.

[0064] In some embodiments, when the processor 802 calculates each of the test images and the corresponding standard image according to the SSIM algorithm to obtain the corresponding SSIM value, it specifically implements the following steps: The test image is divided into multiple rectangular areas of equal area; each rectangular area and the corresponding standard rectangular area are calculated according to the SSIM algorithm to obtain the corresponding regional SSIM value, and the arithmetic mean of the SSIM values ​​of each region is used as the SSIM value.

[0065] In some embodiments, when the processor 802 implements the step of returning to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles if each of the SSIM values ​​is greater than a preset SSIM threshold, until the number of loops reaches a preset number of iterations, the processor 802 specifically implements the following steps: If all the SSIM values ​​are greater than the preset SSIM threshold, the device under test is controlled to enter a sleep state through a relay, and the number of cycles is accumulated; after delaying the preset sleep time, the device under test is controlled to enter a power-on state through a relay; after delaying the preset power-on time, the process returns to the step of calling the camera to shoot the display screen of the device under test from multiple angles to obtain test images from multiple angles, until the number of cycles reaches the preset number of iterations.

[0066] In some embodiments, after the number of loops reaches a preset number of iterations, the processor 802 further implements the following steps: Generate a pass test report including the test start and end time, number of cycles, and test images of each iteration.

[0067] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0068] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0069] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor performs the following steps: Calling a camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles; calculating each of the test images and the corresponding standard images according to the PSNR algorithm to obtain a corresponding PSNR value; judging whether the PSNR values ​​are all greater than a preset PSNR threshold; if each of the PSNR values ​​is greater than the PSNR threshold, calculating each of the test images and the corresponding standard images according to the SSIM algorithm to obtain a corresponding SSIM value; judging whether each of the SSIM values ​​is greater than a preset SSIM threshold; if each of the SSIM values ​​is greater than the preset SSIM threshold, returning to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of loops reaches a preset number of iterations.

[0070] In one embodiment, when the processor executes the program instructions to implement the step of calling a camera to shoot a display screen of the device under test at multiple angles to obtain test images at multiple angles, the processor specifically implements the following steps: Call the camera to shoot the display screen of the device under test at multiple angles to obtain multiple initial test image groups; each initial test image group contains multiple frames of initial test images shot continuously at the same angle; based on preset selection rules, the optimal frame is selected from the initial test image group as the test image of the corresponding angle.

[0071] In one embodiment, after executing the program instructions to implement the step of calling a camera to shoot a display screen of the device under test at multiple angles to obtain a plurality of test images at different angles, the processor further implements the following steps: Color correction is performed on each of the test images based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image.

[0072] In one embodiment, after executing the program instructions to implement the step of determining whether the PSNR values ​​are all greater than a preset PSNR threshold, the processor further implements the following steps: If any of the PSNR values ​​is not greater than the PSNR threshold, an abnormality test report including the abnormal image and the time when the abnormality occurred is generated and sent to a designated contact person.

[0073] In one embodiment, when the processor executes the program instructions to calculate each of the test images and the corresponding standard image according to the SSIM algorithm to obtain the corresponding SSIM value, the processor specifically implements the following steps: The test image is divided into multiple rectangular areas of equal area; each rectangular area and the corresponding standard rectangular area are calculated according to the SSIM algorithm to obtain the corresponding regional SSIM value, and the arithmetic mean of the SSIM values ​​of each region is used as the SSIM value.

[0074] In one embodiment, when the processor executes the program instructions and implements the step of returning to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles if each of the SSIM values ​​is greater than a preset SSIM threshold, until the number of loops reaches a preset number of iterations, the processor specifically implements the following steps: If all the SSIM values ​​are greater than the preset SSIM threshold, the device under test is controlled to enter a sleep state through a relay, and the number of cycles is accumulated; after delaying the preset sleep time, the device under test is controlled to enter a power-on state through a relay; after delaying the preset power-on time, the process returns to the step of calling the camera to shoot the display screen of the device under test from multiple angles to obtain test images from multiple angles, until the number of cycles reaches the preset number of iterations.

[0075] In one embodiment, after the processor executes the program instructions and the number of loops reaches a preset number of iterations, it further implements the following steps: Generate a pass test report including the test start and end time, number of cycles, and test images of each iteration.

[0076] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0077] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0078] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0079] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.

[0080] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (such as a personal computer, terminal, or network device) to execute all or part of the steps of the method described in various embodiments of the present invention.

[0081] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. An automated testing method for display anomalies of an in-vehicle infotainment terminal, characterized in that: The method is applied to a controller of an automated testing system, wherein the controller is connected to at least one camera through a network, and the method includes: Use the camera to shoot the display screen of the device under test from multiple angles to obtain test images at multiple different angles; Calculate each of the test images and the corresponding standard image according to the PSNR algorithm to obtain a corresponding PSNR value; Determining whether the PSNR values ​​are all greater than a preset PSNR threshold; If each of the PSNR values ​​is greater than the PSNR threshold, then calculating each of the test images and the corresponding standard image according to the SSIM algorithm to obtain a corresponding SSIM value; Determining whether each of the SSIM values ​​is greater than a preset SSIM threshold; If all the SSIM values ​​are greater than the preset SSIM threshold, the process returns to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of cycles reaches the preset number of iterations.

2. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: The method of calling a camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles includes: Calling a camera to shoot the display screen of the device under test at multiple angles to obtain multiple initial test image groups; wherein each initial test image group includes multiple frames of initial test images shot continuously at the same angle; An optimal frame is selected from the initial test image group based on a preset selection rule as a test image of a corresponding angle.

3. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: After calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, the method further includes: Color correction is performed on each of the test images based on ambient light parameters and an adaptive white balance algorithm to obtain a corrected test image.

4. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: After determining whether the PSNR values ​​are all greater than a preset PSNR threshold, the method further includes: If any of the PSNR values ​​is not greater than the PSNR threshold, an abnormality test report including the abnormal image and the time when the abnormality occurred is generated and sent to a designated contact person.

5. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: The calculating of each of the test images and the corresponding standard image according to the SSIM algorithm to obtain a corresponding SSIM value includes: Dividing the test image into a plurality of rectangular regions of equal area; The SSIM algorithm is used to calculate each rectangular area and the corresponding standard rectangular area to obtain the corresponding regional SSIM value, and the arithmetic mean of the regional SSIM values ​​is used as the SSIM value.

6. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: If all the SSIM values ​​are greater than the preset SSIM threshold, returning to the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles, until the number of loops reaches the preset number of iterations, including: If all the SSIM values ​​are greater than the preset SSIM threshold, the device under test is controlled to enter a dormant state through a relay, and the number of cycles is accumulated; After the preset sleep time is delayed, the device under test is controlled to enter the power-on state through the relay; After delaying the preset power-on time, the process returns to executing the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple angles, until the number of cycles reaches the preset number of iterations.

7. The automated testing method for display abnormality of an in-vehicle infotainment terminal according to claim 1, characterized in that: After the number of cycles reaches the preset number of iterations, the method further includes: Generate a pass test report including the test start and end time, number of cycles, and test images of each iteration.

8. An automated testing device for abnormal display of an in-vehicle infotainment terminal, characterized in that: The device is configured in a controller of an automated testing system, the controller is connected to at least one camera via a network, and the device includes: The shooting unit is used to call the camera to shoot the display screen of the device under test at multiple angles to obtain test images at multiple different angles; A first calculation unit is used to calculate each of the test images and the corresponding standard image according to a PSNR algorithm to obtain a corresponding PSNR value; A first judging unit, configured to judge whether the PSNR values ​​are all greater than a preset PSNR threshold; a second calculation unit, configured to calculate each of the test images and the corresponding standard image according to an SSIM algorithm to obtain a corresponding SSIM value if each of the PSNR values ​​is greater than the PSNR threshold; A second judging unit, configured to judge whether each of the SSIM values ​​is greater than a preset SSIM threshold; The loop unit is used to return to the step of calling the camera to shoot the display screen of the device under test at multiple angles to obtain multiple test images at different angles if all the SSIM values ​​are greater than the preset SSIM threshold, until the number of loops reaches the preset number of iterations.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the automated testing method for display abnormality of the in-vehicle infotainment terminal according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by the processor, the processor executes the automated testing method for display abnormalities of the in-vehicle infotainment terminal according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Game testing method and system for mobile devices

    CN104536888A

  • Display picture testing method, terminal and storage medium

    CN113852800A

  • Screen display detection method and device and storage medium

    CN115880202A

  • Image processing method, intelligent terminal and storage medium

    CN116630205A

  • Defect detection method and device for user interface

    CN117407223A