CN112147439A - Instrument detection method, device, equipment, storage medium and system - Google Patents

Instrument detection method, device, equipment, storage medium and system Download PDF

Info

Publication number
CN112147439A
CN112147439A CN202010946905.3A CN202010946905A CN112147439A CN 112147439 A CN112147439 A CN 112147439A CN 202010946905 A CN202010946905 A CN 202010946905A CN 112147439 A CN112147439 A CN 112147439A
Authority
CN
China
Prior art keywords
signal
signal lamp
lamp
detected
image
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
CN202010946905.3A
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.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell Technology 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 Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202010946905.3A priority Critical patent/CN112147439A/en
Publication of CN112147439A publication Critical patent/CN112147439A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • G01R31/006Testing of electric installations on transport means on road vehicles, e.g. automobiles or trucks
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/44Testing lamps

Abstract

The embodiment of the invention relates to the technical field of instrument detection, and discloses an instrument detection method, device, equipment, storage medium and system. The method comprises the following steps: after receiving a signal for starting frequency detection, generating and sending a CAN message signal to equipment to be detected, wherein the CAN message signal is used for indicating the on and off of a signal lamp to be detected in an instrument of the equipment to be detected; triggering recording operation on a screen of the instrument based on the camera shooting recording parameters to generate a signal lamp video, wherein the signal lamp video at least comprises a one-time on-off process of the signal lamp to be detected; respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video; and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image. Through the technical scheme, the on-off frequency of the signal lamp in the instrument is more accurately counted.

Description

Instrument detection method, device, equipment, storage medium and system
Technical Field
The embodiment of the invention relates to the technical field of instrument detection, in particular to an instrument detection method, device, equipment, storage medium and system.
Background
For devices with instruments, such as car machines, automobiles, motorcycles, etc., the instrument panel carries the display of various signal lights. Some signal lamps can be periodically turned on and off according to a certain frequency. In order to ensure the normal function of the signal lamp, it is necessary to detect the on-off frequency of the signal lamp.
At present, the method for detecting the on-off frequency of a signal lamp of an instrument is mainly manual statistics, and the general process is as follows: manually clamping the meter to start timing, starting to count the times of the turn-on and turn-off of a group of signal lamps, and stopping timing when the number of times reaches N times to obtain time T. Then, calculating T/N to obtain the time for one-time on-off of the signal lamp, and further approximately obtaining the on-off frequency of the signal lamp.
However, the method for detecting the on-off frequency of the signal lamp by manual statistics has the following problems: firstly, the error is large, and when the design document has strict requirements on the frequency of the signal lamp, the frequency value is difficult to obtain accurately; secondly, the subjective perception of the statistical personnel is seriously depended, and different results are obtained by different people for statistics.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, embodiments of the present invention provide a method, an apparatus, a device, a storage medium, and a system for detecting a meter, so as to achieve more accurate statistics of the on/off frequency of a signal lamp in the meter.
In a first aspect, an embodiment of the present invention provides a meter detection method, including:
after receiving a signal for starting frequency detection, generating and sending a CAN message signal to equipment to be detected; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video; the signal lamp video at least comprises a primary on-off process of the signal lamp to be detected;
respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video;
and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
In a second aspect, an embodiment of the present invention provides a meter detection apparatus, including:
the CAN message signal sending module is used for generating and sending a CAN message signal to the equipment to be detected after receiving the signal for starting frequency detection; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
the signal lamp video generation module is used for triggering the recording operation of the screen of the instrument based on the camera recording parameters to generate a signal lamp video; the signal lamp video at least comprises a primary on-off process of the signal lamp to be detected;
the target image determining module is used for respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video;
and the frequency determining module is used for determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
In a third aspect, an embodiment of the present invention provides a meter detection device, including: a processor and a storage device;
the processor is configured to perform the steps of the method of any embodiment of the present invention by calling a program or instructions stored in the storage device.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a program or instructions for causing a computer to perform the steps of the method described in any of the embodiments of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a meter detection system, where the system includes: the system comprises detection equipment, a camera and message sending equipment;
the message sending equipment is in communication connection with the detection equipment and is used for receiving a message trigger signal sent by the detection equipment, generating a CAN message signal based on the message trigger signal and sending the CAN message signal to the equipment to be detected; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
the camera is in communication connection with the detection equipment and is used for receiving camera shooting recording parameters sent by the detection equipment, starting recording of a screen of the instrument based on the camera shooting recording parameters, generating a signal lamp video and sending the signal lamp video to the detection equipment, wherein the signal lamp video at least comprises a lighting and extinguishing process of the signal lamp to be detected;
the detection equipment is used for generating and sending the message trigger signal to the message sending equipment after receiving a signal for starting frequency detection, and sending the recording trigger signal to the camera; receiving the signal lamp video, and respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video; and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
after receiving a signal for starting frequency detection, sending a CAN message signal to equipment to be detected to control the on and off of a signal lamp to be detected; triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video; respectively determining a lamp-on state and a target image corresponding to the lamp-off state of at least one lamp-on and lamp-off process of the signal lamp to be detected based on the signal lamp video; and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image. The method and the device have the advantages that the frequency of the on/off of the signal lamp to be detected is automatically determined by recording and analyzing the video of the signal lamp to be detected, manual statistics is not needed, the problems of subjective errors and low accuracy caused by manual statistics are solved, and the statistical accuracy of the working frequency of the signal lamp in the instrument is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the embodiments of the invention and, together with the description, serve to explain the principles of the embodiments of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a meter detection method according to a first embodiment of the present invention.
FIG. 2 is a flow chart of a meter detection method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a meter detection device according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a meter inspection apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a meter inspection system according to a sixth embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the embodiments of the present invention can be more clearly understood, further description will be given below of aspects of the embodiments of the present invention. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of embodiments of the invention, but embodiments of the invention may be practiced otherwise than as described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Example one
The meter detection method provided by the embodiment can be applied to the measurement of the operating frequency of a signal lamp in equipment with the meter. The method may be performed by a meter detection apparatus, which may be implemented by software and/or hardware, and may be integrated in a meter detection device with a video analysis function, such as a mobile phone, a tablet computer, a desktop computer, or a server. Referring to fig. 1, the method for detecting a meter in the embodiment specifically includes:
s110, generating and sending a CAN message signal to the equipment to be detected after receiving a signal for starting frequency detection; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in an instrument of the equipment to be detected.
The CAN message signal is a message signal transmitted through a CAN bus, corresponds to a signal lamp and has a set transmission frequency. The equipment to be detected is equipment which needs instrument detection, and for example, the equipment can be a car machine, an automobile or a motorcycle. The signal lamp to be detected is the signal lamp of which the working frequency (namely the on-off frequency) needs to be counted in the instrument.
Specifically, if the detection of the operating frequency of the signal lamp is to be started, the meter detection device may receive a signal related to the start of the frequency detection, for example, a user may trigger a button for starting the detection through an interactive interface or operate a message signal generation related operation. And then, the instrument detection device CAN obtain the CAN message signal corresponding to the signal lamp to be detected and send the CAN message signal to the equipment to be detected according to the set frequency. The device to be detected controls the signal lamp to be detected to work according to the CAN message signal, and if the CAN message signal exists in the bus, the signal lamp is on; when the CAN message signal is not available in the bus, the signal lamp is turned off.
The message sending device for generating and sending message signals can be integrated in the instrument detection device or can be an independent device. For an independent message sending device, after receiving the signal for starting frequency detection, generating and sending a CAN message signal to a device to be detected is as follows: after receiving a signal for starting frequency detection, generating and sending a message trigger signal to message sending equipment; the message trigger signal is used for triggering the message sending equipment to generate a CAN message signal and sending the CAN message signal to the equipment to be detected. Specifically, the meter detection device sends a message trigger signal to an independent message sending device to trigger the message sending device to generate a CAN message signal, and sends the CAN message signal to the device to be detected. Therefore, the message signals can be independently generated and sent by using the existing message sending equipment, the accuracy of the message signals is ensured, and the signal lamp to be detected is ensured to be normally on or off according to the set working frequency.
Illustratively, after receiving the signal for starting the frequency detection, generating the CAN message signal includes: after a signal for starting frequency detection is received, a CAN message signal is generated based on a preset message parameter; or after receiving the signal for starting frequency detection, calling a corresponding message generation script based on the signal lamp type of the signal lamp to be detected, and generating the CAN message signal. The message parameters are hexadecimal data, the message signals of different signal lamp types correspond to different message parameters, and the preset message parameters are the message parameters corresponding to the signal lamp to be detected. The signal lamp type is the type of the signal lamp to be detected, and is used for distinguishing different signal lamps. If the signal is an independent message sending device, the message trigger signal comprises preset message parameters or the signal lamp type of the signal lamp to be detected. Specifically, no matter the meter detection device or the message sending device, the process of generating the CAN message signal is as follows: and generating a CAN message signal according to the preset message parameter sent by the instrument detection device. Or, message generation scripts corresponding to different signal lamp types are preset, after the signal lamp type of the signal lamp to be detected is determined, the message generation script corresponding to the signal lamp type is called, and the CAN message signal is generated through operation of the script. Therefore, the diversity of message signal generation modes can be increased, a user can provide message parameters or signal lamp types according to actual conditions, and the application convenience of the instrument detection method is improved.
And S120, triggering the recording operation on the screen of the instrument based on the shooting recording parameters to generate the signal lamp video.
The video recording parameters refer to parameters required for recording video, such as recording duration, recording resolution, and the like, which may be input by a user or set in advance in a video recording device (e.g., an internal or external camera). The signal lamp video is a video of the normal work of the signal lamp and at least comprises a lighting and extinguishing process of the signal lamp to be detected.
Specifically, the instrument detection device triggers and starts the video recording device according to the shooting recording parameter. For example, the meter detection device generates a recording trigger signal containing a camera recording parameter, and triggers the video recording device to start up through the recording trigger signal. And the video recording device records the video according to the shooting recording parameters in the recording trigger signal, and the obtained video is the signal lamp video. The video recording device is pre-aligned with the screen of the instrument, and the screen of the instrument or even the signal lamp to be detected is placed in the central area of the shooting visual field in order to avoid the deformation of the signal lamp in the video.
The video recording device can be integrated in the instrument detection device, and can also be an independent device, such as a high-frame industrial camera. For an independent camera, the above-mentioned recording operation on the screen of the instrument is triggered based on the camera recording parameter, and the signal lamp video is generated as follows: sending the camera shooting recording parameters to a camera; the camera is used for starting recording of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video. The shooting recording parameters comprise recording duration or recording start-stop conditions. The recording time length is the total time length from the beginning of recording to the end of recording. The recording start-stop condition refers to a condition (or timing) that triggers the start of recording a video and a condition (or timing) that triggers the end of recording a video. For example, the camera is turned on for a certain time as a recording start condition, so that the initialization error of the camera is avoided, and the recording for a certain time length is used as a recording end condition. Specifically, the instrument detection device needs to send the camera shooting recording parameters to the camera, and then the camera completes the recording of the signal lamp video. The camera also needs to return the obtained signal lamp video to the instrument detection device. Therefore, the signal lamp video is obtained by using the independent camera, so that the signal lamp video can more easily meet the video analysis requirement.
And S130, respectively determining the lamp-on state and the target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video.
Specifically, the signal lamp video includes a working process that the signal lamp to be detected is continuously on and off, so that the target images corresponding to the on state and the off state of the lamp in the on and off process each time can be determined through processing such as splitting and information extraction of the signal lamp video. The target image is an image for subsequently determining the on-off frequency of the signal lamp to be detected. And the image sequences of the target images corresponding to different working states of the signal lamp to be detected in the corresponding working states are consistent. For example, the target image in the on state is the first image (or the second image) in the on state, and the target image in the off state matching the on state is the first image (or the second image) in the off state. This allows a more accurate determination of the on-off frequency.
S140, determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
Specifically, the on-off frequency of the signal lamp to be detected is automatically obtained according to one or more target images corresponding to the on-state and the off-state of the lamp in the same on-off process. For example, the target images are used for counting the on-off duration or the on-off times of the signal lamp to be detected, and the on-off frequency of the signal lamp to be detected is determined.
According to the technical scheme of the embodiment, after the signal for starting frequency detection is received, the CAN message signal is sent to the equipment to be detected to control the on and off of the signal lamp to be detected; triggering the recording operation of a screen of the instrument based on the shooting recording parameter triggering signal to generate a signal lamp video; respectively determining a lamp-on state and a target image corresponding to the lamp-off state of at least one lamp-on and lamp-off process of the signal lamp to be detected based on the signal lamp video; and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image. The method and the device have the advantages that the frequency of the on/off of the signal lamp to be detected is automatically determined by recording and analyzing the video of the signal lamp to be detected, manual statistics is not needed, the problems of subjective errors and low accuracy caused by manual statistics are solved, and the statistical accuracy of the working frequency of the signal lamp in the instrument is improved.
Example two
In this embodiment, based on the first embodiment, further optimization is performed on "determining the on-state and the target image corresponding to the off-state of the signal lamp to be detected in at least one on-off process based on the signal lamp video" respectively. On the basis, the frequency of on/off of the signal lamp to be detected can be further optimized based on the image frame information of each target image. On the basis, the frequency of on-off of the signal lamp to be detected can be further optimized based on the image frame information of each target image. On the basis, the method can further increase the steps of splitting the signal lamp video into a plurality of frames of images based on the recording frame rate and recording the image frame information of each image. The same or corresponding terms as those in the above embodiments are not explained in detail herein. Referring to fig. 2, the meter detection method provided in this embodiment includes:
s210, after receiving a signal for starting frequency detection, generating and sending a preset message parameter to message sending equipment; the message trigger signal is used for triggering the message sending equipment to generate a CAN message signal and sending the CAN message signal to the equipment to be detected; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in an instrument of the equipment to be detected.
And S220, sending the camera shooting recording parameters to a camera, wherein the camera is used for starting recording of a screen of the instrument based on the camera shooting recording parameters and generating a signal lamp video.
And S230, determining the position of the signal lamp to be detected in the signal lamp video.
Specifically, in order to reduce the data processing amount and reduce the statistical error, in the embodiment, the position of the signal lamp to be detected in the signal lamp video needs to be determined first, so that the local video or the local image is extracted subsequently.
Exemplary, determining the position of the signal lamp to be detected in the signal lamp video comprises: and determining the position of the signal lamp to be detected in the signal lamp video based on the position of the signal lamp to be detected in the screen and the position of the screen in the signal lamp video. Specifically, the instrument of the device to be detected has hardware parameters thereof, and the position of the signal to be detected in the screen of the instrument can be acquired from a preset configuration list thereof. And the position of the screen of the instrument can be determined according to the signal light video. Therefore, the position of the signal lamp to be detected in the signal lamp video can be determined according to the two positions. Therefore, the position of the signal lamp in the video can be more accurately determined, and the accuracy of subsequent video analysis and frequency statistics is further improved.
S240, based on the recording frame rate, splitting the signal lamp video into a plurality of frame images, and recording image frame information of each image.
Specifically, the on-off frequency of the signal lamp to be detected is determined by means of the signal lamp video, and the signal lamp video needs to be split into a plurality of images, and then the images are analyzed. In this embodiment, the signal lamp video is split into images of a plurality of frames according to a recording frame rate (for example, N frames per second) at which the video recording device records the signal lamp video. For the convenience of subsequent analysis, the related information of each image in the signal lamp video, namely image frame information, needs to be recorded to represent the sequential relationship between the images. For example, from the time sequence of these images in the video, the arrangement number (i.e., frame number) of each image is determined as the image frame information of the corresponding image.
Illustratively, based on the recording frame rate, the process of splitting the signal lamp video into a plurality of frames of images and recording the image frame information of each image is as follows: determining the total frame number of video splitting based on the recording frame rate and the video duration of the signal lamp video; and splitting the signal lamp video into images with the total frame number, and recording the image frame information of each image. Specifically, according to the recording frame rate and the video recording duration (i.e., the video duration) of the signal lamp video recorded by the video recording device, for example, T seconds, the total number of frames for splitting the signal lamp video may be determined to be N × T. Then, the total frame number is defined as the number of video splitting, the signal light video is split, and a plurality of images with the number of images being the total frame number are obtained. And recording the image frame information of each image in the signal lamp video.
And S250, extracting a region image corresponding to the position of the signal lamp to be detected in the signal lamp video aiming at the image of each frame in the signal lamp video, and determining the working state of the signal lamp to be detected in the region image, wherein the working state is a lamp on state or a lamp off state.
Specifically, for a certain frame image, an area image including the position determined in S230 is cut out from the image. And then, carrying out image processing and analysis on the area image to determine that the working state of the signal lamp to be detected in the image is a lamp-on state or a lamp-off state. And executing the process for each image to determine the working state of the indicator lamp to be detected corresponding to each image.
Exemplarily, the determining the working state of the signal lamp to be detected in the area image comprises: extracting image characteristic information of the regional image; determining the working state of the signal lamp to be detected in the regional image based on the state characteristic information respectively corresponding to the on state and the off state of the lamp and the image characteristic information; the state feature information includes feature information of a set color space or binarization feature information. The state feature information refers to image feature information corresponding to different working states of the signal lamp, and may be feature information in a set color space or feature information in a binarized image. The image feature information is information that can characterize some features in an image, obtained based on image pixel values of a region image. A color space is a color pattern such as RGB, Lab, HSV, etc. that characterizes colors from different dimensions. The preset color space refers to a preselected color space, which should be a color space that is more capable of highlighting the difference in the characteristics of the indicator lights that are on and off in the image.
Specifically, with the feature difference in the image of the highlighted on-off signal lamp to be detected as a target, the image pixel value of the image of the region where the signal lamp to be detected is located is analyzed, and the image feature information to be extracted can be determined. Based on the above, the image characteristic information of the image of the signal lamp to be detected in the on and off states is extracted, so that the state characteristic information corresponding to the on state and the off state of the lamp can be determined. And performing feature extraction on the cut region image in the image to obtain image feature information corresponding to the region image of the image. Then, the working state of the signal lamp to be detected in the image can be determined by comparing the image characteristic information with the two state characteristic information. For example, if the image feature information is similar to the state feature information corresponding to the lighting state, it is determined that the working state of the signal lamp to be detected in the image is the lighting state. Therefore, the working state of the signal lamp to be detected in the current image can be determined more quickly through matching of the image characteristic information and the state characteristic information.
For the condition that the status characteristic value is the characteristic information of the set color space, taking the RGB color space as an example, the RGB values of the indicator to be detected in the on and off states need to be configured in advance. For example, in different illumination environments, the RGB values corresponding to on and off of the indicator light to be detected are different, and thus, the RGB pixel value characteristics of the area image of the area where the signal light to be detected is located in different illumination environments and different working states need to be calibrated in advance. In practical application, the illumination environment information corresponding to the current image needs to be acquired at the same time, and then the state characteristic information in the illumination environment and the image characteristic information corresponding to the current image are matched, so that the working state corresponding to the current image is judged. Therefore, the accuracy of judging the working state of the signal lamp can be further improved.
In the case where the state feature value is the binarized feature information, the image feature information of the extracted region image includes: and converting the area image into a gray level image, and binarizing the gray level image to obtain a binarized image. Specifically, if the area image is a color image, it needs to be converted into a grayscale image first. And then carrying out binarization processing on the gray level image. As a result of the binarization processing, a darker color is uniformly set to black (or white) and a lighter color is uniformly set to white (or black), resulting in a binarized image of only black and white. Correspondingly, the determining the working state of the signal lamp to be detected in the area image based on the state characteristic information and the image characteristic information respectively corresponding to the on state and the off state of the lamp comprises: if the signal lamp contour exists in the binary image, determining that the working state of the signal lamp to be detected is a lamp-on state; and if the signal lamp contour does not exist in the binary image, determining that the working state of the signal lamp to be detected is a lamp-off state. Specifically, when the signal lamp to be detected is in a lamp-on state, the state characteristic information is a white contour (or a black contour) of the signal lamp; when the lamp is in the light-off state, the state characteristic information is an image which is nearly completely black (or completely white). Therefore, for the binary image corresponding to the current image, if a signal lamp contour exists in the binary image, the working state of a signal lamp to be detected in the image is determined to be a lamp-on state; otherwise, determining the working state of the signal lamp to be detected in the image as a lamp-off state. Therefore, the judgment rapidness and the judgment accuracy of the working state of the signal lamp can be further improved.
And S260, respectively determining a first image corresponding to the lamp-on state and the lamp-off state as a target image of the corresponding working state based on the working state and the image frame information corresponding to each image.
Specifically, according to the image frame information of each image, namely the time sequence of each image in the video, the first image corresponding to the on state of each light and the first image corresponding to the off state of each light are searched. And taking each first image as a target image corresponding to the corresponding working state.
S270, determining the frame number corresponding to one on-off process of the signal lamp to be detected based on the image frame information of the target image respectively corresponding to the on-state of the lamp and the off-state matched with the on-state of the lamp.
Specifically, the frequency for one on-off process is summarized as: and determining the frame number X of the first image corresponding to the lamp-on state in the lamp-off process and the frame number Y of the first image corresponding to the lamp-off state adjacent to the lamp-on state. Then, the difference (Y-X) between the two frame numbers is calculated to obtain the frame number M corresponding to the on-off process.
S280, determining the duration of one on-off process based on the frame number and the time interval of two adjacent frames.
Specifically, the time interval between two adjacent frames is calculated to be (1000/N) milliseconds according to the recording frame rate (N/s) of the camera, and then the duration of the turn-on and turn-off process is calculated to be M × 1000/N according to the frame number M and the time interval.
And S290, determining the on-off frequency of the signal lamp to be detected based on the time length.
Specifically, if the signal lamp video only includes one on-off process, the working frequency of the signal lamp to be detected can be directly determined according to the duration obtained by the above process. If the signal lamp video comprises a plurality of on-off processes, the working frequency of the signal lamp to be detected can be comprehensively determined according to the time length corresponding to each on-off process.
Exemplarily, the process of determining the on-off frequency of the signal lamp to be detected based on the time length is as follows: and determining the maximum frequency, the minimum frequency and the average frequency of the turn-on and turn-off of the signal lamp to be detected based on the duration of each turn-on and turn-off process. Specifically, the above-mentioned duration and frequency determining method is adopted in each on-off process, so that the working frequency corresponding to each on-off process can be obtained. Then, the statistical information of the operating frequency of the signal lamp to be detected, such as the maximum frequency, the minimum frequency, the average frequency, the frequency histogram or the frequency interval, is obtained from the plurality of operating frequencies. Therefore, a more reliable working frequency of the signal lamp to be detected can be obtained according to various statistical results, and the accuracy of frequency statistics is further improved.
According to the technical scheme of the embodiment, the signal lamp video is divided into a plurality of images based on the recording frame rate, and the image frame information of each image is recorded. The method and the device have the advantages that the video is converted into a plurality of images, the analysis granularity of frequency statistics is reduced, the judgment accuracy of the on-off state of the signal lamp is further improved, and the statistics accuracy of the on-off frequency of the signal lamp is further improved. Determining the position of a signal lamp to be detected in a signal lamp video; and extracting the area image corresponding to the position. The method and the device have the advantages that the cutting of the image where the signal lamp to be detected is located is achieved, the subsequent data processing amount is reduced, the error of image feature extraction is reduced, and the efficiency and the accuracy of frequency statistics of the signal lamp are further improved. Determining the working state of the signal lamp to be detected in each area image as a lamp-on state or a lamp-off state; respectively determining a first image corresponding to a light-on state and a light-off state as a target image of the corresponding working state based on the working state and the image frame information corresponding to each image; determining the frame number corresponding to one on-off process of the signal lamp to be detected based on the image frame information of the target image respectively corresponding to the on-state of the lamp and the off-state matched with the on-state of the lamp; determining the duration of one on-off process based on the frame number and the time interval of two adjacent frames; and determining the on-off frequency of the signal lamp to be detected based on the time length. The method and the device realize the determination of the working state and frequency statistics of the signal lamp through image analysis, and improve the rapidness and accuracy of the frequency statistics of the signal lamp.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. Unless explicitly stated herein, the steps are not limited to be performed in a strict order, and may be performed in other orders, for example, in some embodiments, the order of S230 and S240 in fig. 2 may be reversed.
EXAMPLE III
The present embodiment provides a meter detection device, referring to fig. 3, the device specifically includes:
the CAN message signal sending module 310 is configured to generate and send a CAN message signal to the device to be detected after receiving the signal for starting the frequency detection; the CAN message signal is used for indicating the on-off of a signal lamp to be detected in an instrument of the equipment to be detected;
the signal lamp video generation module 320 is used for triggering the recording operation on the screen of the instrument based on the camera recording parameters to generate a signal lamp video; the signal lamp video at least comprises a lighting and extinguishing process of the signal lamp to be detected;
the target image determining module 330 is configured to determine, based on the signal lamp video, a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on/off process, respectively;
and the frequency determining module 340 is configured to determine, based on the image frame information of each target image, a frequency of turning on and off a signal lamp to be detected.
Optionally, the CAN message signal sending module 310 is specifically configured to:
after receiving a signal for starting frequency detection, generating and sending a message trigger signal to message sending equipment; the message trigger signal is used for triggering the message sending equipment to generate a CAN message signal and sending the CAN message signal to the equipment to be detected.
Optionally, the CAN message signal sending module 310 is specifically configured to:
after a signal for starting frequency detection is received, a CAN message signal is generated based on a preset message parameter; or the like, or, alternatively,
after a signal for starting frequency detection is received, a corresponding message generation script is called based on the signal lamp type of the signal lamp to be detected, and a CAN message signal is generated.
Optionally, the signal light video generating module 320 is specifically configured to:
sending camera shooting recording parameters to a camera, wherein the camera shooting recording parameters comprise recording duration or recording starting-ending conditions; the camera is used for starting recording of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video.
Optionally, the target image determination module 330 includes:
the position determining submodule is used for determining the position of the signal lamp to be detected in the signal lamp video;
the working state determining submodule is used for extracting a region image corresponding to the position of each frame of image in the signal lamp video, and determining the working state of a signal lamp to be detected in the region image, wherein the working state is a lamp-on state or a lamp-off state;
and the target image determining submodule is used for respectively determining a first image corresponding to the light-on state and the light-off state as a target image of the corresponding working state based on the working state and the image frame information corresponding to each image.
Further, the location determination submodule is specifically configured to:
and determining the position of the signal lamp to be detected in the signal lamp video based on the position of the signal lamp to be detected in the screen and the position of the screen in the signal lamp video.
Optionally, the target image determining module 330 further comprises a video splitting sub-module, configured to:
after triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video, splitting the signal lamp video into a plurality of frames of images based on the recording frame rate, and recording image frame information of each image; wherein the image frame information is used for representing the sequence relation among the images.
Further, the video splitting sub-module is specifically configured to:
determining the total frame number of video splitting based on the recording frame rate and the video duration of the signal lamp video;
and splitting the signal lamp video into images with the total frame number, and recording the image frame information of each image.
Optionally, the working state determining submodule is specifically configured to:
extracting image characteristic information of the regional image;
determining the working state of the signal lamp to be detected in the regional image based on the state characteristic information and the image characteristic information respectively corresponding to the on state and the off state of the lamp; the state feature information includes feature information of a set color space or binarization feature information.
Further, the working state determining submodule is further specifically configured to:
converting the area image into a gray level image, and binarizing the gray level image to obtain a binarized image;
if the signal lamp contour exists in the binary image, determining that the working state of the signal lamp to be detected is a lamp-on state;
and if the signal lamp contour does not exist in the binary image, determining that the working state of the signal lamp to be detected is a lamp-off state.
Optionally, the frequency determining module 340 is specifically configured to:
determining the frame number corresponding to one on-off process of the signal lamp to be detected based on the image frame information of the target image respectively corresponding to the on-state of the lamp and the off-state of the lamp matched with the on-state of the lamp;
determining the duration of one on-off process based on the frame number and the time interval of two adjacent frames;
and determining the on-off frequency of the signal lamp to be detected based on the time length.
Further, the frequency determination module 340 is further specifically configured to:
and if the signal lamp video comprises a plurality of times of on-off processes, determining the maximum frequency, the minimum frequency and the average frequency of the on-off of the signal lamp to be detected based on the duration of each on-off process.
By the instrument detection device, the on-off frequency of the signal lamp to be detected is automatically counted by recording and analyzing the signal lamp video of the signal lamp to be detected, manual counting is not needed, the problems of subjective errors and low accuracy caused by manual counting are solved, and the counting accuracy of the working frequency of the signal lamp in the instrument is improved.
The instrument detection device provided by the embodiment of the invention can execute the instrument detection method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the meter detection apparatus, each module and each sub-module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, the specific names of the functional modules/sub-modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Referring to fig. 4, the present embodiment provides a meter detection apparatus 400 including: a processor 420 and a storage device 410; the processor 420 is used for executing the steps of the meter detection method provided by the embodiment of the invention by calling the program or the instructions stored in the storage device 410:
after receiving a signal for starting frequency detection, generating and sending a CAN message signal to equipment to be detected; the CAN message signal is used for indicating the on-off of a signal lamp to be detected in an instrument of the equipment to be detected;
triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video; the signal lamp video at least comprises a lighting and extinguishing process of the signal lamp to be detected;
respectively determining a lamp-on state and a target image corresponding to the lamp-off state of at least one lamp-on and lamp-off process of a signal lamp to be detected based on a signal lamp video;
and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
Of course, those skilled in the art will appreciate that the processor 420 may also implement the technical solution of the meter detection method provided in any embodiment of the present invention.
The meter detection device 400 shown in fig. 4 is only an example and should not impose any limitation on the functionality and scope of use of embodiments of the present invention. As shown in fig. 4, the meter detection device 400 is in the form of a general purpose computing device. The components of the meter detection device 400 may include, but are not limited to: one or more processors 420, a memory device 410, and a bus 450 that connects the various system components (including the memory device 410 and the processors 420).
Bus 450 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The meter detection device 400 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the meter detection device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 410 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)411 and/or cache memory 412. The meter detection device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 413 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 450 by one or more data media interfaces. Storage 410 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 414 having a set (at least one) of program modules 415, which may be stored, for example, in storage 410, such program modules 415 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment. The program modules 415 generally perform the functions and/or methods of any of the embodiments described herein.
The meter detection device 400 may also communicate with one or more external devices 460 (e.g., keyboard, pointing device, display 470, etc.), with one or more devices that enable a user to interact with the meter detection device 400, and/or with any devices (e.g., network card, modem, etc.) that enable the meter detection device 400 to communicate with one or more other computing devices. Such communication may be through input/output interfaces (I/O interfaces) 430. Also, the meter detection device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 440. As shown in FIG. 4, the network adapter 440 communicates with the other modules of the meter detection device 400 via a bus 450. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the meter detection device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
EXAMPLE five
The present embodiment provides a storage medium containing computer-executable instructions, the computer-readable storage medium storing a program or instructions for causing a computer to perform the steps of the meter detection method provided by the embodiment of the present invention:
after receiving a signal for starting frequency detection, generating and sending a CAN message signal to equipment to be detected; the CAN message signal is used for indicating the on-off of a signal lamp to be detected in an instrument of the equipment to be detected;
triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video; the signal lamp video at least comprises a lighting and extinguishing process of the signal lamp to be detected;
respectively determining a lamp-on state and a target image corresponding to the lamp-off state of at least one lamp-on and lamp-off process of a signal lamp to be detected based on a signal lamp video;
and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
Of course, the embodiments of the present invention provide a computer-readable storage medium, the stored programs or instructions of which are not limited to the above method steps, and can also execute the relevant steps in the meter detection method provided in any embodiments of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
EXAMPLE six
Referring to fig. 5, the present embodiment provides a meter detection system 500, which includes: the device comprises a detection device 520, a camera 530 and a message sending device 540;
the message sending device 540 is in communication connection with the detection device 520, and is configured to receive a message trigger signal sent by the detection device 520, generate a CAN message signal based on the message trigger signal, and send the CAN message signal to the device to be detected 510, so that the device to be detected 510 controls the on/off of the signal lamp to be detected 512 in the instrument 511 therein based on the CAN message signal;
the camera 530 is in communication connection with the detection device 520 and is used for receiving the camera recording parameters sent by the detection device 520, starting recording the screen of the recording instrument 511 based on the camera recording parameters, generating a signal lamp video and sending the signal lamp video to the detection device 520; wherein, the signal lamp video at least comprises a lighting and extinguishing process of the signal lamp 512 to be detected;
the detection device 520 is configured to generate and send a message trigger signal to the message sending device 540 after receiving the signal for starting the frequency detection, and send a camera recording parameter to the camera 530; receiving the signal lamp video, and respectively determining a lamp-on state and a target image corresponding to the lamp-off state of at least one lamp-on and lamp-off process of the signal lamp 512 to be detected based on the signal lamp video; and the frequency of the on-off of the signal lamp 512 to be detected is determined based on the image frame information of each target image.
The device to be detected 510 may be any device having an instrument and a signal lamp to be detected, such as a car machine, a motorcycle, a whole vehicle, etc., and the controller of the device to be detected communicates with the instrument 511 and the signal lamp to be detected 512 through a CAN bus. The detection device 520 is a device with video/image processing function, and may be a mobile phone, a tablet computer, a laptop computer, a desktop computer, a server, or a network device, for example. The camera 530 may be a general camera or a high frame industrial camera. The camera 530 needs to be erected around the meter 511, and the meter 511 is included in the shooting visual field of the camera 530, even the meter 511 is included in the central area of the shooting visual field.
The workflow of the meter detection system 500 is as follows: after receiving the signal for starting the frequency detection, the detection device 520 generates a message trigger signal and sends the message trigger signal to the message sending device 540. The message sending device 540 generates a CAN message signal based on the message trigger signal, and periodically sends the CAN message signal to the device to be detected 510. The device to be detected 510 receives the CAN message signal and controls the on/off of the signal lamp to be detected 512 in the meter 511 according to whether the CAN message signal exists in the CAN bus. Thus, the signal lamp 512 to be detected is in the periodic on/off operation. The detection device 520 obtains the camera recording parameters and sends them to the camera 530. Based on the camera recording parameters, the camera 530 starts recording the screen of the meter 511 where the signal lamp 512 to be detected is located. After the recording of the camera 530 is finished, a signal lamp video is obtained and sent to the detection device 520. The detection device 520 analyzes the signal light video, determines the light-on state and the target image corresponding to the light-off state of the signal light 512 to be detected in at least one light-off process, and determines the frequency of the light-on/off of the signal light 512 to be detected based on the image frame information of each target image.
Optionally, the message sending device 540 is specifically configured to:
generating a CAN message signal based on a preset message parameter in the message trigger signal; or the like, or, alternatively,
and calling a corresponding message generation script based on the signal lamp type of the signal lamp 512 to be detected in the message trigger signal to generate a CAN message signal.
Optionally, the detection device 520 comprises:
the position determining module is used for determining the position of the signal lamp 512 to be detected in the signal lamp video;
the working state determining module is used for extracting a region image corresponding to the position of each frame of image in the signal lamp video, and determining the working state of the signal lamp 512 to be detected in the region image, wherein the working state is a lamp-on state or a lamp-off state;
and the target image determining module is used for respectively determining a first image corresponding to the light-on state and the light-off state as a target image of the corresponding working state based on the working state and the image frame information corresponding to each image.
Further, the detection device 520 further includes:
the frequency determination module is used for determining the number of frames corresponding to one on-off process of the signal lamp 512 to be detected based on the image frame information of the target image respectively corresponding to the on-state of the lamp and the off-state of the lamp matched with the on-state of the lamp, and determining the duration of the one on-off process based on the number of frames and the time interval between two adjacent frames; and determining the frequency of the on-off of the signal lamp 512 to be detected based on the time length.
Optionally, the detection apparatus 520 further includes a video splitting module, configured to:
after the recording operation of the screen of the instrument 511 is triggered based on the shooting recording parameters to generate the signal lamp video, the signal lamp video is split into a plurality of frames of images based on the recording frame rate, and the image frame information of each image is recorded.
Optionally, the position determining module is specifically configured to:
the position of the signal lamp 512 to be detected in the signal lamp video is determined based on the position of the signal lamp 512 to be detected in the screen and the position of the screen in the signal lamp video.
Optionally, the working state determining module is specifically configured to:
extracting image characteristic information of the regional image;
the working state of the signal lamp 512 to be detected in the area image is determined based on the state characteristic information and the image characteristic information respectively corresponding to the on state and the off state of the lamp, and the state characteristic information comprises characteristic information of a set color space or binarization characteristic information.
Optionally, the working state determining module is specifically configured to:
converting the area image into a gray level image, and binarizing the gray level image to obtain a binarized image;
if the signal lamp contour exists in the binary image, determining that the working state of the signal lamp 512 to be detected is a lamp-on state;
and if the signal lamp contour does not exist in the binary image, determining that the working state of the signal lamp 512 to be detected is a lamp-off state.
Optionally, the frequency determination module is specifically configured to:
if the signal lamp video comprises a plurality of on-off processes, determining the maximum frequency, the minimum frequency and the average frequency of the on-off of the signal lamp 512 to be detected based on the duration of each on-off process.
Through the instrument detection system 500, the automatic determination of the on-off frequency of the signal lamp to be detected is realized by recording and analyzing the video of the signal lamp to be detected, manual statistics is not needed, the problems of subjective errors and low accuracy caused by manual statistics are solved, and the statistical accuracy of the working frequency of the signal lamp in the instrument is improved.
It should be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method or apparatus that comprises a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element.
The foregoing is merely a detailed description of the embodiments of the invention so that those skilled in the art can understand or implement the embodiments of the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the embodiments. Thus, the present embodiments are not intended to be limited to the embodiments shown herein but are to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. A meter testing method, comprising:
after receiving a signal for starting frequency detection, generating and sending a CAN message signal to equipment to be detected; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
triggering the recording operation of a screen of the instrument based on the shooting recording parameters to generate a signal lamp video; the signal lamp video at least comprises a primary on-off process of the signal lamp to be detected;
respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video;
and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
2. The method according to claim 1, wherein the generating and sending the CAN message signal to the device to be detected after receiving the signal for starting the frequency detection comprises:
after receiving the signal for starting frequency detection, generating and sending a message trigger signal to message sending equipment;
the message trigger signal is used for triggering the message sending equipment to generate the CAN message signal and sending the CAN message signal to the equipment to be detected.
3. The method according to claim 1 or 2, wherein the generating the CAN message signal after receiving the signal for initiating the frequency detection comprises:
after receiving the signal of starting frequency detection, generating the CAN message signal based on a preset message parameter; or the like, or, alternatively,
and after the signal of the starting frequency detection is received, calling a corresponding message generation script based on the signal lamp type of the signal lamp to be detected, and generating the CAN message signal.
4. The method of claim 1, wherein triggering recording operations on a screen of the meter based on camera recording parameters comprises:
sending the shooting recording parameters to a camera, wherein the shooting recording parameters comprise recording duration or recording start-stop conditions;
the camera is used for starting recording of a screen of the instrument based on the camera recording parameters to generate the signal lamp video.
5. The method according to claim 1, wherein the determining, based on the signal lamp video, the target images corresponding to the on-state and the off-state of at least one on-off process of the signal lamp to be detected respectively comprises:
determining the position of the signal lamp to be detected in the signal lamp video;
extracting a region image corresponding to the position aiming at the image of each frame in the signal lamp video, and determining the working state of the signal lamp to be detected in the region image, wherein the working state is the lamp-on state or the lamp-off state;
and respectively determining a first image corresponding to the light-on state and the light-off state as a target image of the corresponding working state based on the working state and the image frame information corresponding to each image.
6. The method of claim 5, wherein after triggering a recording operation on a screen of the meter based on the camera recording parameters to generate a signal light video, the method further comprises:
based on a recording frame rate, splitting the signal lamp video into a plurality of frames of images, and recording image frame information of each image; wherein the image frame information is used for representing the sequential relation between the images.
7. The method of claim 6, wherein the splitting the signal lamp video into a plurality of frames of images based on a recording frame rate, and recording image frame information of each of the images comprises:
determining the total frame number of video splitting based on the recording frame rate and the video duration of the signal lamp video;
and splitting the signal lamp video into the images with the total frame number, and recording the image frame information of each image.
8. The method according to claim 5, wherein the determining the operating state of the signal lamp to be detected in the area image comprises:
extracting image characteristic information of the region image;
determining the working state of the signal lamp to be detected in the area image based on the state characteristic information and the image characteristic information respectively corresponding to the lamp-on state and the lamp-off state; the state feature information comprises feature information of a set color space or binarization feature information.
9. The method according to claim 8, wherein the extracting image feature information of the region image comprises:
converting the area image into a gray level image, and binarizing the gray level image to obtain a binarized image;
the determining the working state of the signal lamp to be detected in the area image based on the state characteristic information and the image characteristic information respectively corresponding to the lamp-on state and the lamp-off state comprises:
if the binary image has a signal lamp contour, determining that the working state of the signal lamp to be detected is a lamp-on state;
and if the signal lamp contour does not exist in the binary image, determining that the working state of the signal lamp to be detected is a lamp-off state.
10. The method of claim 5, wherein the determining the frequency of the signal lamp to be detected turning on and off based on the image frame information of each target image comprises:
determining the frame number corresponding to one on-off process of the signal lamp to be detected based on the image frame information of the target image respectively corresponding to the on-state of the lamp and the off-state matched with the on-state of the lamp;
determining the duration of the one-time on-off process based on the frame number and the time interval of two adjacent frames;
and determining the on-off frequency of the signal lamp to be detected based on the time length.
11. The method according to claim 10, wherein the determining the frequency of the turn-on and turn-off of the signal lamp to be detected based on the time length comprises:
and if the signal lamp video comprises a plurality of times of on-off processes, determining the maximum frequency, the minimum frequency and the average frequency of the on-off of the signal lamp to be detected based on the duration of each on-off process.
12. A meter detection device, comprising:
the CAN message signal sending module is used for generating and sending a CAN message signal to the equipment to be detected after receiving the signal for starting frequency detection; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
the signal lamp video generation module is used for triggering the recording operation of the screen of the instrument based on the camera recording parameters to generate a signal lamp video; the signal lamp video at least comprises a primary on-off process of the signal lamp to be detected;
the target image determining module is used for respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video;
and the frequency determining module is used for determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
13. A meter detection device, comprising: a processor and a storage device;
the processor is adapted to perform the steps of the method of any one of claims 1 to 11 by calling programs or instructions stored in the storage means.
14. A computer-readable storage medium, characterized in that it stores a program or instructions for causing a computer to carry out the steps of the method according to any one of claims 1 to 11.
15. A meter detection system, the system comprising: the system comprises detection equipment, a camera and message sending equipment;
the message sending equipment is in communication connection with the detection equipment and is used for receiving a message trigger signal sent by the detection equipment, generating a CAN message signal based on the message trigger signal and sending the CAN message signal to the equipment to be detected; the CAN message signal is used for indicating the on/off of a signal lamp to be detected in the instrument of the equipment to be detected;
the camera is in communication connection with the detection equipment and is used for receiving camera shooting recording parameters sent by the detection equipment, starting recording of a screen of the instrument based on the camera shooting recording parameters, generating signal lamp videos and sending the signal lamp videos to the detection equipment;
the signal lamp video at least comprises a primary on-off process of the signal lamp to be detected;
the detection equipment is used for generating and sending the message trigger signal to the message sending equipment after receiving a signal for starting frequency detection, and sending the camera shooting recording parameter to the camera; receiving the signal lamp video, and respectively determining a lamp-on state and a target image corresponding to the lamp-off state of the signal lamp to be detected in at least one lamp-on and lamp-off process based on the signal lamp video; and determining the on-off frequency of the signal lamp to be detected based on the image frame information of each target image.
CN202010946905.3A 2020-09-10 2020-09-10 Instrument detection method, device, equipment, storage medium and system Pending CN112147439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010946905.3A CN112147439A (en) 2020-09-10 2020-09-10 Instrument detection method, device, equipment, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010946905.3A CN112147439A (en) 2020-09-10 2020-09-10 Instrument detection method, device, equipment, storage medium and system

Publications (1)

Publication Number Publication Date
CN112147439A true CN112147439A (en) 2020-12-29

Family

ID=73891090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010946905.3A Pending CN112147439A (en) 2020-09-10 2020-09-10 Instrument detection method, device, equipment, storage medium and system

Country Status (1)

Country Link
CN (1) CN112147439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113884121A (en) * 2021-08-27 2022-01-04 惠州市德赛西威汽车电子股份有限公司 Semi-automatic point inspection method for man-machine interaction interface of vehicle-mounted instrument
CN115001615A (en) * 2022-05-25 2022-09-02 中国第一汽车股份有限公司 Synchronization control method, device, system and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202535603U (en) * 2012-04-09 2012-11-14 安徽双科测控技术有限责任公司 Intelligent traffic LED strobe and flash lamp
US20130033601A1 (en) * 2011-08-02 2013-02-07 Yongsung Kim Terminal and method for outputting signal information of a signal light in the terminal
CN103729863A (en) * 2013-12-06 2014-04-16 南京金智视讯技术有限公司 Traffic light full-automatic positioning and recognizing method based on self-regulated learning
US20140192190A1 (en) * 2012-08-01 2014-07-10 Hiroaki Takahashi Monitoring camera apparatus
CN104851288A (en) * 2015-04-16 2015-08-19 宁波中国科学院信息技术应用研究院 Traffic light positioning method
CN105657412A (en) * 2015-12-31 2016-06-08 公安部第三研究所 Video frame rate test method
CN107209215A (en) * 2015-01-08 2017-09-26 甜樱桃科技有限公司 Method for detecting electrical lighting flicker
CN109145678A (en) * 2017-06-15 2019-01-04 杭州海康威视数字技术股份有限公司 Signal lamp detection method and device and computer equipment and readable storage medium storing program for executing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130033601A1 (en) * 2011-08-02 2013-02-07 Yongsung Kim Terminal and method for outputting signal information of a signal light in the terminal
CN202535603U (en) * 2012-04-09 2012-11-14 安徽双科测控技术有限责任公司 Intelligent traffic LED strobe and flash lamp
US20140192190A1 (en) * 2012-08-01 2014-07-10 Hiroaki Takahashi Monitoring camera apparatus
CN103729863A (en) * 2013-12-06 2014-04-16 南京金智视讯技术有限公司 Traffic light full-automatic positioning and recognizing method based on self-regulated learning
CN107209215A (en) * 2015-01-08 2017-09-26 甜樱桃科技有限公司 Method for detecting electrical lighting flicker
CN104851288A (en) * 2015-04-16 2015-08-19 宁波中国科学院信息技术应用研究院 Traffic light positioning method
CN105657412A (en) * 2015-12-31 2016-06-08 公安部第三研究所 Video frame rate test method
CN109145678A (en) * 2017-06-15 2019-01-04 杭州海康威视数字技术股份有限公司 Signal lamp detection method and device and computer equipment and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113884121A (en) * 2021-08-27 2022-01-04 惠州市德赛西威汽车电子股份有限公司 Semi-automatic point inspection method for man-machine interaction interface of vehicle-mounted instrument
CN115001615A (en) * 2022-05-25 2022-09-02 中国第一汽车股份有限公司 Synchronization control method, device, system and storage medium

Similar Documents

Publication Publication Date Title
EP3361239A1 (en) Display defect detection method, device and equipment
US20210248734A1 (en) Method and apparatus for detecting pixel defect of optical module, and device
EP3462374A1 (en) Fingerprint image acquisition method and device, and terminal device
CN112147439A (en) Instrument detection method, device, equipment, storage medium and system
CN111583223A (en) Defect detection method, defect detection device, computer equipment and computer readable storage medium
CN103067736A (en) Automatic test system based on character recognition
CN111179268B (en) Abnormality detection method and device for vehicle-mounted terminal and vehicle-mounted terminal
CN116007750A (en) LED detection method, device, equipment, storage medium and system
CN112559341A (en) Picture testing method, device, equipment and storage medium
CN113096060B (en) Positioning method and device for abnormal color lamp beads and storage medium
CN103106859B (en) The detection method of display screen and device
CN115269359A (en) Terminal interface testing method and device
WO2020135097A1 (en) Method and apparatus for channel switch detection of display terminal
CN111611151B (en) Method and device for detecting overdrawing of user interface
CN110674012B (en) Information indication method, device and storage medium
CN112000532B (en) Method, device, equipment and system for detecting disk disorder
CN115100625A (en) Method and system for identifying state of signal lamp
CN111046878B (en) Data processing method and device, computer storage medium and computer
CN114067145A (en) Passive optical splitter detection method, device, equipment and medium
CN111915601A (en) Intelligent terminal abnormity testing method, device and system
CN104572450A (en) Method and device for detecting resource allocation
CN110954214A (en) Equipment testing method, device and system
CN111079482A (en) Information acquisition method and device
US20230342897A1 (en) Method to detect camera blemishes
CN110874277A (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal

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