CN112312129B - Test method, device and system and intelligent cabin - Google Patents

Test method, device and system and intelligent cabin Download PDF

Info

Publication number
CN112312129B
CN112312129B CN202011213768.9A CN202011213768A CN112312129B CN 112312129 B CN112312129 B CN 112312129B CN 202011213768 A CN202011213768 A CN 202011213768A CN 112312129 B CN112312129 B CN 112312129B
Authority
CN
China
Prior art keywords
test
picture
target
original
original picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011213768.9A
Other languages
Chinese (zh)
Other versions
CN112312129A (en
Inventor
曹戎格
朱红晓
王德亮
王国眉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
Original Assignee
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Bdstar Navigation Automotive Electronics Co ltd filed Critical Jiangsu Bdstar Navigation Automotive Electronics Co ltd
Priority to CN202011213768.9A priority Critical patent/CN112312129B/en
Publication of CN112312129A publication Critical patent/CN112312129A/en
Application granted granted Critical
Publication of CN112312129B publication Critical patent/CN112312129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Abstract

The invention provides a test method, a test device, a test system and an intelligent cabin, which comprises the following steps: controlling a shooting device to shoot a test picture, and storing the test picture in a Camera folder; wherein the test picture comprises a test target; respectively extracting target areas of the test picture and a prestored original picture; and respectively splitting color channels of the target area of the test picture and the target area of the original picture, and independently carrying out similarity comparison on each color channel to obtain a test result. The invention can improve the accuracy of the detection result.

Description

Test method, device and system and intelligent cabin
Technical Field
The invention relates to the technical field of automatic testing, in particular to a testing method, a testing device, a testing system and an intelligent cabin.
Background
With the development of the automatic driving technology and the improvement of the requirements of drivers and passengers on the vehicle-mounted entertainment system, the media screen display of the automobile is taken as an important technical index, the use experience of a user is directly concerned, the driving experience of the user can be directly influenced when the display screen is in a problem in the daily use process, and the situation that the black screen and the flower screen appear on the display screen can directly cause the failure of driving auxiliary functions such as a rearview camera, a panoramic camera and radar distance display and the loss of multimedia entertainment functions. Therefore, the display screen needs to be detected in time to ensure that the display screen works normally. In the prior art, the test is usually carried out manually, the multimedia machine is controlled manually to restart during the test, and human eyes observe whether the display screen has problems or not, so that the detection effect is poor.
Disclosure of Invention
In view of this, the present invention provides a testing method, device, system and intelligent cockpit to improve the accuracy of the detection result.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a test method, including: controlling a shooting device to shoot a test picture, and storing the test picture in a Camera folder; wherein the test picture comprises a test target; respectively extracting target areas of a test picture and a prestored original picture; and respectively splitting color channels of the target area of the test picture and the target area of the original picture, and independently carrying out similarity comparison on each color channel to obtain a test result.
In one embodiment, before the step of controlling the photographing device to photograph the test picture and saving the test picture to the Camera folder, the method further includes: deleting the Camera folder under the test directory; all files under the sdcard/DCIM/Camera folder of the Camera are deleted.
In one embodiment, after the step of controlling the photographing apparatus to photograph the test picture and save the test picture to the Camera folder, the method further includes: copying a Camera folder of the shooting device to a test directory; and acquiring a picture path of the copied test picture.
In one embodiment, the step of extracting the target regions of the test picture and the pre-stored original picture respectively comprises: respectively searching all vertical straight lines and all horizontal straight lines in the test picture and the pre-stored original picture, and carrying out Cartesian polar coordinate conversion on the test picture and the original picture; carrying out filtering operation and binarization processing on the test picture and the original picture after coordinate conversion; fitting according to all found vertical straight lines, horizontal straight lines and the converted coordinates to obtain an external polygon; and respectively extracting external polygons with the same area as the test target from the test picture and the original picture, and storing the extracted external polygons as the target test picture and the target original picture.
In one embodiment, the step of splitting color channels of a target area of a test picture and a target area of an original picture, and performing similarity comparison on each color channel separately to obtain a test result includes: resetting the sizes of the extracted target test picture and the target original picture so as to enable the sizes of the target test picture and the target original picture to be the same; respectively splitting color channels of the reset target test picture and the target original picture to obtain data arrays of the target test picture and the target original picture; and calculating the similarity of the target test picture and the target original picture according to the data array, and obtaining a test result according to the similarity.
In one embodiment, the step of calculating the similarity between the target test picture and the target original picture according to the data array and obtaining the test result according to the similarity comprises the following steps: respectively calculating the similarity of each color channel of the target test picture and the target original picture according to the data array; calculating the picture similarity of the target test picture and the target original picture according to the similarity of each color channel; and obtaining a test result according to the picture similarity.
In a second aspect, an embodiment of the present invention provides a testing apparatus, including: the shooting control module is used for controlling the shooting device to shoot the test picture and storing the test picture in the Camera folder; wherein the test picture comprises a test target; the machine vision processing module is used for extracting a target area of the test picture and a prestored original picture; and the picture comparison module is used for respectively splitting color channels of the target area of the test picture and the target area of the original picture, and separately carrying out similarity comparison on each color channel to obtain a test result.
In a third aspect, an embodiment of the present invention provides a test system, including a shooting device, a processor, and a memory; the shooting device is used for shooting a test picture of the test target; the memory stores computer-executable instructions executable by the processor; the processor executes computer-executable instructions to implement the steps of the method of any one of the above-provided first aspects.
In a fourth aspect, the embodiment of the present invention provides an intelligent cabin, including the test system provided in the third aspect.
In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods provided in the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the test method, the device and the system provided by the embodiment of the invention and the intelligent cabin, firstly, the shooting device is controlled to shoot the test picture (including the test target), and the test picture is stored in the Camera folder; then extracting target areas of the test picture and the prestored original picture respectively; and finally, respectively splitting color channels of the target area of the test picture and the target area of the original picture, and independently carrying out similarity comparison on each color channel to obtain a test result. The method can improve the definition of the shot test picture by using the shooting device so as to avoid the test result error caused by the distortion of the test picture; meanwhile, the target areas of the test picture and the original picture are extracted for comparison, so that the interference of other areas can be reduced, and the picture comparison precision is improved; finally, the split color channels are compared independently, so that the comparison precision can be further improved, and the accuracy of the test result is further improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a testing method according to an embodiment of the present invention;
fig. 2 is a flowchart of test picture reading according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a test picture according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a target test picture according to an embodiment of the present invention;
FIG. 5 is a comparison graph of test results provided by an embodiment of the present invention;
fig. 6 is a flowchart of image similarity calculation according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic control diagram of a testing apparatus for monitoring a mobile phone and a multimedia interaction system according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a main interface of a test system according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a test system according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In the prior art, the display screen is usually tested manually, the multimedia machine is controlled manually to restart during testing, and human eyes observe whether the display screen has problems or not, so that the detection effect is poor; in addition, the screen pressure tester can be used for testing in the prior art, but the mode needs to be tested in a specific environment, wastes manpower and material resources, and also has influence on the body of a test engineer. Based on this, the testing method, the testing device, the testing system and the intelligent cabin provided by the embodiment of the invention can test without time and environment, find problems in time, reduce cost and improve the accuracy of detection results.
To facilitate understanding of the present embodiment, first, a detailed description is given of a testing method disclosed in the embodiment of the present invention, which may be executed by an electronic device, on which testing software is installed, and which may be applied to the testing software, and referring to a flowchart of the testing method shown in fig. 1, the method mainly includes the following steps S102 to S106:
step S102: and controlling the shooting device to shoot the test picture, and storing the test picture in a Camera folder.
Wherein, the test picture comprises a test target. In one embodiment, the shooting device may be a mobile phone, a camera, or other devices, the mobile phone may be an android mobile phone with high pixels, a focusing function, and a wide application range, and the test target may be a vehicle-mounted multimedia display screen. Specifically, the mobile phone for shooting can be fixed at a position 30 cm in front of the vehicle-mounted multimedia display screen through the support, the mobile phone is controlled by the test software to open the Camera and click the shooting button, a test picture is obtained through shooting, and the test picture is stored in a Camera folder of the mobile phone.
Step S104: and respectively extracting target areas of the test picture and the pre-stored original picture.
In one embodiment, at the beginning of the test, the test engineer will take the original picture and store it in the designated location with confirmation that the test is normal. In the test process, the shooting device shoots other areas except a target area (namely a vehicle-mounted multimedia display screen required to be detected) in the test picture and the original picture, so that the interference of irrelevant information is avoided, and the contrast precision is improved.
Step S106: and respectively splitting color channels of the target area of the test picture and the target area of the original picture, and independently carrying out similarity comparison on each color channel to obtain a test result.
In one embodiment, the color channels of the target region of the test picture and the target region of the original picture may be split into B, G, R three groups of data, then similarity comparison is separately performed on each group of data to obtain similarity between the test picture and the original picture, and a test result is determined according to the similarity, such as when the similarity is less than 90%, it is determined that the test fails, and the test target has a problem (i.e., the test target has hardware damage and/or has cases of screen splash, black screen, and different colors caused by software).
The test method provided by the embodiment of the invention can improve the definition of the shot test picture by utilizing the shooting device so as to avoid the test result error caused by the distortion of the test picture; meanwhile, the target areas of the test picture and the original picture are extracted for comparison, so that the interference of other areas can be reduced, and the picture comparison precision is improved; finally, the split color channels are compared independently, so that the comparison precision can be further improved, and the accuracy of the test result is further improved.
In order to accurately obtain a test picture shot in a current detection period, the method provided by the embodiment of the invention further includes, before controlling the shooting device to shoot the test picture: and deleting the Camera folder under the test directory, and deleting all files under the sdcard/DCIM/Camera folder of the shooting device so as to ensure that only one shot test picture is in the Camera folder after the shooting. Specifically, the Camera folder under the test directory (i.e., the test software operating directory) can be deleted through the CMD instruction; all files in the sdcard/DCIM/Camera folder of the Camera are deleted by the ADB command.
Further, after the step of controlling the photographing apparatus to photograph the test picture and saving the test picture to the Camera folder, the method further includes: and copying a Camera folder of the shooting device to a test directory, and acquiring a picture path of the copied test picture. Specifically, the Camera folder of the shooting device can be copied to the test directory through the ADB pull instruction, and then the test software can obtain the picture path of the copied test picture by calling the os module, that is, the path of all files in the current folder.
For convenience of understanding, an embodiment of the present invention further provides a specific example of image reading, and referring to a flowchart of test image reading shown in fig. 2, it is shown that the method mainly includes the following steps S202 to S210:
step S202: the Camera folder of the test directory is deleted.
Specifically, the Camera folder of the test directory may be deleted by the CMD command.
Step S204: all files under the sdcard/DCIM/Camera folder of the Camera are deleted.
Specifically, all files in the sdcard/DCIM/Camera folder of the Camera may be deleted by the ADB instruction.
Step S206: and outputting an ADB instruction through os.sysytem to control a shooting device to open a Camera and shoot a test picture, and storing the test picture in a Camera folder.
Step S208: symsytem outputs the ADB command to copy the Camera folder to the test directory.
Step S210: and acquiring a picture path of the copied test picture through os.listdir and os.getcwd.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of reading the test picture described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiment of the present invention further provides a specific implementation manner of extracting target regions of the test picture and the pre-stored original picture, respectively, that is, for the step S104, the following steps a1 to a4 may be performed:
step a 1: and respectively searching all vertical straight lines and all horizontal straight lines in the test picture and the pre-stored original picture, and performing Cartesian polar coordinate transformation on the test picture and the original picture.
In one embodiment, after the picture paths of the test picture and the pre-stored original picture are read, all vertical straight lines and horizontal straight lines in the test picture and the original picture can be searched, and the test picture and the original picture are converted from a cartesian coordinate system to a polar coordinate system to determine the target area in the picture.
Step a 2: and carrying out filtering operation and binarization processing on the test picture and the original picture after coordinate conversion.
Specifically, the filtering operation can be performed on the test picture and the original picture after the coordinate conversion, so that the test picture and the original picture are clearer and smoother, and the subsequent comparison precision is improved; and then carrying out binarization processing on the filtered test picture and the original picture to extract the outline of each component in the picture.
Step a 3: and fitting according to all the found vertical straight lines, horizontal straight lines and the converted coordinates to obtain the circumscribed polygon.
In the embodiment of the invention, the shape of the circumscribed polygon can be determined according to the shape of the test target, for example, when the media display screen is rectangular, the rectangle can be obtained by fitting according to all vertical straight lines and horizontal straight lines found in the test picture and the original picture and the coordinates corresponding to each straight line.
Step a 4: and extracting external polygons with the same area as the test target from the test picture and the original picture respectively, and storing the extracted external polygons as the target test picture and the target original picture.
In an embodiment, it can be determined in a cyclic manner for both the test picture and the original picture whether the area of the external polygon obtained by fitting is the same as the area of the test target (i.e., whether the area of the rectangle is the area of the multimedia display screen is determined), and then the external polygon with the same area as the test target is extracted and stored (i.e., the picture meeting the size requirement is extracted and stored).
For convenience of understanding, taking a multimedia display screen as an example, an embodiment of the present invention further provides a test picture and a region-of-interest extraction map (i.e., a target test picture) of the test picture, referring to a schematic diagram of a test picture shown in fig. 3 and a schematic diagram of a target test picture shown in fig. 4, which show that the test picture shown in fig. 3 includes not only a multimedia display screen but also surrounding buttons and other components, and the target test picture shown in fig. 4 can be obtained after extracting the region-of-interest based on the foregoing steps a1 to a4, and fig. 4 only includes a multimedia display screen. It is to be understood that fig. 3 and 4 are exemplary only and should not be taken as limiting.
The embodiment of the present invention further provides a specific implementation manner in which the target region of the test picture and the target region of the original picture are respectively split into color channels, and each color channel is separately compared with a similarity to obtain a test result, that is, for the step S106, the following steps b1 to b3 may be performed:
step b 1: and resetting the sizes of the extracted target test picture and the target original picture so as to enable the sizes of the target test picture and the target original picture to be the same.
Considering that the sizes of the taken test picture and the original picture may be different and there may be an error in the extraction process of the target region, the sizes of the extracted target test picture and the target original picture may also be different. In order to improve the image comparison accuracy and reduce errors, in the embodiment of the present invention, before performing image comparison, sizes of the target test image and the target original image need to be reset, so that the sizes of the target test image and the target original image are the same.
Step b 2: and respectively splitting color channels of the reset target test picture and the target original picture to obtain data arrays of the target test picture and the target original picture.
In one embodiment, the color channels of the target test picture and the target original picture may be split into B, G, R three groups of data, and the data array of the target test picture and the data array of the target original picture are obtained respectively.
Step b 3: and calculating the similarity between the target test picture and the target original picture according to the data array, and obtaining a test result according to the similarity.
In one embodiment, firstly, the similarity of each color channel of the target test picture and the target original picture is respectively calculated according to the data array; then, calculating the picture similarity of the target test picture and the target original picture according to the similarity of each color channel; and finally, obtaining a test result according to the picture similarity. Specifically, when the image similarity is less than 90%, it is determined that the test fails, and the test target has a problem (that is, the test target has hardware damage and/or has conditions of screen splash, screen blackness, color variation, and the like caused by software). Referring to a comparison graph of the test results shown in fig. 5, the top of the graph can display specific values of the image similarity, the left graph is a target original image, the right graph is a target test image, and the test results can be visually observed according to fig. 5.
Further, an embodiment of the present invention further provides a specific implementation manner of calculating the image similarity, referring to a flowchart of calculating the image similarity shown in fig. 6, which illustrates that the manner includes the following steps S602 to S616:
step S602: and acquiring a current test directory.
Step S604: and deleting the read-back test picture in the current test directory.
Specifically, the deletion operation is performed no matter whether the folder in the current test directory is empty or not, so as to ensure that the folder in the current test directory is an empty folder.
Step S606: and deleting the jpg file for controlling the shooting device.
Step S608: and copying the test picture to the current test directory through an ADB pull instruction.
Step S610: and extracting target areas of the original picture and the test picture, and reading the target areas in the pictures.
Specifically, the region of interest identification may be performed on the original picture (i.e., the source picture) and the test picture, the target region in the original picture and the target region in the test picture may be read, and the target original picture and the target test picture may be determined.
Step S612: and resetting the size of the extracted picture and splitting a color channel.
Specifically, the size of the target original picture and the size of the wonderful test picture are reset so that the sizes of the target test picture and the target original picture are the same, the color channels of the target test picture and the target original picture are split into B, G, R channels, and each picture obtains three groups of data.
Step S614: and calculating the similarity of the single-channel histograms of the target test picture and the target original picture.
Step S616: and calculating the coincidence degree of all channel histograms of the target test picture and the target original picture, and determining the picture similarity.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described image similarity calculation may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The testing method provided by the embodiment of the invention can control a shooting device (such as a mobile phone) with a high-definition camera to collect pictures, and the shooting device can be used for shooting, so that the definition of the shot pictures can be improved by utilizing the automatic focusing function of the shooting device, and the contrast error caused by picture distortion is avoided; secondly, the method can extract a rectangular area (namely a target area, such as a multimedia display screen) with a specified size in the picture, reduce the calculation amount of software, improve the running speed, and simultaneously improve the contrast precision and reduce the interference of other areas by only comparing the target area; then, the method can make the sizes of the key areas (namely target areas) extracted by the test picture and the original picture consistent, split the color channels of the picture, and compare the split color channels independently, thereby improving the precision of picture comparison and further improving the accuracy of the test result; finally, the method can carry out pressure test without time and environment, thereby finding and eliminating problems in time and improving the reliability of products.
For the test method provided by the foregoing embodiment, an embodiment of the present invention further provides a test apparatus, referring to a schematic structural diagram of a test apparatus shown in fig. 7, where the test apparatus may include the following components:
the photographing control module 701 is used for controlling the photographing device to photograph the test picture and storing the test picture in a Camera folder; wherein, the test picture comprises a test target.
And a machine vision processing module 702, configured to extract target areas of the test picture and the pre-stored original picture.
The image comparison module 703 is configured to split color channels of the target area of the test image and the target area of the original image, and perform similarity comparison on each color channel separately to obtain a test result.
The photographing control module of the testing device provided by the embodiment of the invention can control the photographing device to improve the definition of the photographed testing picture so as to avoid the testing result error caused by the distortion of the testing picture; meanwhile, the machine vision processing module can extract a target area of the test picture and the original picture for comparison, so that the interference of other areas is reduced, and the picture comparison precision is improved; finally, the picture comparison module can further improve the comparison precision by independently comparing the split color channels, so that the accuracy of the test result is improved.
In an embodiment, the apparatus further includes a deleting module, configured to delete the Camera folder in the test directory by using a CMD; all files in the sdcard/DCIM/Camera folder of the Camera are deleted by the ADB command.
In one embodiment, the device further comprises a copying module, configured to copy the Camera folder of the Camera to the test directory through an ADB pull command; and acquiring a picture path of the copied test picture through the os module.
In an embodiment, the machine vision processing module 702 is further configured to search all vertical straight lines and all horizontal straight lines in the test picture and the pre-stored original picture, and perform cartesian polar coordinate transformation on the test picture and the original picture; carrying out filtering operation and binarization processing on the test picture and the original picture after coordinate conversion; fitting according to all found vertical straight lines, horizontal straight lines and the converted coordinates to obtain an external polygon; and extracting external polygons with the same area as the test target from the test picture and the original picture respectively, and storing the extracted external polygons as the target test picture and the target original picture.
In an embodiment, the image comparison module 703 is further configured to reset the sizes of the extracted target test image and the target original image, so that the sizes of the target test image and the target original image are the same; respectively splitting color channels of the reset target test picture and the target original picture to obtain data arrays of the target test picture and the target original picture; and calculating the similarity of the target test picture and the target original picture according to the data array, and obtaining a test result according to the similarity.
In an embodiment, the image comparison module 703 is further configured to calculate, according to the data array, a similarity of each color channel of the target test image and the target original image; calculating the picture similarity of the target test picture and the target original picture according to the similarity of each color channel; and obtaining a test result according to the picture similarity.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
In addition, taking a shooting device as an example of a monitoring mobile phone, an embodiment of the present invention further provides a method for controlling a monitoring mobile phone and a multimedia interaction system (MMI) by a testing device, referring to a schematic control diagram of a testing device for a monitoring mobile phone and a multimedia interaction system shown in fig. 8, which shows that the testing device realizes control over the monitoring mobile phone through an ADB instruction output by a test program, and simultaneously realizes control over the multimedia interaction system (which may also be a multimedia display screen) through an ADB/CAN instruction.
According to the testing device provided by the embodiment of the invention, the photographing control module can call the Windows os module to realize that the console outputs the ADB instruction, the method is simple, feasible and good in stability, and can be operated on a Windows system without additionally configuring a software operation environment; the machine vision processing module can identify all rectangular areas in the image to be tested, extract correct regions to be tested (namely target regions) through the preset size of the rectangular areas (target region size) to generate new images, use the extracted images for comparison can reduce the operation quantity of software and improve the operation speed, and meanwhile, only compare screen regions to improve the comparison accuracy and reduce the interference of other regions; the image comparison module (namely the image processing and color channel comparison module) can make the sizes of key areas extracted by the test image and the original image consistent, split the color channels of the image, and make independent comparison on the split color channels to improve the image comparison precision.
The embodiment of the invention also provides a test system, which specifically comprises a shooting device, a processor and a memory; the shooting device is used for shooting a test picture of the test target; the memory stores computer-executable instructions executable by the processor; the processor executes the computer-executable instructions to implement the method of any one of the preceding embodiments.
Fig. 9 is a schematic diagram of a main interface of a test system according to an embodiment of the present invention, a user may manually select a connected program-controlled power supply to perform voltage automatic control based on the main interface, set a voltage at a fixed point, specifically, the voltage may be set by coarse tuning or fine tuning buttons to increase or decrease in steps of 0.5v or 0.1v, when a test is started by clicking, test software starts to execute voltage setting and controls a CAN box to send a restart instruction to control a multimedia host to restart, a display screen displays the main interface after 30 seconds of restart, at this time, a mobile phone starts to take a picture and upload, and the test software performs comparison calculation after 3 seconds. In addition, the blank interface on the right side of fig. 9 CAN be used for displaying the current voltage value, the CAN control command and other information.
Fig. 10 is a schematic structural diagram of a test system according to an embodiment of the present invention, where the test system 200 includes: the system comprises a processor 100, a memory 101, a bus 102, a communication interface 103 and a shooting device 104, wherein the processor 100, the communication interface 103, the memory 101 and the shooting device 104 are connected through the bus 102; the processor 100 is adapted to execute executable modules, such as computer programs, stored in the memory 101.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 10, but this does not indicate only one bus or one type of bus.
The memory 101 is configured to store a program, and the processor 100 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 100, or implemented by the processor 100.
Processor 100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 100. The Processor 100 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also 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. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method in combination with the hardware.
The camera device 104 may be a mobile phone, a camera, etc., the mobile phone may be an android mobile phone with a pixel height and a focusing function, and the camera device 104 may take a test picture and send the taken test picture to the processor 100, or store the test picture in the memory 101 for use by other components.
The embodiment of the invention also provides an intelligent cockpit, which comprises the test system provided by the embodiment, wherein the intelligent cockpit can be a cockpit with a multimedia display screen, such as an automobile, a motor car, an airplane and the like. The implementation principle and the generated technical effect of the test system of the intelligent cockpit are the same as those of the foregoing embodiment, and reference may be made to the corresponding contents in the foregoing embodiment without reference.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the following descriptions are only illustrative and not restrictive, and that the scope of the present invention is not limited to the above embodiments: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the scope of the disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method of testing, comprising:
controlling a shooting device to shoot a test picture, and storing the test picture in a Camera folder; wherein the test picture comprises a test target;
respectively extracting target areas of the test picture and a prestored original picture; wherein the target area is an area where the test target is located;
respectively splitting color channels of the target area of the test picture and the target area of the original picture, and independently carrying out similarity contrast on each color channel to obtain a test result;
the step of respectively extracting the target areas of the test picture and the pre-stored original picture comprises the following steps: respectively searching all vertical straight lines and all horizontal straight lines in the test picture and the prestored original picture, and carrying out Cartesian polar coordinate conversion on the test picture and the original picture; carrying out filtering operation and binarization processing on the test picture and the original picture after coordinate conversion; fitting according to all found vertical straight lines, horizontal straight lines and the converted coordinates to obtain a circumscribed polygon; extracting the external polygon with the same area as the test target area from the test picture and the original picture respectively, and storing the extracted external polygon as a target test picture and a target original picture;
the step of splitting color channels of the target area of the test picture and the target area of the original picture respectively, and performing similarity comparison on each color channel individually to obtain a test result includes: resetting the sizes of the extracted target test picture and the target original picture so as to enable the sizes of the target test picture and the target original picture to be the same; respectively splitting color channels of the target test picture and the target original picture after the target test picture and the target original picture are reset to obtain data arrays of the target test picture and the target original picture; and calculating the similarity between the target test picture and the target original picture according to the data array, and obtaining a test result according to the similarity.
2. The method according to claim 1, wherein before the step of controlling the Camera to take the test picture and save the test picture to the Camera folder, the method further comprises:
deleting the Camera folder under the test directory;
and deleting all files in the sdcard/DCIM/Camera folder of the shooting device.
3. The method according to claim 2, wherein after the step of controlling the Camera to take the test picture and save the test picture to the Camera folder, the method further comprises:
copying a Camera folder of the shooting device to the test directory;
and acquiring a picture path of the copied test picture.
4. The method according to claim 1, wherein the step of calculating the similarity between the target test picture and the target original picture according to the data array and obtaining the test result according to the similarity comprises:
respectively calculating the similarity of each color channel of the target test picture and the target original picture according to the data array;
calculating the picture similarity of the target test picture and the target original picture according to the similarity of each color channel;
and obtaining a test result according to the image similarity.
5. A test apparatus, comprising:
the photographing control module is used for controlling the photographing device to photograph the test picture and storing the test picture to the Camera folder; wherein the test picture comprises a test target;
the machine vision processing module is used for extracting target areas of the test picture and a prestored original picture; wherein the target area is an area where the test target is located;
the image comparison module is used for respectively splitting color channels of the target area of the test image and the target area of the original image, and separately performing similarity comparison on each color channel to obtain a test result;
the machine vision processing module is further to: respectively searching all vertical straight lines and all horizontal straight lines in the test picture and a prestored original picture, and carrying out Cartesian polar coordinate conversion on the test picture and the original picture; carrying out filtering operation and binarization processing on the test picture and the original picture after coordinate conversion; fitting according to all found vertical straight lines, horizontal straight lines and the converted coordinates to obtain an external polygon; extracting the external polygon with the same area as the test target area from the test picture and the original picture respectively, and storing the extracted external polygon as a target test picture and a target original picture;
the picture comparison module is further configured to: resetting the sizes of the extracted target test picture and the target original picture so as to enable the sizes of the target test picture and the target original picture to be the same; respectively splitting color channels of the target test picture and the target original picture after the target test picture and the target original picture are reset to obtain data arrays of the target test picture and the target original picture; and calculating the similarity between the target test picture and the target original picture according to the data array, and obtaining a test result according to the similarity.
6. A test system is characterized by comprising a shooting device, a processor and a memory;
the shooting device is used for shooting a test picture of a test target;
the memory stores computer-executable instructions executable by the processor;
the processor executes the computer-executable instructions to implement the steps of the method of any of claims 1 to 4.
7. An intelligent cabin, characterized in that it comprises a test system according to claim 6.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 4.
CN202011213768.9A 2020-11-03 2020-11-03 Test method, device and system and intelligent cabin Active CN112312129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011213768.9A CN112312129B (en) 2020-11-03 2020-11-03 Test method, device and system and intelligent cabin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011213768.9A CN112312129B (en) 2020-11-03 2020-11-03 Test method, device and system and intelligent cabin

Publications (2)

Publication Number Publication Date
CN112312129A CN112312129A (en) 2021-02-02
CN112312129B true CN112312129B (en) 2022-08-30

Family

ID=74324808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011213768.9A Active CN112312129B (en) 2020-11-03 2020-11-03 Test method, device and system and intelligent cabin

Country Status (1)

Country Link
CN (1) CN112312129B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231295A (en) * 2016-08-04 2016-12-14 惠州市德赛西威汽车电子股份有限公司 A kind of display screen image quality automatic checkout system, detection method and application thereof
CN107705296A (en) * 2017-09-18 2018-02-16 东莞华贝电子科技有限公司 Display screen test system, display screen method of testing and equipment
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN109618149A (en) * 2018-12-10 2019-04-12 北京旷视科技有限公司 Test method, device and the smart machine of equipment image quality
CN110505475A (en) * 2019-09-02 2019-11-26 上海移远通信技术股份有限公司 Function test method, system, equipment and the storage medium of intelligent object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231295A (en) * 2016-08-04 2016-12-14 惠州市德赛西威汽车电子股份有限公司 A kind of display screen image quality automatic checkout system, detection method and application thereof
CN107705296A (en) * 2017-09-18 2018-02-16 东莞华贝电子科技有限公司 Display screen test system, display screen method of testing and equipment
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN109618149A (en) * 2018-12-10 2019-04-12 北京旷视科技有限公司 Test method, device and the smart machine of equipment image quality
CN110505475A (en) * 2019-09-02 2019-11-26 上海移远通信技术股份有限公司 Function test method, system, equipment and the storage medium of intelligent object

Also Published As

Publication number Publication date
CN112312129A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US20210406561A1 (en) Systems and methods for lane detection
CN110705405B (en) Target labeling method and device
CN108896278B (en) Optical filter silk-screen defect detection method and device and terminal equipment
US11682225B2 (en) Image processing to detect a rectangular object
US11017552B2 (en) Measurement method and apparatus
CN112837302A (en) Mold state monitoring method and device, industrial personal computer, storage medium and system
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
CN111882520B (en) Screen defect detection method and device and head-mounted display equipment
WO2023138556A1 (en) Video generation method and apparatus based on multiple vehicle-mounted cameras, and vehicle-mounted device
CN109102026B (en) Vehicle image detection method, device and system
CN111444911B (en) Training method and device of license plate recognition model and license plate recognition method and device
CN110298302B (en) Human body target detection method and related equipment
CN111435445A (en) Training method and device of character recognition model and character recognition method and device
CN113228622A (en) Image acquisition method, image acquisition device and storage medium
CN108805799B (en) Panoramic image synthesis apparatus, panoramic image synthesis method, and computer-readable storage medium
CN112312129B (en) Test method, device and system and intelligent cabin
CN108289176B (en) Photographing question searching method, question searching device and terminal equipment
US10373329B2 (en) Information processing apparatus, information processing method and storage medium for determining an image to be subjected to a character recognition processing
CN111199567B (en) Lane line drawing method and device and terminal equipment
CN115546219B (en) Detection plate type generation method, plate card defect detection method, device and product
CN110610178A (en) Image recognition method, device, terminal and computer readable storage medium
CN109977937B (en) Image processing method, device and equipment
CN110874814A (en) Image processing method, image processing device and terminal equipment
CN113066100A (en) Target tracking method, device, equipment and storage medium
Balcerek et al. Vision-based mobile application for supporting the user in the vehicle operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant