Automatic testing method, device and equipment for reverse image after dormancy awakening

Through the automated test system, the reversing image after sleep wake-up is tested cyclically, which solves the problem of high testing costs in the existing technology, and realizes efficient automated testing, improving testing efficiency and accuracy.

CN119299657APending Publication Date: 2025-01-10BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411402767.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In the prior art, the stress test of the reversing image after dormant wake-up is high, and manual manual testing of the manual vehicle requires a lot of resources and time.

Method used

Design an automated testing method and device, send power-on and reverse signals to the vehicle to be tested through an automated test system, obtain reversing images, and perform pixel comparison. If the test results are normal, send a dormant signal, wait for the preset time and repeat the test. , realize cyclic stress test of reversing images.

Benefits of technology

It effectively reduces testing costs, improves testing efficiency, reduces manual intervention, and can quickly locate and fix problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299657A_ABST
    Figure CN119299657A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an automatic testing method, device and equipment for a reversing image after dormancy awakening, and the method comprises the steps: sequentially transmitting a power-on signal and a reversing signal to a to-be-tested vehicle machine, and enabling the to-be-tested vehicle machine to carry out the reversing operation according to the received signal; acquiring a back-up image extracted from the to-be-tested vehicle machine; performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; obtaining a test result according to a preset ratio and the pixel comparison value; if the test result is normal, sending a sleep signal to the to-be-tested in-vehicle infotainment, so that the to-be-tested in-vehicle infotainment enters a sleep state according to the received sleep signal; and after waiting for a preset sleep duration, sending a wake-up signal to the to-be-tested vehicle machine, and returning to execute the step of sequentially sending the power-on signal and the reversing signal to the to-be-tested vehicle machine. According to the embodiment of the invention, an integrated environment of an automatic test system can be established to automatically carry out cyclic pressure test on the back-up image after dormancy wake-up, so that the test cost is reduced.
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 reversing images, and in particular to an automatic testing method, device and equipment for reversing images after awakening from sleep mode. Background Art

[0002] During the cockpit vehicle testing process, when the R gear is shifted into reverse function after waking up from sleep mode, the reversing image displayed in the reversing interface is prone to problems such as black screen, stuck logo, gray screen, no signal, etc. Previously, manual stress testing was mostly done with real vehicles. In software testing, stress testing is also called strength testing and load testing. Stress testing simulates the software and hardware environment of actual applications and the system load during user usage. The test software is run for a long time or with an extremely large load to test the performance, reliability, and stability of the system under test. Therefore, manual stress testing with real vehicles requires a large number of real vehicles, testers, and testing time, and the testing cost is very high.

[0003] Therefore, the existing stress test method of the reversing image after waking up from sleep mode has the problem of high testing cost. Summary of the invention

[0004] The embodiments of the present invention provide a method, device and equipment for automatically testing a reversing image after waking up from sleep mode, aiming to solve the problem of poor human-vehicle interaction in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides an automated testing method for a reversing image after waking up from sleep mode, the method being applied to an automated testing system, the automated testing system comprising a vehicle to be tested connected to a control module through a network, the method comprising the following steps executed in the control module of the automated testing system:

[0006] Sequentially sending a power-on signal and a reversing signal to the vehicle machine to be tested, so that the vehicle machine to be tested performs a reversing operation according to the received signals;

[0007] Acquiring a reversing image extracted from the vehicle to be tested;

[0008] Performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value;

[0009] Obtaining a test result for comparison with a preset ratio according to the pixel comparison value;

[0010] If the test result is normal, a sleep signal is sent to the vehicle computer to be tested, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal;

[0011] After waiting for a preset sleep time, a wake-up signal is sent to the vehicle computer to be tested, and the process returns to the step of sequentially sending a power-on signal and a reversing signal to the vehicle computer to be tested.

