CN115470109A - Automatic testing method and device for automobile instrument - Google Patents

Automatic testing method and device for automobile instrument Download PDF

Info

Publication number
CN115470109A
CN115470109A CN202211017936.6A CN202211017936A CN115470109A CN 115470109 A CN115470109 A CN 115470109A CN 202211017936 A CN202211017936 A CN 202211017936A CN 115470109 A CN115470109 A CN 115470109A
Authority
CN
China
Prior art keywords
characteristic information
display characteristic
automobile instrument
driving signals
target
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
Application number
CN202211017936.6A
Other languages
Chinese (zh)
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.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation 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 China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202211017936.6A priority Critical patent/CN115470109A/en
Publication of CN115470109A publication Critical patent/CN115470109A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The automatic testing method for the automobile instrument comprises the following steps: acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the plurality of target driving signals; sequentially driving the to-be-tested automobile instrument based on the plurality of target driving signals so as to enable the to-be-tested automobile instrument to display image information corresponding to the plurality of target driving signals respectively; carrying out image acquisition on display image information respectively corresponding to the target driving signals to obtain acquired image information; acquiring image information comprising a plurality of dynamic image frames; performing image recognition based on the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals; and determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information. The method and the device can identify the dynamic images of the automobile instrument, and improve the testing efficiency.

Description

Automatic testing method and device for automobile instrument
Technical Field
The application relates to the technical field of vehicles, in particular to an automatic testing method and device for an automobile instrument.
Background
With the rapid development of the times, the traditional instrument and central control screen are developed from a single vehicle information display and entertainment system to an integrated cockpit area controller, and the functions required to be realized by the automatic test are not only the identification of a single background and a fixed icon. Development in the aspect of intelligent driving promotes addition of more and more dynamic display effects such as ADAS (Advanced Driver Assistance System) function display of the instrument, and the test efficiency of the automatic test on the aspect needs to be improved.
The existing automatic testing method has higher identification maturity for static objects capturing fixed backgrounds, but cannot realize the identification of the dynamic display effect of the automobile instrument. For the identification of the dynamic display effect of the automobile instrument, the automobile instrument is still in a manual test state at present, so that the instrument has low efficiency, much time consumption and higher cost in the test process.
Disclosure of Invention
The application provides an automatic testing method and device for an automobile instrument, which are used for solving the problems that the automatic testing in the prior art cannot realize the identification of a dynamic display effect and the testing efficiency is low.
The application is realized by the following technical scheme:
in one aspect, the present application provides an automatic testing method for an automobile instrument, including:
acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
sequentially driving the automobile instrument to be tested based on the target driving signals so as to enable the automobile instrument to be tested to display image information corresponding to the target driving signals;
carrying out image acquisition on the display image information respectively corresponding to the target driving signals to obtain acquired image information; the acquired image information comprises a plurality of dynamic image frames;
performing image recognition based on the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals;
and determining a test result of the to-be-tested automobile instrument based on the preset display characteristic information and the actual display characteristic information.
Further, the sequentially driving the to-be-tested automobile instrument based on the plurality of target driving signals comprises:
determining a current driving signal corresponding to each driving period based on the time sequence relation of the plurality of target driving signals;
and driving the to-be-tested automobile instrument based on the current driving signal so as to enable the to-be-tested automobile instrument to display image information corresponding to the current driving signal.
Further, the determining a test result of the to-be-tested automobile instrument based on the preset display characteristic information and the actual display characteristic information includes:
determining preset display characteristic information corresponding to a plurality of preset periods based on the preset display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
determining actual display characteristic information corresponding to a plurality of driving periods based on the actual display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
comparing the preset display characteristic information corresponding to each preset period with the actual display characteristic information corresponding to each driving period to obtain an information comparison result; the time sequence information of each preset period in the plurality of preset periods is consistent with the time sequence information of each driving period in the plurality of driving periods;
and determining that the automobile instrument to be tested passes the test under the condition that the information comparison result indicates that the preset display characteristic information corresponding to the plurality of preset periods is consistent with the actual display characteristic information corresponding to the corresponding plurality of driving periods.
Further, the performing image recognition based on the collected image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals includes:
carrying out video frame duplication removal on the acquired image information to obtain a plurality of image frames related to the time sequence;
and carrying out image recognition on the plurality of image frames related to the time sequence to obtain a plurality of actual display characteristic information related to the time sequence.
Further, the image recognizing the plurality of image frames associated with the time sequence to obtain actual display characteristic information corresponding to the plurality of target driving signals respectively includes:
performing image area segmentation on the plurality of image frames related to the time sequence to obtain a target image area;
and performing image recognition based on the target image area to obtain a plurality of actual display characteristic information related to the time sequence.
Further, the signal type of the target driving signal comprises at least one of a vehicle speed signal, a rotating speed signal, a prompting lamp signal, a popup window prompting signal and an intelligent driving direction information signal.
Further, the signal format of the target driving signal includes at least one of CAN, LIN, eth.
In a second aspect, the present application provides an automatic testing device for automobile instruments, the device comprising:
the acquisition module is used for acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
the driving module is used for sequentially driving the automobile instrument to be tested based on the target driving signals so as to enable the automobile instrument to be tested to display image information corresponding to the target driving signals;
the acquisition module is used for carrying out image acquisition on the display image information respectively corresponding to the plurality of target driving signals to obtain acquired image information; the acquired image information comprises a plurality of dynamic image frames;
the identification module is used for carrying out image identification on the basis of the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the target driving signals;
and the judging module is used for determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information.
In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the motormeter automated testing method of any one of the above.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein at least one instruction, at least one program, code set, or set of instructions that is loaded and executed by a processor to implement the motormeter automated testing method of any one of the above.
By adopting the technical scheme, the application provides the automatic test method and the automatic test device for the automobile instrument, and the automatic test method and the automatic test device for the automobile instrument have the following beneficial effects:
the target test case comprises a plurality of target driving signals related to time sequence, the target driving signals sequentially drive the automobile instrument to be tested, and the automobile instrument to be tested can dynamically display image information; secondly, carrying out image recognition on the collected dynamic display image information to obtain actual display characteristic information associated with time sequence, thereby realizing the recognition of the dynamic image of the automobile instrument; therefore, the actual display characteristic information related to the time sequence is automatically compared with the preset display characteristic information related to the time sequence, whether the current test item passes or not is judged, the cost of manual testing is replaced, the development period is shortened, and the testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of an automatic testing method for a vehicle instrument according to an embodiment of the present application;
FIG. 2 is a schematic flowchart illustrating a method for driving a meter to display a target driving signal according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for confirming a test result according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a method for identifying a dynamic image according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another dynamic image recognition method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device for implementing an automobile automation test method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The specification provides method steps such as in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive practice. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures.
Referring to fig. 1, an execution main body is a test server, and the method may include:
s101: acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
in the embodiment of the application, the target test case comprises a plurality of target driving signals associated with a time sequence, wherein the time sequence association can be specifically expressed as a sending sequence among the plurality of target driving signals; the target test case further comprises preset display characteristic information which is respectively corresponding to the plurality of target driving signals and is associated with a time sequence, wherein the preset display characteristic information can represent character identification information of a display image corresponding to the target driving signals, or can represent vector information of the display image corresponding to the target driving signals, or can represent image information which should be displayed by the to-be-tested automobile instrument under the driving of the plurality of target driving signals.
In a specific embodiment, the test server is started, the test server includes test software, the test software obtains information in a target test case, and the target test case information includes a channel for sending a signal, a message where the signal is located, a signal sending cycle, a signal sending value, waiting time for sending different signals, a name of an expected result icon in a data set after the target test case is executed, and the like, which are described according to a specific editing mode.
In a specific embodiment, the writing format of the target test case is CAN1-0xC 0-temporal-120-cycle-20-delay-2000-show- "data set image name", which means that on the CAN1 channel, the vehicle speed signal temporal in the 0xC0 message is set to 120 and sent every 20 milliseconds, and after waiting for 2 seconds, the data set image name is acquired.
In another specific embodiment, each target driving signal included in the target test case may represent a display object, a display content, whether to display, a result that should be displayed, and the like. The display objects may include, but are not limited to, vehicle speed, rotational speed, warning lights, pop-up windows, smart driving orientation information. This different display object may also characterize the signal type of the target drive signal. In a specific embodiment, the target test case may be: and displaying the front vehicle, wherein the time distance between the front vehicle and the front vehicle is gradually reduced from 3 grids to 1 grid, and the interval time is 2 seconds. The test server requires to send a group of target driving signals related to time sequence, expects that the automobile instrument to be tested will display vehicles appearing in front, and the distance between the automobile instrument to be tested and the front vehicle is changed from time interval 3 to time interval 2 to time interval 1, wherein the change interval time is 2 seconds.
In the prior art, a display picture of an automobile instrument to be tested comprises a plurality of display areas, generally, the plurality of display areas correspond to different display objects respectively, the display objects in the same display area are the same, and a target driving signal can realize the test of a specific display object. In a practical application, a plurality of display objects and corresponding display contents are usually allocated to one display area in a cockpit instrument of a vehicle, that is, the same display area displays different display objects and display contents in different scenes. In one embodiment, for example, the icon of "show front vehicle" and the icon of "pop-up window prompt" are allocated in the same display area, in order to realize the test of the icon of "show front vehicle", the icon of "show front vehicle" is required to be displayed, and the icon of "pop-up window prompt" is not displayed, so that two target driving signals are required to be sent. In another embodiment, the same display area may be an overlapping display of 3 or more icons, and in order to implement a test on a specific display object, the test server may also send a set of CAN target driver signals.
S102: sequentially driving the to-be-tested automobile instrument based on the plurality of target driving signals so as to enable the to-be-tested automobile instrument to display image information respectively corresponding to the plurality of target driving signals;
in a specific embodiment, the test server is connected with the to-be-tested automobile instrument through a bus tool, the test server responds to the target driving signal, sequentially transmits the target driving signal to the electronic control unit of the to-be-tested automobile instrument through the bus tool, and processes the target driving signal into an image driving signal matched with the to-be-tested automobile instrument through the electronic control unit, so that the to-be-tested automobile instrument displays display image information corresponding to the plurality of target driving signals respectively.
In a specific embodiment, the display picture of the automobile instrument to be tested comprises a plurality of display areas, in general, the plurality of display areas respectively correspond to different display image information, and display objects in the same display area are the same; the multiple target driving signals sequentially drive the automobile instrument to be tested, the electronic control unit of the automobile instrument to be tested sequentially processes the received multiple target driving signals into different display image information, multiple display areas on the automobile instrument to be tested sequentially display the image information, and due to the fact that the multiple target driving signals are associated in time sequence, the multiple target driving signals are sequentially sent, and therefore the display image information of the same display area changes, namely the automobile instrument to be tested presents a dynamic display picture.
In another specific embodiment, when the alarm pop-up window related display image information is tested, the alarm pop-up window display image information covers at least one display area, so that the driving safety is remarkably reminded to the driver.
S103: carrying out image acquisition on the display image information respectively corresponding to the target driving signals to obtain acquired image information;
in a specific embodiment, the image acquisition may use an image acquisition device, and the image acquisition device may be an industrial camera, which obtains clear acquired image information and has high image resolution compared to a common camera. The industrial camera can continuously collect image information, namely the industrial camera can collect dynamic images, the collected image information is dynamic multi-frame images, and each frame of image comprises one or more corresponding display image information.
S104: performing image recognition based on the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals;
in a specific embodiment, a tester takes each image file required to be displayed by the instrument as a training sample set, the image files comprise original icon files of all images provided and displayed by the project design and frame-by-frame files of animation, the training sample set is input into an image recognition model for training, each feature information including contour and color in the images is extracted, interference information is eliminated, and the extracted feature information is labeled with the names of the icons of the display objects.
In a specific embodiment, the collected image information is a dynamic multi-frame image associated with a time sequence, the collected image information is input into a trained image recognition model, image recognition is performed on the collected image information based on the image recognition model, actual display characteristic information associated with the time sequences respectively corresponding to a plurality of target driving signals is obtained, and display object icons of a plurality of continuous images are recognized from the dynamic multi-frame continuous images.
In a specific embodiment, after image recognition is performed on the acquired image information generated by each target driving signal instruction, a plurality of time sequence-associated actual display feature information are obtained, and the corresponding name of the actual display feature information in the trained feature information is compared with the expected display image name (namely, the preset display feature information associated with the time sequence corresponding to the target driving signal) in the target test case to judge whether the current test item passes or not, so that the cost of manual testing is replaced, the development period is shortened, and the testing efficiency is improved.
S105: and determining a test result of the to-be-tested automobile instrument based on the preset display characteristic information and the actual display characteristic information.
In a specific embodiment, actual display characteristic information associated with time sequences corresponding to the plurality of target driving signals respectively is compared with preset display characteristic information associated with time sequences corresponding to the plurality of target driving signals respectively in a target test case, whether a test result of the automobile instrument to be tested is correct or not is determined, and if the test results are different, it is indicated that the automobile instrument may have a display error condition.
In one specific embodiment, the target test case requires a set of CAN signals to be sent, and the motormeter to be tested will display the presence of a vehicle in front, and the time distance from the front vehicle is reduced from 3 to 1. The testing server sends the CAN signal in the input target testing case according to steps, the image acquisition device starts to intercept multi-frame images after the signal is received by the automobile instrument to be tested, the identification module of the testing server identifies that images with time distance reduced from 3 grids to 1 grid appear in the images, and the testing server outputs a text to pass through to a testing document. If the image of the front vehicle is recognized to be simultaneously and sequentially displayed with the time distance reduced from 1 lattice to 3 lattices or the image of any one frame in the description is lacked, the 'failure' is output to the test document.
The automobile instrument to be tested in the embodiment of the application is not a traditional instrument, on one hand, more and more dynamic display effects are added, on the other hand, the automobile instrument to be tested is developed towards the direction of the integrated cockpit domain controller, so that the existing testing method for carrying out automatic testing in a picture comparison mode is not suitable for testing the dynamic display effects of the existing intelligent cockpit instrument, and therefore the target testing case of the application comprises a plurality of time sequence-associated target driving signals which sequentially drive the automobile instrument to be tested, and the automobile instrument to be tested can dynamically display image information; secondly, carrying out image recognition on the collected dynamic display image information to obtain actual display characteristic information associated with time sequence, thereby realizing the recognition of the dynamic image of the automobile instrument; therefore, the actual display characteristic information related to the time sequence is automatically compared with the preset display characteristic information related to the time sequence, whether the current test item passes or not is judged, the cost of manual testing is replaced, the development period is shortened, and the testing efficiency is improved.
Further, a target driving signal driving instrument display method can refer to fig. 2, and the method may include:
s201: determining a current driving signal corresponding to each driving period based on the time sequence relation of the target driving signals;
in the embodiment of the application, when a specific display object is tested, a plurality of target driving signals for the display object need to be sent to an automobile instrument to be tested, the plurality of target driving signals of the display object have a time sequence relation and are sent according to a certain sequence, waiting time exists between sending different target driving signals, namely the plurality of target driving signals have driving cycles, and each driving cycle corresponds to one current driving signal.
S202: and driving the automobile instrument to be tested based on the current driving signal so as to enable the automobile instrument to be tested to display the display image information corresponding to the current driving signal.
In the embodiment of the application, when the automobile instrument to be tested is driven based on the current driving signal, a certain display area of the automobile instrument to be tested displays the display image information corresponding to the current driving signal.
Further, referring to fig. 3, a method for confirming a test result may include:
s301: determining preset display characteristic information corresponding to a plurality of preset periods based on the preset display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
in the embodiment of the application, in the target test case, each preset period corresponds to one target driving signal, and a plurality of target driving signals have a time sequence relationship, so that the plurality of preset periods correspond to a plurality of time sequence-associated preset display characteristic information.
S302: determining actual display characteristic information corresponding to a plurality of driving periods based on the actual display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
in the embodiment of the application, image acquisition is carried out on image information sequentially displayed by the automobile instrument to be tested, image identification is carried out on the acquired image information, the obtained actual display characteristic information associated with the time sequences respectively corresponding to the plurality of target driving signals is obtained, each driving period corresponds to one target driving signal, and the plurality of target driving signals have a time sequence relationship, so that the plurality of driving periods correspond to the actual display characteristic information associated with the time sequences.
S303: comparing the preset display characteristic information corresponding to each preset period with the actual display characteristic information corresponding to each driving period to obtain an information comparison result; the time sequence information of each preset period in the plurality of preset periods is consistent with the time sequence information of each driving period in the plurality of driving periods;
in the embodiment of the application, a time sequence relation exists among a plurality of preset periods, a time sequence relation also exists among a plurality of driving periods, and the plurality of preset periods are consistent with the time sequence information of the associated plurality of driving periods, so that the information comparison can be performed between the preset display characteristic information associated with the time sequence and the actual display characteristic information associated with the time sequence one by one, and a correct information comparison result can be obtained.
In a specific embodiment, the preset display characteristic information may specifically be a plurality of preset icons, and the actual display characteristic information may specifically be icons of a plurality of consecutive images identified in a dynamic multi-frame image, where the plurality of preset icons and the icons of the plurality of identified consecutive images correspond to each other in time sequence one to one.
S304, determining that the to-be-tested automobile instrument passes the test under the condition that the information comparison result indicates that the preset display characteristic information corresponding to the plurality of preset periods is consistent with the actual display characteristic information corresponding to the corresponding plurality of driving periods.
In a specific embodiment, a plurality of time sequence related target driving signals in a target test case respectively correspond to corresponding preset periods, and if the target test case comprises 2 time sequence related target driving signals, a preset period 1 and a preset period 2 exist correspondingly; when the automobile instrument to be tested is sequentially driven based on the target driving signals, the driving period 1 and the driving period 2 correspond to each other, if the preset display characteristic information corresponding to the preset period 1 is consistent with the actual display characteristic information corresponding to the driving period 1, and the preset display characteristic information corresponding to the preset period 2 is consistent with the actual display characteristic information corresponding to the driving period 2, the automobile instrument to be tested passes the test.
In a specific implementation mode, the preset and actual display characteristic information can be calibrated and compared through image calibration software, so that the manual marking time is saved, the compiling efficiency is improved, and the research and development period of the automobile instrument is shortened.
Further, referring to fig. 4, the method for identifying a moving image may include:
s401: carrying out video frame duplication elimination on the acquired image information to obtain a plurality of image frames related in time sequence;
in a specific embodiment, the test server performs video frame deduplication on the acquired image information, where deduplication can be performed based on similarity between images, and specifically, deduplication can be performed by means of mean square error, that is, a square average of a difference between pixel values of two pictures reflects similarity between the images, and a smaller value indicates that the images are more similar.
In a specific embodiment, a plurality of images with higher similarity are removed through an image processing algorithm to obtain a plurality of images with lower similarity in time sequence association, or images containing different display object characteristics in time sequence association; therefore, the image frame after the duplication is removed can be directly identified in the following process, the image identification efficiency is improved under the condition that the test result is not influenced, and the automatic test speed is accelerated.
S402: and performing image recognition on the plurality of image frames related to the time sequence to obtain a plurality of actual display characteristic information related to the time sequence.
In a specific embodiment, there are 3 target driving signals, and there are 3 corresponding time-sequence-related preset display feature information, so if the obtained time-sequence-related image frames are also 3, the next image recognition can be performed; if the obtained time sequence related image frames are not 3, the fact that the dynamic image display of the automobile instrument to be tested is in error can be shown, image recognition of the image frames is not needed, the test is stopped, the test time is saved, and the test efficiency is improved.
Further, another method for identifying a moving image may be described with reference to fig. 5, and the method may include:
s501: carrying out image area segmentation on the plurality of image frames related to the time sequence to obtain a target image area;
in a specific embodiment, an image area in an image frame is segmented by an image area segmentation technology and edge detection, and feature extraction of a target image area is performed by matching with the edge detection to identify points with obvious brightness change in an image, wherein the target image area is smaller than the original image area, so that the processing data amount in the image identification process can be reduced, and the image identification efficiency is improved.
S502: and carrying out image recognition based on the target image area to obtain a plurality of actual display characteristic information related to time sequence.
In a specific embodiment, the regional characteristics of the target image are extracted through the convolutional neural network, so that the interference of other images in the picture and the similarity degree in the image moving process can be eliminated, the misjudgment result of the test algorithm is eliminated, manual check is not needed, and the test efficiency is obviously improved. In other embodiments, the target area features are extracted by a YOLO algorithm, the processing speed is high, and the algorithm is simple.
In the embodiment of the application, the display object (signal type) of the target driving signal comprises at least one of a vehicle speed signal, a rotating speed signal, a prompting lamp signal, a popup window prompting signal and an intelligent driving direction information signal, so that the automobile instrument to be tested can receive various types of signals and test scenes corresponding to various types of signals, the scene applicability is strong, and the scene application is wide.
In the embodiment of the application, the signal format of the target driving signal comprises at least one of CAN, LIN and Eth, so that the format of the target driving signal is various, and the adaptability of the automobile instrument is improved.
The embodiment of the application has the following beneficial effects: the target test case comprises a plurality of target driving signals related to time sequence, the target driving signals sequentially drive the automobile instrument to be tested, and the automobile instrument to be tested can dynamically display image information; secondly, carrying out image recognition on the collected dynamic display image information to obtain actual display characteristic information associated with time sequence, thereby realizing the recognition of the dynamic image of the automobile instrument; therefore, the actual display characteristic information related to the time sequence is automatically compared with the preset display characteristic information related to the time sequence, whether the current test item passes or not is judged, the cost of manual testing is replaced, the development period is shortened, and the testing efficiency is improved.
The embodiment of the application further provides an automatic testing device for automobile instruments, and the device can comprise:
the acquisition module is used for acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
the driving module is used for sequentially driving the automobile instrument to be tested based on the target driving signals so as to enable the automobile instrument to be tested to display image information corresponding to the target driving signals;
the acquisition module is used for carrying out image acquisition on the display image information respectively corresponding to the target driving signals to obtain acquired image information; the acquired image information comprises a plurality of dynamic image frames;
the identification module is used for carrying out image identification on the basis of the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the target driving signals;
and the judging module is used for determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information.
Further, the driving module includes:
the signal determining module is used for determining a current driving signal corresponding to each driving period based on the time sequence relation of the target driving signals;
and the display module is used for driving the to-be-tested automobile instrument based on the current driving signal so as to enable the to-be-tested automobile instrument to display the display image information corresponding to the current driving signal.
Further, the judging module comprises:
the preset information determining module is used for determining preset display characteristic information corresponding to a plurality of preset periods based on the preset display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
the actual information determining module is used for determining actual display characteristic information corresponding to a plurality of driving cycles based on the actual display characteristic information associated with the time sequences respectively corresponding to the target driving signals;
the information comparison module is used for comparing the preset display characteristic information corresponding to each preset period with the actual display characteristic information corresponding to each driving period to obtain an information comparison result; the time sequence information of each preset period in the plurality of preset periods is consistent with the time sequence information of each driving period in the plurality of driving periods;
and the result determining module is used for determining that the automobile instrument to be tested passes the test under the condition that the information comparison result indicates that the preset display characteristic information corresponding to the plurality of preset periods is consistent with the actual display characteristic information corresponding to the corresponding plurality of driving periods.
Further, the identification module comprises:
the duplication removing module is used for carrying out video frame duplication removal on the acquired image information to obtain a plurality of image frames related to the time sequence;
and the first identification module is used for carrying out image identification on the plurality of image frames related to the time sequence to obtain a plurality of actual display characteristic information related to the time sequence.
Further, the first identification module comprises:
the segmentation module is used for carrying out image area segmentation on the plurality of image frames related to the time sequence to obtain a target image area;
and the second identification module is used for carrying out image identification on the basis of the target image area to obtain a plurality of actual display characteristic information related to the time sequence.
Further, the signal type of the target driving signal comprises at least one of a vehicle speed signal, a rotating speed signal, a prompting lamp signal, a popup window prompting signal and an intelligent driving direction information signal.
Further, the signal format of the target driving signal comprises at least one of CAN, LIN, eth.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement any one of the methods described above in this embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device, that is, the electronic device may include a mobile terminal, a computer terminal, a server, or a similar computing device. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like.
Specifically, fig. 6 is a schematic structural diagram of an electronic device for implementing the above-mentioned automobile automation test method according to an embodiment of the present application. As shown in fig. 6, the electronic device 600 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 610 (the processors 610 may include but are not limited to Processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 630 for storing data, and one or more storage media 620 (e.g., one or more mass storage devices) for storing applications 623 or data 622. Memory 630 and storage medium 620 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 620 may include one or more modules, each of which may include a series of instruction operations for the electronic device. Still further, the central processor 610 may be configured to communicate with the storage medium 620 to execute a series of instruction operations in the storage medium 620 on the electronic device 600. The electronic device 600 may also include one or more power supplies 660, one or more wired or wireless network interfaces 650, one or more input-output interfaces 640, and/or one or more operating systems 621, such as a Windows Server TM ,Mac OS X TM ,Unix TM ,Linux TM ,FreeBSD TM And so on.
The Processor 610 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The input/output interface 640 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 600. In one example, i/o Interface 640 includes a Network adapter (NIC) that may be coupled to other Network devices via a base station to communicate with the internet. In one example, the input/output interface 640 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The operating system 621 may include system programs, such as a framework layer, a core library layer, a driver layer, etc., for handling various basic system services and performing hardware-related tasks, for implementing various basic services and handling hardware-based tasks.
It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 600 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for automatically testing an automobile instrument according to any one of the above embodiments.
Optionally, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform any of the methods described above in the embodiments.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (10)

1. An automatic test method for an automobile instrument is characterized by comprising the following steps:
acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
sequentially driving the to-be-tested automobile instrument based on the plurality of target driving signals so as to enable the to-be-tested automobile instrument to display image information respectively corresponding to the plurality of target driving signals;
acquiring images of the display image information corresponding to the plurality of target driving signals respectively to obtain acquired image information; the acquisition image information comprises a plurality of dynamic image frames;
performing image recognition based on the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals;
and determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information.
2. The automated automobile instrument testing method according to claim 1, wherein the sequentially driving the automobile instrument to be tested based on the plurality of target driving signals comprises:
determining a current driving signal corresponding to each driving period based on the time sequence relation of the target driving signals;
and driving the to-be-tested automobile instrument based on the current driving signal so as to enable the to-be-tested automobile instrument to display image information corresponding to the current driving signal.
3. The method for automatically testing the automobile instrument according to claim 1, wherein the determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information comprises:
determining preset display characteristic information corresponding to a plurality of preset periods based on the preset display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
determining actual display characteristic information corresponding to a plurality of driving periods based on the actual display characteristic information associated with the time sequence corresponding to the plurality of target driving signals respectively;
comparing the preset display characteristic information corresponding to each preset period with the actual display characteristic information corresponding to each driving period to obtain an information comparison result; the time sequence information of each preset period in the plurality of preset periods is consistent with the time sequence information of each driving period in the plurality of driving periods;
and determining that the automobile instrument to be tested passes the test under the condition that the information comparison result indicates that the preset display characteristic information corresponding to the plurality of preset periods is consistent with the actual display characteristic information corresponding to the corresponding plurality of driving periods.
4. The method for automatically testing the automobile instrument according to claim 1, wherein the performing image recognition based on the collected image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the plurality of target driving signals comprises:
carrying out video frame duplication elimination on the acquired image information to obtain a plurality of image frames related in time sequence;
and carrying out image recognition on the plurality of image frames related to the time sequence to obtain a plurality of actual display characteristic information related to the time sequence.
5. The method of claim 4, wherein the image recognition of the plurality of image frames associated with the time sequence to obtain actual display characteristic information corresponding to the plurality of target driving signals respectively comprises:
performing image area segmentation on the plurality of image frames related to the time sequence to obtain a target image area;
and carrying out image recognition based on the target image area to obtain a plurality of actual display characteristic information related to time sequence.
6. The automated automotive instrument testing method of claim 1, wherein the signal type of the target driving signal comprises at least one of a vehicle speed signal, a rotating speed signal, a warning light signal, a pop-up window warning signal and an intelligent driving direction information signal.
7. The automated automotive instrument testing method of claim 1, wherein the signal format of the target driving signal comprises at least one of CAN, ln, eth.
8. An automatic testing arrangement of motormeter, its characterized in that, the device includes:
the acquisition module is used for acquiring a target test case; the target test case comprises a plurality of target driving signals related to time sequences and preset display characteristic information related to the time sequences respectively corresponding to the target driving signals;
the driving module is used for sequentially driving the automobile instrument to be tested based on the target driving signals so as to enable the automobile instrument to be tested to display image information corresponding to the target driving signals;
the acquisition module is used for carrying out image acquisition on the display image information respectively corresponding to the target driving signals to obtain acquired image information; the acquisition image information comprises a plurality of dynamic image frames;
the identification module is used for carrying out image identification on the basis of the acquired image information to obtain actual display characteristic information associated with time sequences respectively corresponding to the target driving signals;
and the judging module is used for determining a test result of the automobile instrument to be tested based on the preset display characteristic information and the actual display characteristic information.
9. An electronic device, comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the motormeter automation test method according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is loaded and executed by a processor to implement a method of automated testing of motormeters according to any one of claims 1 to 7.
CN202211017936.6A 2022-08-24 2022-08-24 Automatic testing method and device for automobile instrument Pending CN115470109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211017936.6A CN115470109A (en) 2022-08-24 2022-08-24 Automatic testing method and device for automobile instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211017936.6A CN115470109A (en) 2022-08-24 2022-08-24 Automatic testing method and device for automobile instrument

Publications (1)

Publication Number Publication Date
CN115470109A true CN115470109A (en) 2022-12-13

Family

ID=84366222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211017936.6A Pending CN115470109A (en) 2022-08-24 2022-08-24 Automatic testing method and device for automobile instrument

Country Status (1)

Country Link
CN (1) CN115470109A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115962961A (en) * 2023-03-14 2023-04-14 苏州清研精准汽车科技有限公司 System and method for testing ADAS signal display function
CN117517826A (en) * 2023-11-07 2024-02-06 镁佳(北京)科技有限公司 Automobile instrument testing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115962961A (en) * 2023-03-14 2023-04-14 苏州清研精准汽车科技有限公司 System and method for testing ADAS signal display function
CN117517826A (en) * 2023-11-07 2024-02-06 镁佳(北京)科技有限公司 Automobile instrument testing system

Similar Documents

Publication Publication Date Title
CN108038474B (en) Face detection method, convolutional neural network parameter training method, device and medium
CN115470109A (en) Automatic testing method and device for automobile instrument
CN108764352B (en) Method and device for detecting repeated page content
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN111598913B (en) Image segmentation method and system based on robot vision
CN111222509A (en) Target detection method and device and electronic equipment
CN111124863A (en) Intelligent equipment performance testing method and device and intelligent equipment
CN112533060B (en) Video processing method and device
CN115269359A (en) Terminal interface testing method and device
CN113723467A (en) Sample collection method, device and equipment for defect detection
CN113138916A (en) Automatic testing method and system for picture structuring algorithm based on labeled sample
CN113743434A (en) Training method of target detection network, image augmentation method and device
CN114550129B (en) Machine learning model processing method and system based on data set
CN110728229A (en) Image processing method, device, equipment and storage medium
CN113034449B (en) Target detection model training method and device and communication equipment
CN115546219A (en) Detection board type generation method, board card defect detection method, device and product
CN112784817B (en) Method, device and equipment for detecting lane where vehicle is located and storage medium
CN115311237A (en) Image detection method and device and electronic equipment
CN111950644B (en) Training sample selection method and device for model and computer equipment
CN111400534B (en) Cover determination method and device for image data and computer storage medium
US20230092026A1 (en) Processing device, processing method, and non-transitory storage medium
CN110716778B (en) Application compatibility testing method, device and system
US20200184216A1 (en) Machine continuous learning method of neural network object classifier and related monitoring camera apparatus
CN113963186A (en) Training method of target detection model, target detection method and related device
CN112989924A (en) Target detection method, target detection device and terminal equipment

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