Flicker detection method, device and equipment for automobile instrument indicator lamp and medium
Through the signal sending script and the indicator light flashing inference model, the flashing frequency of the automobile instrument indicator light is automatically detected, which solves the problems of low efficiency, poor versatility and high cost in the existing technology, and achieves efficient and accurate flashing frequency detection, which is suitable for Various types of instruments.
Patent Information
- Application Number
- CN202410732221.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-27
AI Technical Summary
The existing automobile instrument indicator light flashing frequency detection method has low efficiency, poor versatility and high cost. It requires complex hardware equipment and high-precision sensors, and requires resetting and training for different types of instruments.
Send the indicator light flashing signal to the car instrument through the signal sending script. Combined with the indicator light flashing inference model, record the video stream and timestamp information, count the actual number and frequency of flashes, generate a detection report, adapt to various types of instruments, without the need for complex hardware and high-end Precision sensor.
It improves detection efficiency and accuracy, reduces costs, has good versatility, simplifies the detection process, is suitable for different types of automotive instruments, and simplifies fault analysis.
Smart Images

Figure CN118706403A
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile testing technology, and in particular to a method, device, equipment and medium for detecting the flickering of an automobile instrument indicator light. Background Art
[0002] Automobile instrument is an important device for drivers to obtain vehicle operation information. Whether the flashing frequency of the indicator light of the automobile instrument is normal will directly affect driving safety. Therefore, it is very necessary to detect the flashing frequency of the indicator light of the automobile instrument. The traditional detection method is mainly through manual observation and manual counting, which is not only inefficient but also prone to errors.
[0003] With the development of automated testing technology, some computer-based automated testing systems have emerged. They can create instrument indicator flashing scenes by sending instrument signals, and automatically detect the flashing frequency through image processing and pattern recognition technology. However, these automated testing systems usually require complex hardware equipment and high-precision sensors, such as frequency collectors, which are expensive. In addition, they use image processing to perform single image comparisons. For different models of automotive instruments, parameter settings and training need to be re-performed, which has poor versatility and limits the application and promotion of automated testing systems. Summary of the invention
[0004] The present application provides a method, device, equipment and medium for detecting the flickering of an automobile instrument indicator light, so as to solve the above-mentioned technical problems of low efficiency, poor versatility and high cost in detecting the flickering frequency of the indicator light.
[0005] In one embodiment of the present application, the present application provides a method for detecting the flickering of an indicator light of an automobile instrument, comprising: obtaining a signal sending script and an indicator light flickering signal of the automobile instrument, wherein the indicator light flickering signal includes a theoretical flickering frequency; sending the indicator light flickering signal to the automobile instrument according to the signal sending script to control the target indicator light of the automobile instrument to flicker, recording the instrument display video stream of the automobile instrument, and sending it to a test terminal; receiving the instrument display video stream and timestamp start and end information, and inputting multiple frames of to-be-detected images corresponding to the instrument display video stream into an indicator light flickering inference model for target recognition, obtaining multiple detection label-time information, and counting the number of all detection label-time information within the range of the timestamp start and end information to obtain the actual number of flickers; determining the actual flickering frequency according to the actual number of flickers and the timestamp start and end information, and generating a flicker detection report according to the comparison result of the instrument display video stream, the actual flickering frequency and the theoretical flickering frequency; wherein the indicator light flickering inference model is obtained by training a historical indicator light picture set, and the timestamp start and end information is used to characterize the start and end time of sending the indicator light flickering signal.
[0006] In one embodiment of the present application, the indicator light flashing signal is sent to the automobile instrument according to the signal sending script, including: running the signal sending script, and calling the signal bus module interface to send the indicator light flashing signal to the automobile instrument; monitoring the first frame sending timestamp and the last frame sending timestamp of the indicator light flashing signal through the signal bus module interface, and returning to the test terminal to obtain the timestamp start and end information corresponding to the indicator light flashing signal.
[0007] In one embodiment of the present application, the actual flicker frequency is determined based on the actual number of flickers and the start and end information of the timestamp, including: taking the difference between the timestamp sent by the last frame and the timestamp sent by the first frame as the inspection period; taking the quotient of the actual number of flickers and the inspection period as the actual flicker frequency.
[0008] In one embodiment of the present application, multiple frames of images to be inspected corresponding to the instrument display video stream are input into the indicator light flashing inference model for target recognition, and multiple detection label-time information is obtained, including: image sampling is performed on the instrument display video stream according to a preset sampling interval to obtain multiple frames of images to be inspected and the current timestamp of each of the images to be inspected; each of the images to be inspected is respectively input into the indicator light flashing inference model for target indicator light recognition, and multiple inference indicator light labels and multiple inference confidences are obtained; if an inference confidence is greater than or equal to a preset confidence threshold, the inference indicator light label corresponding to the inference confidence is stored as a detection indicator light label, and the current timestamp corresponding to the inference confidence is stored as a detection timestamp; wherein the detection label-time information includes the detection indicator light label and the detection timestamp.
[0009] In one embodiment of the present application, the number of all detection tag-time information within the start and end information range of the timestamp is counted to obtain the actual number of flashes, including: taking all detection timestamps within the start and end information range of the timestamp as the target timestamp; counting the number of all detection indicator light tags in the target timestamp to obtain the actual number of flashes.
[0010] In one embodiment of the present application, a flicker detection report is generated based on a comparison result of the instrument display video stream, the actual flicker frequency, and the theoretical flicker frequency, including: if the actual flicker frequency is consistent with the theoretical flicker frequency, the flicker detection result is determined to be normal, and a flicker detection report is generated based on the flicker detection result; if there is a difference between the actual flicker frequency and the theoretical flicker frequency, the flicker detection result is determined to be abnormal; if the flicker detection result is abnormal, the log information of the automobile instrument is obtained, and a flicker detection report is generated based on the flicker detection result, the log information, and the instrument display video stream.
[0011] In one embodiment of the present application, recording the instrument display video stream of the automobile instrument includes: performing video capture on the automobile instrument through an image capture device to obtain the instrument display video stream; or performing video stream conversion on the display data of the automobile instrument to obtain the instrument display video stream.
[0012] In one embodiment of the present application, the present application provides a flicker detection device for an automobile instrument indicator light, comprising: an acquisition module, used to acquire a signal sending script and an indicator light flicker signal of an automobile instrument, wherein the indicator light flicker signal includes a theoretical flicker frequency; a signal sending module, used to send the indicator light flicker signal to the automobile instrument according to the signal sending script, so as to control the target indicator light of the automobile instrument to flicker, record the instrument display video stream of the automobile instrument, and send it to a test terminal; a model detection module, used to receive the instrument display video stream and timestamp start and end information, and input multiple frames of to-be-detected images corresponding to the instrument display video stream into an indicator light flicker inference model for target recognition, obtain multiple detection label-time information, and count the number of all detection label-time information within the range of the timestamp start and end information to obtain the actual number of flickers; a flicker detection module, used to determine the actual flicker frequency according to the actual number of flickers and the timestamp start and end information, and generate a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency; wherein the indicator light flicker inference model is obtained by training a historical indicator light picture set, and the timestamp start and end information is used to characterize the start and end time of sending the indicator light flicker signal.
[0013] In one embodiment of the present application, the present application provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the flashing detection method of the automobile instrument indicator light as described in any of the above embodiments.
[0014] In one embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the method for detecting the flashing of an automobile instrument indicator light as described in any one of the above embodiments.
[0015] Beneficial effects of the embodiments of the present application: The present application provides a method, device, equipment and medium for detecting the flickering of an automobile instrument indicator light. The embodiments of the present application send an indicator light flickering signal to the automobile instrument through a signal sending script, and determine the actual number of flickers in combination with the indicator light flickering inference model, thereby improving the detection efficiency and eliminating the need for complex hardware equipment and high-precision sensors, thereby reducing the detection cost; the signal sending script can adapt to various models of automobile instruments, without the need for re-parameter setting and training, and has good versatility, simplifies the detection process, and improves production efficiency; the actual flickering frequency is obtained through timestamp start and end information and the actual number of flickers, and a flicker detection report is generated by comparing the actual flickering frequency with the theoretical flickering frequency, thereby facilitating fault analysis.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0019] Figure 2 A schematic diagram of a process for detecting the flashing of an automobile instrument indicator light according to an embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram of a process of reasoning a recording model based on an indicator light flashing reasoning model according to an embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram of a process for detecting indicator light flashing according to an embodiment of the present application is shown;
[0022] Figure 5 A schematic diagram of an implementation process of detecting the flashing frequency of an indicator light according to an embodiment of the present application is shown;
[0023] Figure 6 A block diagram of a flashing detection device for an automobile instrument indicator light according to an embodiment of the present application is shown;
[0024] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0028] See also Figure 1 , Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiment of the present application can be applied is shown. Figure 1 As shown, the system architecture may include an automobile meter 101 and a test terminal 102. The test terminal 102 may be at least one computer device selected from a desktop graphics processing unit (GPU) computer, a GPU computing cluster, a neural network computer, etc. Relevant technicians may use the test terminal 102 to detect the flashing of the indicator light of the automobile meter 101.
[0029] Exemplarily, the test terminal 102 obtains a signal sending script and an indicator light flashing signal of the automobile instrument 101, where the indicator light flashing signal includes a theoretical flashing frequency; sends the indicator light flashing signal to the automobile instrument 101 according to the signal sending script to control the target indicator light of the automobile instrument 101 to flash, records the instrument display video stream of the automobile instrument, and sends it to the test terminal; receives the instrument display video stream and timestamp start and end information, and inputs multiple frames of to-be-tested images corresponding to the instrument display video stream into the indicator light flashing inference model for target recognition, obtains multiple detection label-time information, and counts the number of all detection label-time information within the timestamp start and end information range to obtain the actual number of flashes; determines the actual flashing frequency according to the actual number of flashes and the timestamp start and end information, and generates a flashing detection report according to the comparison results of the instrument display video stream, the actual flashing frequency and the theoretical flashing frequency; wherein the indicator light flashing inference model is obtained by training a historical indicator light picture set, and the timestamp start and end information is used to characterize the start and end time of sending the indicator light flashing signal.
[0030] In the related art, the flashing frequency of indicator lights is detected by manual observation and manual counting, which is inefficient and prone to errors. The detection method based on computer-based automated testing system requires complex hardware equipment and high-precision sensors, which is costly and requires re-parameter setting and training for different models of automotive instruments, which has poor versatility.
[0031] In order to solve the above technical problems, the present application provides a method, device, equipment and medium for detecting the flickering of an automobile instrument indicator light. The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0032] See also Figure 2 , Figure 2 FIG. 1 is a flow chart showing a method for detecting the flashing of an automobile instrument indicator light according to an embodiment of the present application. Figure 2 As shown, in an exemplary embodiment, the method for detecting the flashing of the automobile instrument indicator light includes at least steps S210 to S240, which are described in detail as follows:
[0033] Step S210, obtaining the signal sending script and indicator light flashing signal of the vehicle instrument.
[0034] The indicator light flashing signal includes a theoretical flashing frequency.
[0035] In one embodiment of the present application, the signal sending script is written in Python.
[0036] In one embodiment of the present application, an instrument indicator light signal list (sigList) is traversed, and the instrument indicator light signal includes a controller area network (CAN) signal and a FlexRay signal.
[0037] In one embodiment of the present application, the target signal to be tested this time in the instrument indicator light signal list is used as the indicator light flashing signal.
[0038] In one embodiment of the present application, a plurality of indicator lights that need to flash are included on the vehicle instrument panel, including a turn indicator light, a hazard warning indicator light, a seat belt unfastened indicator light, a low fuel indicator light, and the like.
[0039] In one embodiment of the present application, when an icon of a flashing indicator light is displayed on a car instrument, an instrument display picture corresponding to the car instrument at this time is collected, and the instrument display picture includes the icon of the flashing indicator light, thereby obtaining a historical indicator light picture set.
[0040] In one embodiment of the present application, the indicator light to be flashed corresponding to the indicator light flashing signal is used as the target indicator light.
[0041] Step S220, sending an indicator light flashing signal to the vehicle instrument according to the signal sending script to control the target indicator light of the vehicle instrument to flash, recording the instrument display video stream of the vehicle instrument, and sending it to the test terminal.
[0042] In one embodiment of the present application, an indicator light flashing signal is sent to a car instrument according to a signal sending script, including: running the signal sending script, and calling a signal bus module interface to send the indicator light flashing signal to the car instrument; monitoring the first frame sending timestamp and the last frame sending timestamp of the indicator light flashing signal through the signal bus module interface, and returning to the test terminal to obtain the timestamp start and end information corresponding to the indicator light flashing signal.
[0043] In one embodiment of the present application, the signal bus module includes a CAN bus to create a flashing scene of a car instrument.
[0044] In one embodiment of the present application, after the indicator light flashing signal starts to be sent, the first frame sending timestamp returned by the signal bus module interface is recorded.
[0045] In one embodiment of the present application, after the indicator light flashing signal ends sending, the last frame sending timestamp returned by the signal bus module interface is recorded.
[0046] In one embodiment of the present application, recording an instrument display video stream of an automobile instrument includes: performing video capture of the automobile instrument through an image capture device to obtain an instrument display video stream; or performing video stream conversion on display data of the automobile instrument to obtain an instrument display video stream.
[0047] In one embodiment of the present application, the image acquisition device includes a vehicle-mounted camera.
[0048] Step S230, receiving the instrument display video stream and timestamp start and end information, and inputting multiple frames of images to be inspected corresponding to the instrument display video stream into the indicator light flashing inference model for target recognition, obtaining multiple detection label-time information, and counting the number of all detection label-time information within the timestamp start and end information range to obtain the actual number of flashes.
[0049] Among them, the indicator light flashing inference model is trained through the historical indicator light image set, and the timestamp start and end information is used to represent the start and end time of sending the indicator light flashing signal.
[0050] In one embodiment of the present application, multiple frames of images to be inspected corresponding to the instrument display video stream are input into the indicator light flashing inference model for target recognition, and multiple detection label-time information is obtained, including: image sampling is performed on the instrument display video stream according to a preset sampling interval to obtain multiple frames of images to be inspected and the current timestamp of each image to be inspected; each image to be inspected is respectively input into the indicator light flashing inference model for target indicator light recognition, and multiple inference indicator light labels and multiple inference confidences are obtained; if an inference confidence is greater than or equal to a preset confidence threshold, the inference indicator light label corresponding to the inference confidence is stored as a detection indicator light label, and the current timestamp corresponding to the inference confidence is stored as a detection timestamp; wherein the detection label-time information includes the detection indicator light label and the detection timestamp.
[0051] In one embodiment of the present application, the number of all detection tag-time information within the start and end information range of the timestamp is counted to obtain the actual number of flashes, including: taking all detection timestamps within the start and end information range of the timestamp as the target timestamp; counting the number of all detection indicator light tags in the target timestamp to obtain the actual number of flashes.
[0052] In one embodiment of the present application, multiple detection timestamps and multiple detection indicator light labels are stored in a label record file (labelRecordFile). The number of times the target indicator light appears within the start and end information range of the timestamp is queried according to labelRecordFile.
[0053] In one embodiment of the present application, a trained indicator light flashing inference model is loaded. The indicator light flashing inference model used is an image recognition model based on deep learning, such as "YOLOv5".
[0054] In one embodiment of the present application, after accessing the indicator light flashing inference model through the open source computer vision library (OpenCV), the instrument display video stream is turned on.
[0055] In one embodiment of the present application, a frame of the image to be inspected in the video stream displayed by the instrument is read at every preset sampling interval.
[0056] In one embodiment of the present application, the preset sampling interval is set based on the display frame rate of the automobile instrument. For example, if the display frame rate is 24fps, the preset sampling interval can be set to 30ms.
[0057] In one embodiment of the present application, the current timestamp corresponding to a frame of the image to be inspected is obtained through time.time().
[0058] In one embodiment of the present application, a target indicator light is identified in a frame of image to be inspected by using an indicator light flashing inference model.
[0059] In one embodiment of the present application, the reasoning confidence is judged. If the reasoning confidence meets the preset conditions, the reasoning indicator light label and the current timestamp are recorded to labelRecordFile; if the reasoning confidence does not meet the conditions, no recording is performed.
[0060] In one embodiment of the present application, the preset condition includes that the inference confidence is greater than or equal to a preset confidence threshold, and the preset confidence threshold includes 0.99.
[0061] In one embodiment of the present application, see Figure 3 , Figure 3 FIG. 1 shows a flow chart of the reasoning process of the record model based on the indicator light flashing reasoning model according to an embodiment of the present application. Figure 3As shown, load the model trainedModel: load the trained indicator light flashing inference model; open the video stream with opencv: open the instrument display video stream through opencv; read a frame every 30ms: read a frame of the image to be inspected in the instrument display video stream every 30ms; record the current timestamp: record the current timestamp corresponding to the frame of the image to be inspected; icon label target indicator light recognition: perform target indicator light recognition on the read frame of the image to be inspected, and obtain the inference indicator light label and inference confidence; confidence: if the inference confidence is greater than or equal to the preset confidence threshold (confidence), then enter the step of recording the icon label and timestamp to labelRecordFile, store the inference indicator light label and current timestamp to labelRecordFile, and if the inference confidence is less than the preset confidence threshold, perform target indicator light recognition on the next frame of the image to be inspected. Among them, the record model inference includes 3 parameters, trainedModel, confidence, and labelRecordFile.
[0062] Step S240, determining the actual flicker frequency according to the actual flicker times and the start and end information of the timestamp, and generating a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency.
[0063] In one embodiment of the present application, the actual flicker frequency is determined based on the actual number of flickers and the start and end information of the timestamp, including: taking the difference between the timestamp sent by the last frame and the timestamp sent by the first frame as the inspection period; taking the quotient of the actual number of flickers and the inspection period as the actual flicker frequency.
[0064] In one embodiment of the present application, the actual flicker frequency=actual flicker times / (last frame sending timestamp-first frame sending timestamp).
[0065] In one embodiment of the present application, a flicker detection report is generated based on the comparison results of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency, including: if the actual flicker frequency and the theoretical flicker frequency are consistent, the flicker detection result is determined to be normal, and a flicker detection report is generated based on the flicker detection result; if there is a difference between the actual flicker frequency and the theoretical flicker frequency, the flicker detection result is determined to be abnormal; if the flicker detection result is abnormal, the log information of the automobile instrument is obtained, and a flicker detection report is generated based on the flicker detection result, the log information and the instrument display video stream.
[0066] In one embodiment of the present application, the calculated actual flickering frequency is compared with the theoretical flickering frequency, such as the target indicator light flickers at a theoretical flickering frequency of 1 Hz. If the actual flickering frequency is consistent with the theoretical flickering frequency, the test is passed and recorded in the flickering test report; if not, the log information of the vehicle instrument and the instrument display video stream during the test are obtained, and the flickering test report is generated on the one hand and provided to the developer for analysis on the other hand.
[0067] In one embodiment of the present application, see Figure 4 , Figure 4 FIG. 2 shows a flow chart of indicator light flashing detection according to an embodiment of the present application. Figure 4 As shown, traverse sigList: traverse the instrument indicator light signal list to obtain the indicator light flashing signal; send the signal according to sendMessage: call the signal bus module interface through the signal sending script to send the indicator light flashing signal to the car instrument; record the first frame sending timestamp returned by the signal sending device: after the signal is sent, record the first frame sending timestamp returned by the signal bus module interface; end sending; record the last frame sending timestamp returned by the signal sending device: after the signal ends sending, record the last frame timestamp returned by the signal bus module interface; query the number of times the indicator light appears within the timestamp range: query the actual number of flashes of the target indicator light within the timestamp start and end information range through labelRecordFile; calculate the frequency calculate_frequency according to the number / timestamp difference: get the actual flashing frequency (calculate_frequency) through the actual number of flashes / (last frame sending timestamp-first frame sending timestamp); the flashing frequency is consistent with the expected: if the actual flashing frequency is consistent with the theoretical flashing frequency, the detection is passed and a flashing detection report is generated. If the actual flashing frequency is inconsistent with the theoretical flashing frequency, the instrument side log recording video is obtained, that is, a flashing detection report is generated through the log information and the instrument display video stream during the detection process, so that the developer can analyze the cause. Among them, the indicator light flashing detection includes 4 parameters, sigList, sendMessage(), labelRecordFile, and calculate_frequency.
[0068] In one embodiment of the present application, see Figure 5 , Figure 5 FIG. 2 is a schematic diagram showing an implementation flow of detecting the flashing frequency of an indicator light according to an embodiment of the present application. Figure 5As shown in the figure, the instrument icon flickering detection process includes collecting the instrument image flickering signal set: taking the instrument image flickering signal set as the instrument indicator light signal list, and determining the indicator light flickering signal to be sent; writing a signal sending script in Python; sending the signal: sending the indicator light flickering signal to the car instrument through the signal sending script, and recording the timestamp start and end information corresponding to the sending indicator light flickering signal; querying the icon label inference timeline data: querying the labelRecordFile according to the timestamp start and end information to obtain the actual number of flickers, and determining the actual flickering frequency according to the actual number of flickers and the timestamp start and end information; checking the icon flickering frequency: comparing the actual flickering frequency with the theoretical flickering frequency, if they are consistent, the detection is passed, if they are inconsistent, the log information is obtained; obtaining the report result: generating a report based on the comparison result, log information and instrument display video. The model training and reasoning process includes collecting instrument indicator light icon picture sets: collecting historical indicator light picture sets; pre-training model: pre-training through historical indicator light picture sets to obtain an initial flicker inference model, model training: training the initial flicker inference model through historical indicator light picture sets and historical indicator light labels to obtain an indicator light flicker inference model, that is, a trained model: camera video stream: obtaining the instrument display video stream, and sampling the instrument display video stream according to a preset sampling interval to obtain multiple frames of images to be inspected and the current timestamp of each image to be inspected; instrument indicator light icon label reasoning: according to the indicator light flicker inference model, target indicator lights are identified for each image to be inspected, and inference indicator light labels that meet preset conditions are obtained, and stored in labelRecordFile; indicator light icon label reasoning timeline data: the current timestamp corresponding to the inference indicator light label that meets the preset conditions is stored in labelRecordFile.
[0069] In one embodiment of the present application, the present application can automatically detect the flashing frequency of the indicator light of the automobile instrument through the signal sending script generated by Python and combined with the image recognition model, which greatly improves the detection efficiency. In addition, due to the use of the image recognition model, the interference of human factors can be reduced and the accuracy of the detection can be improved. Compared with the existing computer-based automated test system, the present application does not require complex hardware equipment and high-precision sensors, only a computer that can run Python is required, which greatly reduces the detection cost. The automated signal sending script based on Python in the present application can adapt to various models of automobile instruments, without re-setting parameters and training, and flexibly controls signal equipment to simulate various different flashing scenes. It has good versatility. For the automobile manufacturing industry, it can greatly simplify the detection process and improve production efficiency. It has broad market demand and good application prospects. When the present application detects a flickering situation, it can automatically calculate the actual flickering frequency and compare it with the theoretical flickering frequency. If it does not meet expectations, a flicker detection report can be generated to facilitate fault analysis by technicians.
[0070] See also Figure 6 , Figure 6 A block diagram of a flash detection device for an automobile instrument indicator light according to an embodiment of the present application is shown. The device can be applied to Figure 1 The implementation environment shown is specifically configured in the test terminal 102. The device may also be applicable to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applicable.
[0071] like Figure 6 As shown, a device 600 for detecting the flicker of an automobile instrument indicator light according to an embodiment of the present application includes: an acquisition module 601 , a signal sending module 602 , a model detection module 603 and a flicker detection module 604 .
[0072] An acquisition module 601 is used to acquire a signal sending script and an indicator light flashing signal of a vehicle instrument, wherein the indicator light flashing signal includes a theoretical flashing frequency;
[0073] The signal sending module 602 is used to send an indicator light flashing signal to the automobile instrument according to the signal sending script to control the target indicator light of the automobile instrument to flash, record the instrument display video stream of the automobile instrument, and send it to the test terminal;
[0074] The model detection module 603 is used to receive the instrument display video stream and the timestamp start and end information, and input the multiple frames of images to be detected corresponding to the instrument display video stream into the indicator light flashing inference model for target recognition, obtain multiple detection label-time information, and count the number of all detection label-time information within the timestamp start and end information range to obtain the actual number of flashes;
[0075] The flicker detection module 604 is used to determine the actual flicker frequency according to the actual flicker number and the start and end information of the timestamp, and generate a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency;
[0076] Among them, the indicator light flashing inference model is trained through the historical indicator light image set, and the timestamp start and end information is used to represent the start and end time of sending the indicator light flashing signal.
[0077] It should be noted that the device for detecting the flashing of an automobile instrument indicator light provided in the above embodiment and the method for detecting the flashing of an automobile instrument indicator light provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the device for detecting the flashing of an automobile instrument indicator light provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0078] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the flashing detection method of the automobile instrument indicator light provided in the above-mentioned embodiments.
[0079] See also Figure 7 , Figure 7 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0080] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702 and the RAM 703 are connected to each other through the bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0081] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0082] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.
[0083] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0084] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0085] The units involved in the embodiments described in the present application can be implemented by software or by hardware, and the units described can also be set in a processor. Among them, the names of these units do not constitute a limitation on the units themselves under certain circumstances. Therefore, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute a method according to the implementation mode of the present application.
[0086] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the flashing detection method of the automobile instrument indicator light provided in the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
[0087] In the above embodiments, unless otherwise specified, by using serial numbers such as "first" and "second" to describe common objects, it only means that they refer to different instances of the same object, rather than indicating that the objects being described must adopt a given order, whether in time, space, sorting or any other way.
[0088] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for detecting the flickering of an automobile instrument indicator light, characterized in that: The method comprises: Obtain a signal sending script and an indicator light flashing signal of a vehicle instrument, wherein the indicator light flashing signal includes a theoretical flashing frequency; Sending the indicator light flashing signal to the automobile instrument according to the signal sending script to control the target indicator light of the automobile instrument to flash, recording the instrument display video stream of the automobile instrument, and sending it to the test terminal; Receive the instrument display video stream and timestamp start and end information, and input multiple frames of to-be-detected images corresponding to the instrument display video stream into the indicator light flicker inference model for target recognition, obtain multiple detection tag-time information, and count the number of all detection tag-time information within the timestamp start and end information to obtain the actual number of flickers; Determine the actual flicker frequency according to the actual number of flickers and the start and end information of the timestamp, and generate a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency; The indicator light flashing inference model is obtained by training a historical indicator light picture set, and the timestamp start and end information is used to represent the start and end time of sending the indicator light flashing signal.
2. The method for detecting the flashing of an automobile instrument indicator light according to claim 1, characterized in that: Sending the indicator light flashing signal to the automobile instrument according to the signal sending script includes: Run the signal sending script, and call the signal bus module interface to send the indicator light flashing signal to the vehicle instrument; The first frame sending timestamp and the last frame sending timestamp of the indicator light flashing signal are monitored through the signal bus module interface and returned to the test terminal to obtain the start and end timestamp information corresponding to the indicator light flashing signal.
3. The method for detecting the flashing of an automobile instrument indicator light according to claim 2, characterized in that: Determining the actual flicker frequency according to the actual number of flickers and the start and end information of the timestamp includes: The difference between the last frame sending timestamp and the first frame sending timestamp is used as the inspection period; The quotient of the actual number of flickering times and the inspection period is taken as the actual flickering frequency.
4. The method for detecting the flashing of an automobile instrument indicator light according to claim 1, characterized in that: Input multiple frames of images to be detected corresponding to the instrument display video stream into the indicator light flashing inference model for target recognition, and obtain multiple detection label-time information, including: Performing image sampling on the video stream displayed by the instrument according to a preset sampling interval to obtain multiple frames of images to be inspected and the current timestamp of each of the images to be inspected; Inputting each of the images to be inspected into the indicator light flashing inference model to identify the target indicator light, and obtaining multiple inference indicator light labels and multiple inference confidences; If an inference confidence is greater than or equal to a preset confidence threshold, the inference indicator light label corresponding to the inference confidence is stored as a detection indicator light label, and the current timestamp corresponding to the inference confidence is stored as a detection timestamp; The detection label-time information includes the detection indicator label and the detection timestamp.
5. The method for detecting the flashing of an automobile instrument indicator light according to claim 4, characterized in that: Counting the number of all detection tag-time information within the time stamp start and end information range to obtain the actual number of flashes, including: Take all detection timestamps within the timestamp start and end information range as target timestamps; The number of all detection indicator light labels in the target timestamp is counted to obtain the actual number of flashes.
6. The method for detecting the flashing of an automobile instrument indicator light according to any one of claims 1 to 5, characterized in that: Generating a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency, including: If the actual flicker frequency is consistent with the theoretical flicker frequency, the flicker detection result is determined to be normal, and a flicker detection report is generated according to the flicker detection result; If there is a difference between the actual flicker frequency and the theoretical flicker frequency, the flicker detection result is determined to be abnormal; If the flicker detection result is abnormal, the log information of the automobile instrument is obtained, and a flicker detection report is generated according to the flicker detection result, the log information and the instrument display video stream.
7. The method for detecting the flashing of an automobile instrument indicator light according to any one of claims 1 to 5, characterized in that: Recording the instrument display video stream of the automobile instrument, including: Capturing the video of the automobile instrument through an image acquisition device to obtain an instrument display video stream; or, The display data of the automobile instrument is converted into a video stream to obtain an instrument display video stream.
8. A flash detection device for an automobile instrument indicator light, characterized in that: The device comprises: An acquisition module, used for acquiring a signal sending script and an indicator light flashing signal of a vehicle instrument, wherein the indicator light flashing signal includes a theoretical flashing frequency; A signal sending module, used for sending the indicator light flashing signal to the automobile instrument according to the signal sending script, so as to control the target indicator light of the automobile instrument to flash, record the instrument display video stream of the automobile instrument, and send it to the test terminal; The model detection module is used to receive the instrument display video stream and the timestamp start and end information, and input the multiple frames of images to be detected corresponding to the instrument display video stream into the indicator light flickering inference model for target recognition, obtain multiple detection label-time information, and count the number of all detection label-time information within the timestamp start and end information to obtain the actual number of flickers; A flicker detection module, used to determine the actual flicker frequency according to the actual number of flickers and the start and end information of the timestamp, and generate a flicker detection report according to the comparison result of the instrument display video stream, the actual flicker frequency and the theoretical flicker frequency; The indicator light flashing inference model is obtained by training a historical indicator light picture set, and the timestamp start and end information is used to represent the start and end time of sending the indicator light flashing signal.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the flashing detection method of the automobile instrument indicator light as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the flashing detection method for an automobile instrument indicator light according to any one of claims 1 to 7.
Citation Information
Cited By
Intelligent cockpit instrument self-checking method and device and electronic equipment
CN119533548A
Intelligent cabin instrument self-checking method and device, and electronic equipment
CN119533548B
Vehicle head-up display test method and device, electronic equipment and readable storage medium
CN119803957A
Safety detection method and device for emergency braking signal lamp of vehicle
CN120610193A
Generation processing method, display method, device and equipment of vehicle indicating lamp
CN120840401A