[0012] In a second aspect, an embodiment of the present invention further provides an automated testing device for a reversing image after waking up from sleep mode, wherein the device is configured in an automated testing system, wherein the automated testing system includes a vehicle to be tested connected to a control module through a network, and wherein the device includes the following units configured in the control module of the automated testing system:

[0013] A signal sending unit, used to send a power-on signal and a reversing signal to the vehicle machine to be tested in sequence, so that the vehicle machine to be tested performs a reversing operation according to the received signals;

[0014] An acquisition unit, used for acquiring a reversing image extracted from the vehicle to be tested;

[0015] A pixel comparison unit, used for performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value;

[0016] A testing unit, used for obtaining a test result for comparison with a preset ratio according to the pixel comparison value;

[0017] A first sending unit is used to send a sleep signal to the vehicle computer to be tested if the test result is normal, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal;

[0018] The second sending unit is used to send a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, and return to execute the steps of sequentially sending a power-on signal and a reversing signal to the vehicle computer to be tested.

[0019] 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.

[0020] 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 wherein the program instructions, when executed by a processor, can implement the method described in the first aspect above.

[0021] The embodiment of the present invention provides an automated testing method, device and equipment for a reversing image after waking up from sleep. The method is applied to an automated testing system, wherein the automated testing system includes a vehicle to be tested that is network-connected to a control module. The method includes the following steps executed in the control module of the automated testing system: sequentially sending a power-on signal and a reversing signal to the vehicle to be tested, so that the vehicle to be tested performs a reversing operation according to the received signal; obtaining a reversing image extracted from the vehicle to be tested; performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; obtaining a test result compared with a preset ratio according to the pixel comparison value; if the test result is normal, sending a sleep signal to the vehicle to be tested, so that the vehicle to be tested enters a sleep state according to the received sleep signal; after waiting for a preset sleep time, sending a wake-up signal to the vehicle to be tested, and returning to execute the steps of sequentially sending a power-on signal and a reversing signal to the vehicle to be tested. The embodiment of the present invention can automatically perform a cyclic stress test on the reversing image after waking up from sleep by building an integrated environment of an automated testing system, which can effectively reduce the testing cost and improve the testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 A schematic flow chart of an automated testing method for a reversing image after waking up from sleep provided by an embodiment of the present invention;

[0024] Figure 2 A schematic block diagram of an automated testing device for a reversing image after waking up from sleep provided by an embodiment of the present invention;

[0025] Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

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

[0029] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. The embodiment of the present invention provides an automated testing method, device and equipment for reversing images after sleep and wake-up. The automated testing method for reversing images after sleep and wake-up can be found in Figure 1 , Figure 1 The present invention provides a flowchart of an automated testing method for a vehicle reversing image after waking up from sleep mode. The method is applied to an automated testing system, which includes a control module and a vehicle to be tested connected to the control module through a network.

[0030] Figure 1 The flowchart of the automatic testing method of the reversing image after waking up from sleep mode provided by the embodiment of the present invention is as follows. Figure 1 As shown, the method includes the following steps S110-S160 executed in a control module of the automated testing system.

[0031] S110 , sending a power-on signal and a reversing signal to the vehicle machine to be tested in sequence, so that the vehicle machine to be tested performs a reversing operation according to the received signals.

[0032] In this embodiment, a power-on signal (28B) is sent to the vehicle machine to be tested to ensure that the reversing function of the vehicle machine to be tested can be used normally, and then a reversing signal (1AF) is sent to the vehicle machine to be tested so that the vehicle machine to be tested performs a reversing operation according to the received reversing signal. When the vehicle machine to be tested performs a reversing operation, the reversing image camera of the vehicle machine to be tested will automatically turn on and collect real-time reversing images.

