CN115529453A - Vehicle-mounted camera testing method and device - Google Patents
Vehicle-mounted camera testing method and device Download PDFInfo
- Publication number
- CN115529453A CN115529453A CN202210953882.8A CN202210953882A CN115529453A CN 115529453 A CN115529453 A CN 115529453A CN 202210953882 A CN202210953882 A CN 202210953882A CN 115529453 A CN115529453 A CN 115529453A
- Authority
- CN
- China
- Prior art keywords
- test
- image
- target
- vehicle
- preset
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 376
- 238000000034 method Methods 0.000 claims abstract description 66
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 38
- 238000012545 processing Methods 0.000 claims description 31
- 230000015654 memory Effects 0.000 claims description 22
- 238000003702 image correction Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 27
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The application discloses a method and a device for testing a vehicle-mounted camera. The vehicle-mounted camera testing method comprises the following steps: acquiring a target test case to be executed from a camera test case set; controlling a target vehicle-mounted camera to shoot according to test conditions corresponding to a target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address; and testing the test images cached in the preset shared cache address according to a preset image testing algorithm, and generating a test result of the target vehicle-mounted camera. According to the embodiment of the application, the efficiency of the vehicle-mounted camera testing process can be improved.
Description
Technical Field
The application belongs to the technical field of vehicles, and particularly relates to a method and a device for testing a vehicle-mounted camera.
Background
With the popularization of vehicles, the development of the vehicles is more and more intelligent. Correspondingly, more and more vehicle-mounted cameras are also provided in vehicles to provide driving assistance functions such as lane departure warning, lane keeping assistance, front collision warning, automatic emergency braking, adaptive cruise, etc. In order to improve the accuracy of the auxiliary driving function provided by the vehicle, a large number of tests need to be carried out on the vehicle-mounted camera. At present, in the process of testing vehicle-mounted cameras, each vehicle-mounted camera correspondingly uses an independent execution code, and in the process of testing various vehicle-mounted cameras, the independent execution codes are called every time, so that the test process is easy to block, and the efficiency of the test process is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing a vehicle-mounted camera, which can improve the efficiency of a vehicle-mounted camera testing process.
In a first aspect, an embodiment of the present application provides a vehicle-mounted camera testing method, where the method is applied to a vehicle-mounted camera testing system, the vehicle-mounted camera testing system includes a test case management unit, and the test case management unit is configured to store a preset camera test case aggregate, and the method includes:
acquiring a target test case to be executed from a camera test case set;
controlling a target vehicle-mounted camera to shoot according to a test condition corresponding to a target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address;
and testing the test images cached in the preset shared cache address according to a preset image testing algorithm, and generating a test result of the target vehicle-mounted camera.
In some implementations of the first aspect, the preset shared buffer address includes an image correction buffer queue and an image test buffer queue; before the test image cached in the preset shared cache address is tested according to a preset image test algorithm and a test result of the target vehicle-mounted camera is generated, the method further comprises the following steps:
storing a plurality of test images into an image correction cache queue corresponding to the target vehicle-mounted camera;
correcting the images in the image correction cache queue according to a preset image correction algorithm to obtain a corrected test image;
storing the corrected test image into an image test buffer queue;
according to a preset image test algorithm, testing processing is carried out on the test image cached in a preset shared cache address, and a test result of the target vehicle-mounted camera is generated, wherein the method comprises the following steps:
and testing the test images cached in the pre-image test cache queue according to a preset image test algorithm, and generating a test result of the target vehicle-mounted camera.
In some implementation manners of the first aspect, the preset shared cache address further includes an image preview queue, and the test result includes a target image after the test processing according to a preset image test algorithm;
after the test image cached in the preset shared cache address is tested according to a preset image test algorithm and a test result of the target vehicle-mounted camera is generated, the method further comprises the following steps:
storing a target image into an image preview queue corresponding to the target vehicle-mounted camera;
and acquiring the target image cached in the image preview queue, and sending the target image to the display equipment so as to be used for the display equipment to display the target image.
In some implementations of the first aspect, the preset image testing algorithm comprises a checkerboard recognition algorithm.
In some implementations of the first aspect, the number of target test cases is multiple; the method further comprises the following steps:
generating test progress information according to the execution quantity of the target test cases in the camera test case set and the total data quantity of the target test cases in the camera test case set;
and sending the test progress information to the display equipment.
In some implementations of the first aspect, the method further comprises: and generating an execution log of the target test case corresponding to each target test case.
In some implementations of the first aspect, the method further comprises:
monitoring the execution time of a target test case;
and when the execution time exceeds the first preset time length, stopping executing the target test case.
In a second aspect, an embodiment of the present application provides a testing apparatus for an on-vehicle camera, the apparatus including:
the acquisition unit is used for acquiring a target test case to be executed from the camera test case set;
the control unit is used for controlling a target vehicle-mounted camera to shoot according to the test conditions corresponding to the target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address;
and the processing unit is used for testing the test images cached in the preset shared cache address according to a preset image test algorithm and generating a test result of the target vehicle-mounted camera.
In a third aspect, the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method for testing a vehicle-mounted camera described in the first aspect or any one of the implementable manners of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which computer program instructions are stored, and the computer program instructions, when executed by a processor, implement the method for testing a vehicle-mounted camera according to the first aspect or any one of the implementable manners of the first aspect.
In a fifth aspect, the present embodiment provides a vehicle, which is characterized in that the vehicle is provided with the electronic device according to the third aspect.
According to the method and the device for testing the vehicle-mounted camera, when the vehicle-mounted camera is tested, only a target test case needs to be selected from a preset camera test case set according to test requirements, and then the target vehicle-mounted camera can be controlled to shoot according to test conditions corresponding to the target test case, so that a plurality of test images are obtained. The plurality of test images obtained through shooting are stored in the preset shared cache address, so that the image test process is prevented from being blocked, and the test efficiency of the vehicle-mounted camera is improved. And finally, testing the test image cached in the preset shared cache address according to a preset image test algorithm, so that a test result of the target vehicle-mounted camera can be quickly generated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a vehicle-mounted camera testing system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a testing method for a vehicle-mounted camera according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a testing device for a vehicle-mounted camera according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features of various aspects and exemplary embodiments of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative only and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
With the popularization of vehicles, the development of the vehicles is more and more intelligent. Correspondingly, more and more vehicle-mounted cameras are also provided in vehicles to provide driving assistance functions such as lane departure warning, lane keeping assistance, front collision warning, automatic emergency braking, adaptive cruise, etc. In order to improve the accuracy of the driving assistance function provided by the vehicle, a large number of tests need to be carried out on the vehicle-mounted camera. At present, the efficiency of the test process of the vehicle-mounted camera is too low due to redundancy of execution codes of the test process of the vehicle-mounted camera and repeated appearance of a plurality of same logics in different use cases of the vehicle-mounted camera.
In view of the above, the embodiment of the application provides a method and a device for testing a vehicle-mounted camera, which can improve the efficiency of a vehicle-mounted camera testing process.
The following describes a method and an apparatus for testing a vehicle-mounted camera according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a vehicle-mounted camera testing system provided in an embodiment of the present application, and in combination with fig. 1, the vehicle-mounted camera testing system includes a test case management unit, and the test case management unit may be configured to store test cases (TestCase) of a plurality of vehicle-mounted cameras. For example, each test case may be the smallest unit of execution cases that can be controlled by the test software. The test case management unit can also store the use state of each test case, the execution logic of the test case and other related information.
The vehicle-mounted camera test system may further include an execution unit, in which a processing unit (ICameraCaseHander) may be included. For example, a test service logic (BaseTask) of the vehicle-mounted camera may be preset in the processing unit. Because the test service logic and the test cases of the vehicle-mounted camera and the corresponding execution logic of the test cases are stored in different positions, in the process of testing the vehicle-mounted camera, the required test cases can be selected from the test case management unit according to requirements, the control logic separation of the service logic and the cases is realized, and the decoupling effect is achieved.
Illustratively, a plurality of test tasks corresponding to the test service logic may be included in the processing unit, and each test Task may be preset according to a test requirement, for example, a picture decoding Task, an image format conversion Task (convert Bmp Task), an image bitmap comparison Task (Compare Bit Task), a Preview Task (Preview Task), and the like, which are not listed here.
The processing unit may further include a plurality of buffer queues (icamera casequeue) for storing image processing data, and the buffer queues may be preset in the processing unit according to actual data processing requirements. Optionally, the buffer queues may provide test data for the test tasks in a one-to-one correspondence. The cache Queue specifically includes, for example, a captured Image cache Queue (Camera Image Queue), a Bitmap cache Queue (Camera Bitmap Queue), a Result cache Queue (Camera Result Queue), and the like, which are not listed here. In the embodiment of the application, a buffer queue is provided for buffering specific data required by each producer/consumer.
The execution unit may further include a control unit (cameraprovider), and the control unit may uniformly manage the vehicle-mounted cameras, specifically, for example, control the on/off of the vehicle-mounted cameras. According to the embodiment of the application, the vehicle-mounted camera is controlled through the independent control unit, the stability of the use process of the vehicle-mounted camera can be enhanced, and the calling collapse of the vehicle-mounted camera is avoided. Meanwhile, the vehicle-mounted camera is controlled through the independent control unit, if the calling service logic needs to be modified in the process of calling the vehicle-mounted camera, the calling logic of the vehicle-mounted camera only needs to be modified in the control unit, and each test case does not need to be modified, so that codes can be simplified, and code redundancy is avoided.
The execution unit may further include a display unit (ICameraCaseView), and the display unit may display an image captured by the vehicle-mounted camera, and may also display an image processed according to each test case in the test process, which is not limited specifically herein. According to the embodiment of the application, the camera picture real-time preview effect is added for each use case, the problem discovery is advanced, therefore, whether the test is failed due to external reasons or camera problems can be conveniently judged, and the communication cost caused by non-technical reasons is reduced. The test service logic and the test cases can also be displayed in the display unit, so that a user can conveniently manage the test service logic and the test cases, for example, the test service logic is modified, the test cases are modified, and the like.
The vehicle-mounted camera test system may further include a test case execution management unit, for example, the test case execution management unit may monitor a length of the execution time of the test case, and when the execution time exceeds a preset time, may notify the test case to stop executing, may also control the test case to re-execute, and the like, which is not limited specifically herein.
In this embodiment of the application, the vehicle-mounted camera testing system may be implemented based on an End of Line (EOL) of a whole vehicle, for example, and is not limited herein.
Fig. 2 is a schematic flowchart of a testing method for a vehicle-mounted camera according to an embodiment of the present application. The vehicle-mounted camera testing method provided by the embodiment of the application can be applied to the vehicle-mounted camera testing system. The vehicle-mounted camera testing system can be configured with electronic equipment for testing the vehicle-mounted camera in advance, and the electronic equipment provided with the vehicle-mounted camera testing system can execute the vehicle-mounted camera testing method provided by the embodiment of the application. The electronic device may be a controller. Referring to fig. 2, the vehicle camera testing method may include steps 210 to 230.
specifically, the test case management unit is configured to store a preset camera test case set, where the camera test case set may include a plurality of camera test cases. Each test case may include a description of a test task, including, for example, test objects, test environments, input data, test steps, expected results, test scripts, and the like.
When the vehicle-mounted camera needs to be tested, a target test case to be executed can be obtained from the camera test case set.
In some embodiments, when a plurality of test cases are required to test the target vehicle-mounted camera, the test cases may be sequentially acquired from the camera test case combination set as the target test case according to the test sequence of each test case.
In some embodiments, when the number of the target test cases is multiple, in the embodiments of the present application, test progress information may also be generated according to the execution number of the target test cases in the camera test case set and the total data volume of the target test cases in the camera test case set; and sending the test progress information to the display equipment.
According to the embodiment of the application, the test progress information is generated and sent to the display device, so that a user can know the test progress clearly and definitely.
Illustratively, the in-vehicle camera includes at least one of: look around camera, infrared camera.
The looking-around camera is, for example, a ByPassAR/ByPassMedia camera, a 360 looking-around camera, and the looking-around camera can be installed at the front, the back, the left and the right of the vehicle. Infrared cameras such as IR/TOF cameras, etc., not to mention here.
And step 220, controlling the target vehicle-mounted camera to shoot according to the test conditions corresponding to the target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address.
Specifically, after the target test case is obtained, the target vehicle-mounted camera can be controlled to shoot according to the description of the test task in the target test case, so that a plurality of test images can be obtained.
Because the target vehicle can shoot a plurality of images at the camera at one time, in order to prevent the test process from being blocked, the shot test images can be stored in the preset shared cache address.
The preset shared buffer address may include a plurality of buffer queues, and each buffer queue may correspond to each test task in the test case one to one, where the test tasks include, for example, an image correction buffer queue, an image test buffer queue, and the like, and the present invention is not limited in this respect.
According to the embodiment of the application, after the shot images are obtained, the shot images are stored in the preset shared cache address, so that buffering can be provided for a test process, and test blockage caused by the large number of the shot images is avoided.
And step 230, testing the test image cached in the preset shared cache address according to a preset image test algorithm, and generating a test result of the target vehicle-mounted camera.
Illustratively, the preset shared buffer address includes an image correction buffer queue (cover queue) and an image test buffer queue (compare queue). Before step 230 is executed, a plurality of test images may be stored in an image correction buffer queue corresponding to the target vehicle-mounted camera; correcting the images in the image correction cache queue according to a preset image correction algorithm to obtain a corrected test image; and storing the corrected test image into an image test buffer queue. Specifically, step 230 may include: and testing the test images cached in the pre-image test cache queue according to a preset image test algorithm, and generating a test result of the target vehicle-mounted camera.
In the embodiment of the application, the accuracy of the test result can be improved by firstly correcting the image.
In some embodiments, the preset image testing algorithm may include a checkerboard recognition algorithm. Because the calculation process of the checkerboard recognition algorithm is simple, the influence of external reasons on the test result can be reduced, and the stability of the test case and the passing rate of the test case can be improved by providing the checkerboard recognition algorithm.
In some optional embodiments, the preset shared cache address further includes an image preview queue, and the test result includes a target image after the test processing according to a preset image test algorithm. After the test result provided according to the embodiment of the application, the following steps can be further included: storing a target image into an image preview queue corresponding to the target vehicle-mounted camera; and acquiring the target image cached in the image preview queue, and sending the target image to the display equipment for the display equipment to display the target image.
The image shot by the vehicle-mounted camera can be displayed through the display device, and the image processed according to each test case in the test process can also be displayed, which is not limited specifically herein. According to the embodiment of the application, the problem discovery is preposed by adding the real-time preview effect of the camera picture for each use case, so that the test failure caused by external reasons or camera problems can be conveniently judged, and the communication cost caused by non-technical reasons is reduced.
In some embodiments, an execution log of the target test cases is generated for each target test case. By adding a detailed execution log of the target test case, when a test problem occurs, a root cause of the problem is convenient to find;
in some embodiments, in the execution process of the target test case, the method may further include: monitoring the execution time of a target test case; and when the execution time exceeds the first preset time length, stopping executing the target test case.
In the application embodiment, the blocking of the image testing process is avoided, so that the testing efficiency of the vehicle-mounted camera is improved.
Based on the same inventive concept, the application also provides a vehicle-mounted camera testing device 300 corresponding to the vehicle-mounted camera testing method. The detailed description is made with reference to fig. 3.
Fig. 3 is a schematic structural diagram of a vehicle-mounted camera testing device according to an embodiment of the present application, where the vehicle-mounted camera testing device 300 is applied to a vehicle-mounted camera testing system, and the vehicle-mounted camera testing system includes a test case management unit, and the test case management unit is used to store a preset camera test case aggregate. As shown in fig. 3, the in-vehicle camera test apparatus 300 may include:
an obtaining unit 310, configured to obtain a target test case to be executed from a camera test case set;
the control unit 320 is configured to control the target vehicle-mounted camera to shoot according to the test condition corresponding to the target test case to obtain a plurality of test images, where the plurality of test images are stored in a preset shared cache address;
the processing unit 330 is configured to perform test processing on the test image cached in the preset shared cache address according to a preset image test algorithm, and generate a test result of the target vehicle-mounted camera.
In some embodiments, the preset shared buffer address comprises an image correction buffer queue and an image test buffer queue; before the test image cached in the preset shared cache address is tested according to a preset image test algorithm and a test result of the target vehicle-mounted camera is generated, the method further comprises the following steps:
the processing unit 330 is further configured to store a plurality of test images in an image correction buffer queue corresponding to the target vehicle-mounted camera;
the processing unit 330 is further configured to perform correction processing on the image in the image correction buffer queue according to a preset image correction algorithm, so as to obtain a corrected test image;
the processing unit 330 is further configured to store the corrected test image in an image test buffer queue;
the processing unit 330 is further configured to test the test images cached in the pre-image test cache queue according to a preset image test algorithm, and generate a test result of the target vehicle-mounted camera.
In some embodiments, the preset shared cache address further includes an image preview queue, and the test result includes a target image after test processing according to a preset image test algorithm; the device still includes:
the processing unit 330 is further configured to store the target image in an image preview queue corresponding to the target vehicle-mounted camera;
and the acquisition module is used for acquiring the target image cached in the image preview queue and sending the target image to the display equipment so that the display equipment can display the target image.
In some embodiments, the predetermined image testing algorithm comprises a checkerboard recognition algorithm.
In some embodiments, the number of target test cases is multiple;
the processing unit 330 is further configured to generate test progress information according to the execution number of the target test cases in the camera test case set and the total data volume of the target test cases in the camera test case set;
and the sending unit is used for sending the test progress information to the display equipment.
In some embodiments, the processing unit 330 is further configured to generate an execution log of the target test cases corresponding to each target test case.
In some embodiments, the processing unit 330 is further configured to monitor an execution time of the target test case;
and a control unit 320 for stopping executing the target test case when the execution time exceeds a first preset time length.
In some embodiments, the in-vehicle camera includes at least one of: look around camera, infrared camera.
It can be understood that the vehicle-mounted camera testing device 300 in the embodiment of the present application may correspond to an execution main body of the vehicle-mounted camera testing method provided in the embodiment of the present application, and specific details of operations and/or functions of each module/unit of the vehicle-mounted camera testing device 300 may be referred to the description of the corresponding part in the vehicle-mounted camera testing method provided in the embodiment of the present application, and for brevity, no further description is provided here.
According to the vehicle-mounted camera testing device, the preset camera testing case set comprises the testing cases of the vehicle-mounted camera, and different testing cases can correspond to different testing logics, so that the repeated occurrence of execution codes corresponding to the same testing logics can be avoided, and code redundancy is caused. When the vehicle-mounted camera is tested, only a target test case needs to be selected from a preset camera test case set according to test requirements, and then the target vehicle-mounted camera can be controlled to shoot according to test conditions corresponding to the target test case to obtain a plurality of test images. The plurality of test images obtained through shooting are stored in the preset shared cache address, so that the image test process is prevented from being blocked, and the test efficiency of the vehicle-mounted camera is improved. And finally, testing the test image cached in the preset shared cache address according to the sharing according to a preset image test algorithm, so that the test result of the target vehicle-mounted camera can be quickly generated.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the apparatus may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
The memory may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform operations described with reference to the methods according to an aspect of the application.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the method described in the embodiment of the present application, and achieve the corresponding technical effect achieved by executing the method in the embodiment of the present application, which is not described herein again for brevity.
In one example, the electronic device can also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application.
The electronic equipment can execute the vehicle-mounted camera testing method in the embodiment of the application, so that the corresponding technical effect of the vehicle-mounted camera testing method described in the embodiment of the application is achieved.
In addition, in combination with the vehicle-mounted camera testing method in the above embodiments, the embodiments of the present application may provide a readable storage medium to implement. The readable storage medium having stored thereon computer program instructions; when executed by a processor, the computer program instructions implement any one of the vehicle-mounted camera testing methods in the above embodiments. Examples of a readable storage medium may be a non-transitory machine-readable medium, such as an electronic circuit, a semiconductor Memory device, a Read-Only Memory (ROM), a floppy disk, a Compact Disc Read-Only Memory (CD-ROM), an optical disk, a hard disk, and so forth.
It is to be understood that the present application is not limited to the particular arrangements and instrumentalities described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor Memory devices, read-Only memories (ROMs), flash memories, erasable Read-Only memories (EROMs), floppy disks, compact disk Read-Only memories (CD-ROMs), optical disks, hard disks, optical fiber media, radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
In addition, in combination with the vehicle-mounted camera testing method, device and readable storage medium in the foregoing embodiments, embodiments of the present application may provide a computer program product to implement. The instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform any one of the vehicle-mounted camera testing methods in the above embodiments.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.
Claims (11)
1. A vehicle-mounted camera testing method is characterized by comprising the following steps:
acquiring a target test case to be executed from a preset camera test case set;
controlling a target vehicle-mounted camera to shoot according to the test conditions corresponding to the target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address;
and testing the test image cached in the preset shared cache address according to a preset image test algorithm, and generating a test result of the target vehicle-mounted camera.
2. The method of claim 1, wherein the predetermined shared buffer address comprises an image correction buffer queue and an image test buffer queue; before the testing processing is performed on the test image cached in the preset shared cache address according to a preset image testing algorithm and the test result of the target vehicle-mounted camera is generated, the method further includes:
storing the plurality of test images into the image correction cache queue corresponding to the target vehicle-mounted camera;
correcting the images in the image correction cache queue according to a preset image correction algorithm to obtain a corrected test image;
storing the corrected test image into the image test buffer queue;
the step of testing the test image cached in the preset shared cache address according to a preset image test algorithm and generating the test result of the target vehicle-mounted camera comprises the following steps:
and testing the test images cached in the pre-image test cache queue according to a preset image test algorithm, and generating a test result of the target vehicle-mounted camera.
3. The method according to claim 1 or 2, wherein the preset shared cache address further comprises an image preview queue, and the test result comprises a target image after the test processing according to the preset image test algorithm;
after the test image cached in the preset shared cache address is tested according to a preset image test algorithm and a test result of the target vehicle-mounted camera is generated, the method further comprises the following steps:
storing the target image into the image preview queue corresponding to the target vehicle-mounted camera;
and acquiring the target image cached in the image preview queue, and sending the target image to a display device for the display device to display the target image.
4. The method of claim 1, wherein the predetermined image testing algorithm comprises a checkerboard recognition algorithm.
5. The method according to claim 1, wherein the number of the target test cases is plural; the method further comprises the following steps:
generating test progress information according to the execution quantity of the target test cases in the preset camera test case set and the total data quantity of the target test cases in the preset camera test case set;
and sending the test progress information to display equipment.
6. The method of claim 1, further comprising: and generating an execution log of the target test case corresponding to each target test case.
7. The method of claim 1, further comprising:
monitoring the execution time of the target test case;
and when the execution time exceeds a first preset time length, stopping executing the target test case.
8. A testing device for an on-vehicle camera, the device comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a target test case to be executed from a preset camera test case set;
the control unit is used for controlling a target vehicle-mounted camera to shoot according to the test conditions corresponding to the target test case to obtain a plurality of test images, wherein the plurality of test images are stored in a preset shared cache address;
and the processing unit is used for testing the test images cached in the preset shared cache address according to a preset image test algorithm and generating a test result of the target vehicle-mounted camera.
9. An electronic device, characterized in that the device comprises: a processor, and a memory storing computer program instructions;
the processor reads and executes the computer program instructions to realize the testing method of the vehicle-mounted camera according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon computer program instructions, which, when executed by a processor, implement the method for testing an in-vehicle camera according to any one of claims 1 to 7.
11. A vehicle, characterized in that the vehicle is provided with an electronic device according to claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210953882.8A CN115529453A (en) | 2022-08-10 | 2022-08-10 | Vehicle-mounted camera testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210953882.8A CN115529453A (en) | 2022-08-10 | 2022-08-10 | Vehicle-mounted camera testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115529453A true CN115529453A (en) | 2022-12-27 |
Family
ID=84696275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210953882.8A Pending CN115529453A (en) | 2022-08-10 | 2022-08-10 | Vehicle-mounted camera testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115529453A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205406A1 (en) * | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
FI20116278A (en) * | 2011-12-16 | 2013-06-17 | Codenomicon Oy | Information network-based testing service and procedure for testing in an information network |
CN104521227A (en) * | 2012-08-03 | 2015-04-15 | 三星电子株式会社 | Image processing method and apparatus |
JP2016080698A (en) * | 2014-10-17 | 2016-05-16 | 日本無線株式会社 | Image generation device |
CN105868123A (en) * | 2016-04-07 | 2016-08-17 | 武汉数字派特科技有限公司 | Concurrent data caching structure and method |
CN109685712A (en) * | 2017-10-18 | 2019-04-26 | 阿里巴巴集团控股有限公司 | Image buffer storage and application method and device, terminal |
CN110264452A (en) * | 2019-06-18 | 2019-09-20 | 江苏通佑视觉科技有限公司 | A kind of workpiece inspection method, device, equipment and storage medium |
CN110620920A (en) * | 2019-09-06 | 2019-12-27 | 深圳市度信科技有限公司 | Vehicle-mounted camera testing device and vehicle-mounted camera testing system |
CN111367687A (en) * | 2020-02-28 | 2020-07-03 | 罗普特科技集团股份有限公司 | Inter-process data communication method and device |
CN112596972A (en) * | 2020-12-23 | 2021-04-02 | 文思海辉智科科技有限公司 | Vehicle-mounted equipment testing method, device and system and computer equipment |
CN114328062A (en) * | 2021-11-18 | 2022-04-12 | 芯华章科技股份有限公司 | Method, device and storage medium for checking cache consistency |
CN114332879A (en) * | 2021-12-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Imaging performance testing method, device, medium and equipment |
CN114885156A (en) * | 2022-07-13 | 2022-08-09 | 龙旗电子(惠州)有限公司 | Identification method, device, equipment, storage medium and program product |
-
2022
- 2022-08-10 CN CN202210953882.8A patent/CN115529453A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205406A1 (en) * | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
FI20116278A (en) * | 2011-12-16 | 2013-06-17 | Codenomicon Oy | Information network-based testing service and procedure for testing in an information network |
CN104521227A (en) * | 2012-08-03 | 2015-04-15 | 三星电子株式会社 | Image processing method and apparatus |
JP2016080698A (en) * | 2014-10-17 | 2016-05-16 | 日本無線株式会社 | Image generation device |
CN105868123A (en) * | 2016-04-07 | 2016-08-17 | 武汉数字派特科技有限公司 | Concurrent data caching structure and method |
CN109685712A (en) * | 2017-10-18 | 2019-04-26 | 阿里巴巴集团控股有限公司 | Image buffer storage and application method and device, terminal |
CN110264452A (en) * | 2019-06-18 | 2019-09-20 | 江苏通佑视觉科技有限公司 | A kind of workpiece inspection method, device, equipment and storage medium |
CN110620920A (en) * | 2019-09-06 | 2019-12-27 | 深圳市度信科技有限公司 | Vehicle-mounted camera testing device and vehicle-mounted camera testing system |
CN111367687A (en) * | 2020-02-28 | 2020-07-03 | 罗普特科技集团股份有限公司 | Inter-process data communication method and device |
CN112596972A (en) * | 2020-12-23 | 2021-04-02 | 文思海辉智科科技有限公司 | Vehicle-mounted equipment testing method, device and system and computer equipment |
CN114328062A (en) * | 2021-11-18 | 2022-04-12 | 芯华章科技股份有限公司 | Method, device and storage medium for checking cache consistency |
CN114332879A (en) * | 2021-12-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Imaging performance testing method, device, medium and equipment |
CN114885156A (en) * | 2022-07-13 | 2022-08-09 | 龙旗电子(惠州)有限公司 | Identification method, device, equipment, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106059987B (en) | Vehicle-mounted network intrusion detection system and control method thereof | |
CN109305197B (en) | Train control method and system and vehicle-mounted controller | |
CN113852563B (en) | Message data transmission method and device, terminal equipment and readable storage medium | |
US8798843B2 (en) | Vehicle diagnosing apparatus | |
CN112534300A (en) | Apparatus and method for sharing sensors in a multi-chip system environment | |
US10909693B2 (en) | Image analysis method, device, system, and program, which use vehicle driving information, and storage medium | |
US11841942B2 (en) | Anomaly detection device and anomaly detection method | |
CN111989678A (en) | Information processing apparatus, information processing method, and program | |
CN111354216A (en) | Vehicle parking position identification method and device and related equipment | |
CN115529453A (en) | Vehicle-mounted camera testing method and device | |
EP3349214A1 (en) | Evaluating propagation of a video feed | |
CN112889035B (en) | Test method, test device and terminal equipment | |
CN115831077A (en) | Vehicle-mounted screen brightness control method and device and related equipment | |
CN112597793B (en) | Method, device and equipment for identifying traffic light state and timer state | |
CN113283450A (en) | Image recognition method, device, equipment and computer storage medium | |
CN108965214B (en) | Data processing method, device and computer storage medium | |
CN112597790B (en) | Driver attention detection method, device, equipment and computer readable medium | |
US20240331455A1 (en) | Vehicle control system and vehicle control device | |
CN111443683B (en) | Electronic control unit testing method and device based on vehicle CAN bus structure | |
CN118573617A (en) | Information processing method, device, equipment and vehicle | |
CN116434505A (en) | Alarm information processing method, system, equipment, storage medium and vehicle | |
CN111681199B (en) | Method and device for detecting image validity | |
CN116416817A (en) | Method, system, medium and parking lot terminal for monitoring vehicles in parking lot | |
CN118233742A (en) | Vehicle-mounted image pickup system configuration method, microcontroller and vehicle-mounted image pickup system | |
CN116931987A (en) | Vehicle-mounted controller updating method and device |
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 |