[0033] Furthermore, the automated testing system includes at least one vehicle machine to be tested, and each of the vehicle machines to be tested is connected to the control module through a network. Therefore, the embodiment of the present invention can perform cyclic stress testing on multiple vehicle machines to be tested at the same time; further, before performing the cyclic stress test, the ignition switch of the vehicle machine to be tested is switched to the ACC gear, and the gear positions of the ignition switch are generally divided into OFF gear, ACC gear, ON gear and START gear; among them, the OFF gear is used to cut off the power of the entire vehicle, the ACC gear is used to power on accessories (such as multimedia electrical equipment), the ON gear is used to power on the entire vehicle, and the START gear is used to start the engine.

[0034] In an embodiment of the present invention, a test bench can be built to automatically perform a cyclic stress test on the reversing image after waking up from sleep mode. The test bench is an integrated environment for the automated testing system. Before building the test bench, it is ensured that the bench resources meet the current automation requirements, that is, it is ensured that the relevant vehicle equipment can be used normally and that the lines are normally connected to the control module. The relevant vehicle equipment includes but is not limited to a reversing image camera, a display device, etc.

[0035] In one embodiment, the vehicle machine to be tested includes a vehicle machine controller, a reversing image camera and a display screen device, the reversing image camera is arranged on the rear side of the vehicle body of the vehicle machine to be tested, and the vehicle machine controller is connected to the reversing image camera and the display screen device through a network, and the method also includes the following steps executed in the vehicle machine controller: the vehicle machine to be tested performs a reversing operation according to a received signal, including: the vehicle machine controller controls the reversing image camera to turn on according to the received reversing signal; the vehicle machine controller obtains the real-time reversing image captured by the reversing image camera and displays it on the reversing interface of the display screen device; the vehicle machine controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module.

[0036] In this embodiment, the vehicle controller controls the reversing image camera to turn on according to the received reversing signal; wherein, the number of the reversing image cameras is not limited; the vehicle controller obtains the real-time reversing image captured by the reversing image camera and displays it on the reversing interface of the display device; the vehicle controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module; specifically, the reversing interface can be screenshoted through the ADB (Android Debug Bridge) command, and the obtained screenshot is used as the reversing image; wherein, the ADB command is adb shell screencap-p / sdcard / screenshot.png.

[0037] S120: Acquire a reversing image extracted from the vehicle to be tested.

[0038] In this embodiment, the reversing image extracted from the vehicle to be tested is acquired and the reversing image is stored in a target storage area.

[0039] S130: Perform pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value.

[0040] In this embodiment, the standard reversing image may be pre-stored in the target storage area. The standard reversing image is a reversing image normally displayed by the vehicle to be tested. The standard reversing image may be captured by a tester before performing a cyclic stress test.

[0041] The reversing image is subjected to pixel comparison according to a preset standard reversing image to obtain a pixel comparison value; the specific pixel comparison process is: similarity is calculated by comparing the RGB values ​​or grayscale values ​​of two images (i.e., the standard reversing image and the reversing image) pixel by pixel, and the calculated similarity is used as the pixel comparison value.

[0042] S140: Obtain a test result based on the pixel comparison value and comparing it with a preset ratio.

[0043] In this embodiment, a test result is obtained by comparing the pixel contrast value with a preset ratio; wherein the preset ratio can be set to 0.8; if the pixel contrast value is not less than the preset ratio, a normal test result of the reversing image is obtained; if the pixel contrast value is less than the preset ratio, an abnormal test result of the reversing image is obtained.

[0044] In one embodiment, step S140 includes: comparing the pixel contrast value with a preset ratio; if the pixel contrast value is not less than the preset ratio, determining that the test result is normal; if the pixel contrast value is less than the preset ratio, determining that the test result is abnormal.

[0045] In this embodiment, the pixel contrast value is compared with a preset ratio; wherein the preset ratio can be set to 0.8; if the pixel contrast value is not less than the preset ratio, the test result is determined to be normal; if the pixel contrast value is less than the preset ratio, the test result is determined to be abnormal.

[0046] In one embodiment, after determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the method further includes: if the test result is abnormal, stopping the currently running program and controlling the vehicle computer to be tested to maintain the current vehicle computer state.

[0047] In this embodiment, if the test result is abnormal, the currently running program is stopped and the vehicle computer to be tested is controlled to maintain the current vehicle computer state, so that the staff can accurately find the root cause of the problem and solve the problem more quickly; for example, when the pixel contrast value is less than the preset ratio, the reversing image may have problems such as black screen, stuck logo, gray screen, no signal, etc.

[0048] Furthermore, if the test result is abnormal, the time when the abnormality occurred is recorded, and the time when the abnormality occurred is accurate to the minute and second; the staff can directly locate the source code location where the abnormality is located based on the time when the abnormality occurred, thereby improving the efficiency of repairing program error codes.

[0049] In one embodiment, if the pixel contrast value is less than the preset ratio, after determining that the test result is abnormal, it also includes: if the test result is abnormal, generating an error message based on the test result; and sending the error message to a designated contact person according to preset contact information.

[0050] In this embodiment, if the test result is abnormal, an error message is generated according to the test result; wherein, the error message may be that the vehicle computer numbered 011 has an abnormality during the reversing image test, please handle it in time; the error message is sent to the designated contact according to the preset contact information, and the contact information may be the email address or mobile phone number of the designated contact and other information.

[0051] S150: If the test result is normal, a sleep signal is sent to the vehicle computer to be tested, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal.

[0052] In this embodiment, if the test result is normal, a sleep signal is sent to the vehicle computer to be tested, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal; specifically, the vehicle computer to be tested switches its ignition switch from the ACC position to the OFF position according to the received sleep signal; the gear positions of the ignition switch are generally divided into OFF position, ACC position, ON position and START position; among them, the OFF position is used to cut off the power of the entire vehicle, the ACC position is used to power on accessories (such as multimedia electrical equipment), the ON position is used to power on the entire vehicle, and the START position is used to start the engine.

[0053] S160, after waiting for a preset sleep time, sending a wake-up signal to the vehicle computer to be tested, and returning to the step of sequentially sending a power-on signal and a reversing signal to the vehicle computer to be tested.

[0054] In this embodiment, after waiting for a preset sleep time, a wake-up signal is sent to the vehicle to be tested, and the steps of sending a power-on signal and a reversing signal to the vehicle to be tested in sequence are returned to implement a cyclic stress test on the reversing image after waking up from sleep; wherein, the sleep time can be set to 15 minutes.

[0055] Furthermore, before sending a sleep signal to the vehicle computer to be tested, it also includes: adding one to the cumulative test times to update the cumulative test times; judging whether the cumulative test times is greater than a preset number; wherein the preset number can be set to 1000 times; if greater than, stopping the test; if less than, continuing to perform a cyclic stress test on the vehicle computer to be tested; specifically, the staff can view the cumulative test times of the vehicle computer to be tested in real time on the control interface of the automated testing system.

[0056] In one embodiment, after sending a wake-up signal to the vehicle machine to be tested after waiting for a preset sleep time, the method further includes: executing the step of sending a power-on signal and a reversing signal to the vehicle machine to be tested in sequence after waiting for a preset first time.

[0057] In this embodiment, after sending a wake-up signal to the vehicle to be tested, the steps of sending a power-on signal and a reversing signal to the vehicle to be tested in sequence are executed after waiting for a preset first time period; wherein, the first time period can be set to 45 seconds, and the steps of sending a power-on signal and a reversing signal to the vehicle to be tested in sequence are executed after waiting for the first time period to ensure the stability of the system operation, thereby improving the test accuracy.

[0058] In one embodiment, before sending a wake-up signal to the vehicle machine to be tested after waiting for a preset sleep time, it also includes: sending a reverse exit signal to the vehicle machine to be tested to make the vehicle machine to be tested exit the reverse state; after waiting for a preset second time, executing the step of sending a sleep signal to the vehicle machine to be tested to make the vehicle machine to be tested enter the sleep state according to the received sleep signal.

[0059] In this embodiment, a reversing exit signal (1AF) is sent to the vehicle machine to be tested to make the vehicle machine to be tested exit the reversing state; after waiting for a preset second time period, a sleep signal is sent to the vehicle machine to be tested to make the vehicle machine to be tested enter the sleep state according to the received sleep signal; wherein, the second time period can be set to 5 seconds, and after waiting for the second time period, the step of sending a sleep signal to the vehicle machine to be tested to make the vehicle machine to be tested enter the sleep state according to the received sleep signal is executed to ensure the normal operation of the system.

[0060] In summary, the embodiments of the present invention can automatically perform a cyclic stress test on the reversing image after waking up from sleep mode by building an integrated environment of an automated testing system, thereby effectively reducing testing costs and improving testing efficiency.

[0061] Figure 2 A schematic block diagram of an automated testing device for a vehicle reversing image after waking up from sleep mode provided by an embodiment of the present invention. Figure 2 As shown, corresponding to the above automatic test method for reversing image after sleep and wake-up, the present invention also provides an automatic test device for reversing image after sleep and wake-up, the device is configured in an automatic test system, the automatic test system includes a control module and a vehicle to be tested connected to the control module through a network. Figure 2 The automatic test device 700 for the reversing image after sleep and wake-up includes the following units configured in the control module of the automatic test system:

[0062] The signal sending unit 701 is used to send a power-on signal and a reversing signal to the vehicle machine to be tested in sequence, so that the vehicle machine to be tested performs a reversing operation according to the received signals;

[0063] An acquisition unit 702 is used to acquire a reversing image extracted from the vehicle to be tested;

[0064] The pixel comparison unit 703 is used to perform pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value;

[0065] A testing unit 704, configured to obtain a test result based on the pixel contrast value and compare it with a preset ratio;

[0066] The first sending unit 705 is used to send a sleep signal to the vehicle computer to be tested if the test result is normal, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal;

[0067] The second sending unit 706 is used to send a wake-up signal to the vehicle machine to be tested after waiting for a preset sleep time, and return to execute the steps of sequentially sending a power-on signal and a reversing signal to the vehicle machine to be tested.

[0068] In some embodiments, after executing the step of sending a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, the second sending unit 706 is further configured to:

[0069] After waiting for a preset first time period, the steps of sequentially sending a power-on signal and a reversing signal to the vehicle to be tested are performed.

[0070] In some embodiments, the vehicle to be tested includes a vehicle controller, a reversing image camera and a display device. The reversing image camera is arranged on the rear side of the vehicle to be tested. The vehicle controller is connected to the reversing image camera and the display device through a network. When the signal sending unit 701 executes the reversing operation step of the vehicle to be tested according to the received signal, it is specifically used to:

[0071] The vehicle controller controls the reversing image camera to turn on according to the received reversing signal; the vehicle controller obtains the real-time reversing image captured by the reversing image camera and displays it on the reversing interface of the display device; the vehicle controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module.

[0072] In some embodiments, when the test unit 704 performs the step of obtaining a test result according to the pixel contrast value and comparing it with a preset ratio, it is specifically used to:

[0073] The pixel contrast value is compared with a preset ratio; if the pixel contrast value is not less than the preset ratio, the test result is determined to be normal; if the pixel contrast value is less than the preset ratio, the test result is determined to be abnormal.

[0074] In some embodiments, after executing the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the test unit 704 is further configured to:

[0075] If the test result is abnormal, the currently running program is stopped and the vehicle computer to be tested is controlled to maintain the current vehicle computer state.

[0076] In some embodiments, after executing the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the test unit 704 is further configured to:

[0077] If the test result is abnormal, an error message is generated according to the test result; and the error message is sent to a designated contact person according to preset contact information.

[0078] In some embodiments, before executing the step of sending a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, the second sending unit 706 is further used to:

[0079] Sending a reversing exit signal to the vehicle machine to be tested, so that the vehicle machine to be tested exits the reversing state;

[0080] After waiting for a preset second time period, a step of sending a sleep signal to the vehicle computer to be tested is executed, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal.

[0081] 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 the reversing image after waking up from sleep and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0082] The above-mentioned automatic test device for the reversing image after waking up from sleep mode can be implemented in the form of a computer program. The computer program can be used in the following manner: Figure 3 Runs on the computer device shown.

[0083] See also Figure 3 , Figure 3 800 is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The computer device 800 may be a terminal or a server, wherein the terminal may be an electronic device with a communication function. The server may be an independent server or a server cluster composed of multiple servers.

[0084] See also 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 .

[0085] The non-volatile storage medium 803 can store an operating system 8031 ​​and a computer program 8032. The computer program 8032 includes program instructions, and when the program instructions are executed, the processor 802 can execute an automatic testing method for a reversing image after waking up from sleep mode.

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

[0087] 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 automatic testing method for the reversing image after waking up from sleep mode.

[0088] The network interface 805 is used to communicate with other devices over the network. Figure 3The structure shown in the figure is merely a block diagram of a partial 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 arrangement of components.

[0089] The processor 802 is used to run the computer program 8032 stored in the memory to implement the following steps:

[0090] A power-on signal and a reversing signal are sequentially sent to the vehicle machine to be tested, so that the vehicle machine to be tested performs a reversing operation according to the received signals; a reversing image extracted from the vehicle machine to be tested is acquired; a pixel comparison is performed on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; a test result is obtained by comparing the pixel comparison value with a preset ratio; if the test result is normal, a sleep signal is sent to the vehicle machine to be tested, so that the vehicle machine to be tested enters a sleep state according to the received sleep signal; a wake-up signal is sent to the vehicle machine to be tested after waiting for a preset sleep time, and the step of sequentially sending a power-on signal and a reversing signal to the vehicle machine to be tested is returned to execute.

[0091] In some embodiments, after the processor 802 implements the step of sending a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, it further implements the following steps:

[0092] After waiting for a preset first time period, the steps of sequentially sending a power-on signal and a reversing signal to the vehicle to be tested are performed.

[0093] In some embodiments, the vehicle machine to be tested includes a vehicle machine controller, a reversing image camera and a display device. The reversing image camera is arranged on the rear side of the vehicle body of the vehicle machine to be tested. The vehicle machine controller is connected to the reversing image camera and the display device through a network. When the processor 802 implements the reversing operation steps of the vehicle machine to be tested according to the received signal, the following steps are specifically implemented:

[0094] The vehicle controller controls the reversing image camera to turn on according to the received reversing signal; the vehicle controller obtains the real-time reversing image captured by the reversing image camera and displays it on the reversing interface of the display device; the vehicle controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module.

[0095] In some embodiments, when the processor 802 implements the step of obtaining a test result according to the pixel contrast value and comparing it with a preset ratio, the processor 802 specifically implements the following steps:

[0096] The pixel contrast value is compared with a preset ratio; if the pixel contrast value is not less than the preset ratio, the test result is determined to be normal; if the pixel contrast value is less than the preset ratio, the test result is determined to be abnormal.

[0097] In some embodiments, after implementing the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the processor 802 further implements the following steps:

[0098] If the test result is abnormal, the currently running program is stopped and the vehicle computer to be tested is controlled to maintain the current vehicle computer state.

[0099] In some embodiments, after implementing the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the processor 802 further implements the following steps:

[0100] If the test result is abnormal, an error message is generated according to the test result; and the error message is sent to a designated contact person according to preset contact information.

[0101] In some embodiments, before the processor 802 implements the step of sending a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, it further implements the following steps:

[0102] A reversing exit signal is sent to the vehicle machine to be tested so that the vehicle machine to be tested exits the reversing state; and after waiting for a preset second time period, a sleep signal is sent to the vehicle machine to be tested so that the vehicle machine to be tested enters the sleep state according to the received sleep signal.

[0103] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), and the processor 802 may also 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. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0104] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0105] 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 executes the following steps:

[0106] A power-on signal and a reversing signal are sequentially sent to the vehicle machine to be tested, so that the vehicle machine to be tested performs a reversing operation according to the received signals; a reversing image extracted from the vehicle machine to be tested is acquired; a pixel comparison is performed on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; a test result is obtained by comparing the pixel comparison value with a preset ratio; if the test result is normal, a sleep signal is sent to the vehicle machine to be tested, so that the vehicle machine to be tested enters a sleep state according to the received sleep signal; a wake-up signal is sent to the vehicle machine to be tested after waiting for a preset sleep time, and the step of sequentially sending a power-on signal and a reversing signal to the vehicle machine to be tested is returned to execute.

[0107] In one embodiment, after the processor executes the program instructions to implement the step of sending a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, the processor further implements the following steps:

[0108] After waiting for a preset first time period, the steps of sequentially sending a power-on signal and a reversing signal to the vehicle to be tested are performed.

[0109] In one embodiment, the vehicle machine to be tested includes a vehicle machine controller, a reversing image camera and a display device, wherein the reversing image camera is arranged at the rear side of the vehicle body of the vehicle machine to be tested, and the vehicle machine controller is connected to the reversing image camera and the display device through a network. When the processor executes the program instructions to implement the reversing operation steps of the vehicle machine to be tested according to the received signal, the following steps are specifically implemented:

[0110] The vehicle controller controls the reversing image camera to turn on according to the received reversing signal; the vehicle controller obtains the real-time reversing image captured by the reversing image camera and displays it on the reversing interface of the display device; the vehicle controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module.

[0111] In one embodiment, when the processor executes the program instructions to implement the step of obtaining a test result based on the pixel contrast value and comparing it with a preset ratio, the processor specifically implements the following steps:

[0112] The pixel contrast value is compared with a preset ratio; if the pixel contrast value is not less than the preset ratio, the test result is determined to be normal; if the pixel contrast value is less than the preset ratio, the test result is determined to be abnormal.

[0113] In one embodiment, after the processor executes the program instructions to implement the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the processor further implements the following steps:

[0114] If the test result is abnormal, the currently running program is stopped and the vehicle computer to be tested is controlled to maintain the current vehicle computer state.

[0115] In one embodiment, after the processor executes the program instructions to implement the step of determining that the test result is abnormal if the pixel contrast value is less than the preset ratio, the processor further implements the following steps:

[0116] If the test result is abnormal, an error message is generated according to the test result; and the error message is sent to a designated contact person according to preset contact information.

[0117] In one embodiment, before the processor executes the program instructions to send a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, the processor further implements the following steps:

[0118] A reversing exit signal is sent to the vehicle machine to be tested so that the vehicle machine to be tested exits the reversing state; and after waiting for a preset second time period, a sleep signal is sent to the vehicle machine to be tested so that the vehicle machine to be tested enters the sleep state according to the received sleep signal.

[0119] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0120] Those of ordinary skill 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 composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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.

[0121] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0122] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0123] If the integrated unit is implemented in the form of 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 is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0124] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An automated testing method for reversing images after waking up from sleep mode, characterized in that: The method is applied to an automated test system, wherein the automated test system includes a vehicle to be tested connected to a control module through a network. The method includes the following steps performed in the control module of the automated test system: Sequentially sending a power-on signal and a reversing signal to the vehicle machine to be tested, so that the vehicle machine to be tested performs a reversing operation according to the received signals; Acquiring a reversing image extracted from the vehicle to be tested; Performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; Obtaining a test result for comparison with a preset ratio according to the pixel comparison value; If the test result is normal, a sleep signal is sent to the vehicle computer to be tested, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal; After waiting for a preset sleep time, a wake-up signal is sent to the vehicle computer to be tested, and the process returns to the step of sequentially sending a power-on signal and a reversing signal to the vehicle computer to be tested.

2. The automated testing method for reversing image after waking up from sleep mode according to claim 1, characterized in that: After waiting for a preset sleep time and sending a wake-up signal to the vehicle to be tested, the method further includes: After waiting for a preset first time period, the steps of sequentially sending a power-on signal and a reversing signal to the vehicle to be tested are performed.

3. The automated testing method for reversing image after waking up from sleep mode according to claim 1, characterized in that: The vehicle machine to be tested includes a vehicle machine controller, a reversing image camera and a display device, wherein the reversing image camera is arranged at the rear side of the vehicle body of the vehicle machine to be tested, and the vehicle machine controller is connected to the reversing image camera and the display device through a network. The method further includes the following steps performed in the vehicle machine controller: The vehicle to be tested performs a reversing operation according to the received signal, including: The vehicle controller controls the reversing image camera to turn on according to the received reversing signal; The vehicle controller obtains the real-time reversing image collected by the reversing image camera and displays it on the reversing interface of the display device; The vehicle controller extracts the image in the reversing interface as the reversing image, and sends the reversing image to the control module.

4. The automatic testing method of the reversing image after waking up from sleep mode according to claim 1 is characterized in that: The test result obtained by comparing the pixel comparison value with a preset ratio includes: Comparing the pixel contrast value with a preset ratio; If the pixel contrast value is not less than the preset ratio, the test result is determined to be normal; If the pixel contrast value is less than the preset ratio, the test result is determined to be abnormal.

5. The automated testing method for reversing image after waking up from sleep mode according to claim 4, characterized in that: If the pixel contrast value is less than the preset ratio, after determining that the test result is abnormal, the method further includes: If the test result is abnormal, the currently running program is stopped and the vehicle computer to be tested is controlled to maintain the current vehicle computer state.

6. The automated testing method for reversing image after waking up from sleep mode according to claim 4, characterized in that: If the pixel contrast value is less than the preset ratio, after determining that the test result is abnormal, the method further includes: If the test result is abnormal, an error message is generated according to the test result; The error message is sent to a designated contact person according to the preset contact information.

7. The automatic testing method of the reversing image after waking up from sleep mode according to claim 1 is characterized in that: Before sending a wake-up signal to the vehicle to be tested after waiting for a preset sleep time, the method further includes: Sending a reversing exit signal to the vehicle machine to be tested, so that the vehicle machine to be tested exits the reversing state; After waiting for a preset second time period, a step of sending a sleep signal to the vehicle computer to be tested is executed, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal.

8. An automatic testing device for reversing image after waking up from sleep mode, characterized in that: The device is configured in an automated test system, the automated test system includes a vehicle computer to be tested connected to a control module through a network, and the device includes the following units configured in the control module of the automated test system: A signal sending unit, used to send a power-on signal and a reversing signal to the vehicle machine to be tested in sequence, so that the vehicle machine to be tested performs a reversing operation according to the received signals; An acquisition unit, used for acquiring a reversing image extracted from the vehicle to be tested; A pixel comparison unit, used for performing pixel comparison on the reversing image according to a preset standard reversing image to obtain a pixel comparison value; A testing unit, used for obtaining a test result for comparison with a preset ratio according to the pixel comparison value; A first sending unit is used to send a sleep signal to the vehicle computer to be tested if the test result is normal, so that the vehicle computer to be tested enters a sleep state according to the received sleep signal; The second sending unit is used to send a wake-up signal to the vehicle computer to be tested after waiting for a preset sleep time, and return to execute the steps of sequentially sending a power-on signal and a reversing signal to the vehicle computer to be tested.

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 automatic testing method of the reversing image after waking up from sleep mode as described in 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 automatic testing method for the reversing image after waking up from sleep as described in any one of claims 1-7.