Method, device and equipment for determining flicker frequency of automobile instrument indicator light

By performing grayscale conversion, binarization, and difference image analysis, combined with a normalized correlation coefficient matching algorithm, the on/off state sequence of automotive instrument indicator lights was determined. This solved the problem of low accuracy in flicker frequency determination caused by environmental inconsistencies and achieved higher accuracy in flicker frequency determination.

CN116189156BActive Publication Date: 2026-02-24BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211685860.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2026-02-24
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

Existing technologies struggle to ensure environmental consistency during image acquisition when determining the flashing frequency of automotive instrument indicator lights, resulting in low accuracy.

Method used

By acquiring the first state image and multiple second state images of the car instrument indicator lights, the on/off state is determined using grayscale conversion and binarization processing. Combined with difference image analysis and normalized correlation coefficient matching algorithm, the on/off state sequence is determined and the flicker frequency is calculated.

Benefits of technology

It improves the accuracy of the flashing frequency of car instrument panel indicator lights and reduces the impact of image differences caused by changes in environmental factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116189156B_ABST
    Figure CN116189156B_ABST
Patent Text Reader

Abstract

The application discloses a kind of automobile instrument indicating lamp's flicker frequency determination method, device and equipment. The first state image of automobile instrument indicating lamp at first time and the second state image at multiple second times are acquired. According to the first state image, the first bright-off state of indicating lamp at the first time is determined, and each second state image is then subtracted from the first state image. According to the obtained multiple difference images and the first bright-off state of the indicating lamp at the first time, the bright-off state sequence of the indicating lamp is determined to determine the flicker frequency of the indicating lamp. According to the embodiment of the application, the flicker frequency of the indicating lamp can be determined based on the real-time acquired image only, reducing the difference between images caused by environmental factors, and improving the accuracy of the flicker frequency determined based on the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of automotive electronics technology, and in particular relates to a method, device and equipment for determining the flashing frequency of an automotive instrument indicator light. Background Technology

[0002] Normally, indicator lights and other devices on a car's dashboard will flash to alert the user when they are in normal working order.

[0003] When determining the flashing frequency of an indicator light, calculations are typically performed based on real-time acquisition of device images representing the on / off state of the indicator light and pre-determined image templates.

[0004] However, under normal circumstances, when determining whether the on / off states of the indicator lights are the same in two images representing their on / off states, the acquisition angle of the two images and the ambient light intensity when the two images are acquired need to be basically the same.

[0005] However, since the image template is usually predetermined, it is often difficult to ensure that the position of the image sensor and the ambient light intensity are the same when acquiring the image of the device as when acquiring the image template. This results in a large difference between the image template and the device image even if the indicator lights in the image template are on and off in the acquired image. This further leads to a low accuracy of the flashing frequency of the car instrument indicator lights obtained based on the device image and the image template. Summary of the Invention

[0006] This application provides a method, apparatus, and device for determining the flashing frequency of an automotive instrument panel indicator light, which can more accurately determine the flashing frequency of the automotive instrument panel indicator light.

[0007] On one hand, embodiments of this application provide a method for determining the flashing frequency of an indicator light on an automotive instrument panel, the method comprising:

[0008] Acquire the first state image of the vehicle's instrument panel indicator lights at a first moment and the second state images at multiple second moments.

[0009] The first state image is converted into a grayscale image using a grayscale conversion algorithm.

[0010] The grayscale image is binarized to obtain a first binarized image.

[0011] The region corresponding to the pixels whose pixel values ​​satisfy the first preset condition in the first binarized image is determined as the target region.

[0012] Determine the color of the image region in the first state image that corresponds to the target region.

[0013] Based on the color and the preset correspondence between color and brightness / off state, the brightness / off state of the first state image is determined.

[0014] The on / off state is defined as the first on / off state of the indicator light at the first moment, which includes being on and off.

[0015] Each second-state image is subtracted from the first-state image to obtain multiple difference images.

[0016] Based on the multiple difference images, the first state image, and the first on / off state of the indicator light at the first moment, the on / off state sequence of the indicator light is determined.

[0017] The flashing frequency of the indicator light is determined based on the on / off state sequence and the plurality of second moments.

[0018] Optionally, acquire a first state image of the vehicle's instrument panel indicator lights at a first moment and second state images at multiple second moments, including:

[0019] Acquire a first raw image of the vehicle's instrument panel indicator lights at a first moment and second raw images at multiple second moments.

[0020] In response to user actions, determine the parameters of the indicator light area.

[0021] Based on the indicator light area parameters, an image region corresponding to the indicator light area parameters is extracted from the first original image to obtain a first state image.

[0022] Based on the indicator light area parameters, image regions corresponding to the indicator light area parameters are extracted from each of the second original images to obtain multiple second state images.

[0023] Optionally, determining the first on / off state of the indicator light at the first moment based on the first state image includes:

[0024] The first state image is converted into a grayscale image using a grayscale conversion algorithm.

[0025] The grayscale image is binarized to obtain a first binarized image.

[0026] The region corresponding to the pixels whose pixel values ​​satisfy the first preset condition in the first binarized image is taken as the target region.

[0027] Determine the color of the image region in the first state image that corresponds to the target region.

[0028] Based on the color and the preset correspondence between color and brightness / off state, the brightness / off state of the first state image is determined.

[0029] The on / off state is taken as the first on / off state of the indicator light at the first moment.

[0030] Optionally, based on the multiple difference images and the first on / off state of the indicator light at the first moment, a sequence of on / off states of the indicator light is determined, including:

[0031] For each difference image, perform operations A through F respectively:

[0032] Operation A: Perform binarization and median filtering on the difference image to obtain a second binarized image.

[0033] Operation B: Copy the first state image to obtain a copied image.

[0034] Operation C: Subtract the first state image from the copied image to obtain an image template.

[0035] Operation D: Based on the normalized correlation coefficient matching algorithm, determine the similarity between the second binarized image and the image template.

[0036] Operation E: If the similarity satisfies a preset similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is consistent with the first on / off state, and obtain a first identifier to characterize the on / off state of the indicator light corresponding to the second binarized image.

[0037] Operation F: If it is determined that the similarity does not meet the similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is opposite to the first on / off state, and obtain a second identifier to characterize the on / off state of the indicator light corresponding to the second binarized image.

[0038] The on / off state sequence of the indicator light is determined based on the first identifier and the second identifier corresponding to the plurality of difference images.

[0039] Optionally, the flashing frequency of the indicator light is determined based on the on / off state sequence and the plurality of second moments, including:

[0040] In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment.

[0041] In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment.

[0042] The flicker period is determined by the difference between the times of the first transitions of two adjacent first transitions, or by the difference between the times of the second transitions of two adjacent second transitions.

[0043] The flashing frequency of the indicator light is determined based on the flashing period.

[0044] Optionally, after determining the on / off state sequence of the indicator light, the method further includes:

[0045] In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment.

[0046] In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment.

[0047] The time interval between the first transition time and the second transition time corresponding to the first transition and the second transition that are sequentially adjacent is determined to obtain the duration of the indicator light's off state within one flashing cycle of the indicator light, wherein the on / off state corresponding to the second identifier is off.

[0048] Optionally, after determining the on / off state sequence of the indicator light, the method further includes:

[0049] In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment.

[0050] In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment.

[0051] The time interval between the second transition time and the first transition time corresponding to the sequentially adjacent second transition and the first transition is determined to obtain the lighting duration of the indicator light within one flashing cycle of the indicator light, wherein the on / off state corresponding to the first identifier is on.

[0052] Optionally, before determining the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments, the method further includes:

[0053] The number of elements in the on / off state sequence is determined to be greater than a preset threshold.

[0054] On the other hand, embodiments of this application provide a device for determining the flashing frequency of an automotive instrument panel indicator light, the device comprising:

[0055] The acquisition unit is used to acquire the first state image of the vehicle's instrument panel indicator lights at a first moment and the second state images at multiple second moments.

[0056] The recognition unit is configured to convert the first state image into a grayscale image using a grayscale conversion algorithm, perform binarization processing on the grayscale image to obtain a first binarized image, determine the region corresponding to the pixel value satisfying a first preset condition in the first binarized image as the target region, determine the color of the image region in the first state image corresponding to the target region, determine the brightness state of the first state image according to the color and a preset correspondence between color and brightness state, and define the brightness state as the first brightness state of the indicator light at the first moment, wherein the first brightness state includes being on and being off.

[0057] The difference unit is used to subtract each second state image from the first state image to obtain multiple difference images.

[0058] The construction unit is configured to determine the on / off state sequence of the indicator light based on the plurality of difference images, the first state image, and the first on / off state of the indicator light at the first moment.

[0059] The determining unit is used to determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments.

[0060] Furthermore, embodiments of this application provide a device for determining the flashing frequency of an automotive instrument panel indicator light, the device comprising:

[0061] The processor and the memory storing computer program instructions.

[0062] When the processor executes the computer program instructions, it implements the method for determining the flashing frequency of automotive instrument indicator lights as provided in one aspect of this application.

[0063] In another aspect, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method for determining the flashing frequency of an automotive instrument indicator light as provided in one aspect of this application.

[0064] In another aspect, embodiments of this application provide a computer program product for determining the flashing frequency of an automotive instrument indicator light. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the method for determining the flashing frequency of an automotive instrument indicator light as provided in one aspect of this application.

[0065] The method, apparatus, device, and computer storage medium for determining the flashing frequency of an automotive instrument indicator light according to embodiments of this application can determine a sequence of on / off states representing the on / off state of the indicator light by acquiring a first state image and a second state image in real time. Based on this sequence and the second moment corresponding to each element in the sequence, the flashing frequency of the indicator light is determined. Embodiments of this application determine the flashing frequency of the indicator light solely based on real-time acquired images, reducing differences between images caused by changes in environmental factors and improving the accuracy of the flashing frequency determined based on the images. Attached Figure Description

[0066] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0067] Figure 1 This is a flowchart illustrating a method for determining the flashing frequency of an automotive instrument panel indicator light according to one embodiment of this application.

[0068] Figure 2 This is a binarized schematic diagram provided in one embodiment of this application.

[0069] Figure 3 This is a schematic diagram of differential operation provided in one embodiment of this application.

[0070] Figure 4 This is a schematic diagram of a live / off state sequence provided in one embodiment of this application.

[0071] Figure 5 This is a schematic diagram of the preferred process for determining the flashing frequency of an automotive instrument indicator light according to one embodiment of this application.

[0072] Figure 6 This is a flowchart illustrating a method for determining the flashing frequency of an automotive instrument panel indicator light according to another embodiment of this application.

[0073] Figure 7 This is a flowchart illustrating a method for determining the flashing frequency of an automotive instrument panel indicator light according to another embodiment of this application.

[0074] Figure 8 This is a schematic diagram of the structure of a device for determining the flashing frequency of an automotive instrument indicator light according to an embodiment of this application.

[0075] Figure 9 This is a schematic diagram of the structure of a device for determining the flashing frequency of an automotive instrument indicator light according to an embodiment of this application. Detailed Implementation

[0076] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0077] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0078] To address the problems of the prior art, this application provides a method, apparatus, and device for determining the flashing frequency of an automotive instrument panel indicator light. The method for determining the flashing frequency of an automotive instrument panel indicator light provided in this application will be described first.

[0079] Figure 1A flowchart illustrating a method for determining the flashing frequency of an automotive instrument panel indicator light according to an embodiment of this application is shown. Figure 1 As shown, the method for determining the flashing frequency of an automotive instrument indicator light provided in this application includes the following steps: S101 to S105.

[0080] S101: Acquire the first state image of the vehicle instrument indicator light at a first moment and the second state image at multiple second moments.

[0081] In one or more embodiments of this application, the method for determining the flashing frequency of the automotive instrument panel indicator can be executed by an electronic device. Of course, this electronic device can be a computer, mobile phone, tablet computer, server, or other similar device. This application does not limit the specific type of electronic device and it can be configured as needed.

[0082] To determine the flashing frequency of the car's instrument panel indicator lights, the electronic device can acquire multiple images representing the on / off state of the indicator lights.

[0083] Specifically, firstly, the electronic device can acquire multiple status images and obtain the acquisition time of each status image. Furthermore, when determining the flashing frequency of the indicator light on the car's instrument panel, the electronic device needs to subtract two of the multiple images to obtain a difference image, thereby determining whether the on / off state of the indicator light is the same in the two subtracted images.

[0084] Therefore, in order to more accurately determine whether the on / off state of the indicator light is the same in the two images being compared, the electronic device can ensure that all images acquired are captured under the same acquisition scenario. This acquisition scenario includes the image sensor position, ambient brightness, etc.

[0085] Secondly, the electronic device can randomly select any one of the acquired state images as the first state image, and the acquisition time of the first state image, i.e., the acquisition time of the state image, is taken as the first time. Then, it can use all the acquired state images as second state images, and the acquisition time of each second state image, i.e., the acquisition time of each state image, is taken as the second time.

[0086] Using the above method, the electronic device can acquire a first state image and a second state image, and then determine the on / off state of the indicator light based on the first state image and the second state image.

[0087] S102: The first state image is converted into a grayscale image using a grayscale conversion algorithm. The grayscale image is then binarized to obtain a first binarized image. The region corresponding to the pixel point whose pixel value satisfies the first preset condition in the first binarized image is determined as the target region. The color of the image region in the first state image corresponding to the target region is determined. Based on the color and the preset correspondence between the color and the on / off state, the on / off state of the first state image is determined. The on / off state is determined as the first on / off state of the indicator light at the first moment. The first on / off state includes being lit and being off.

[0088] In one or more embodiments of this application, in order to determine the on / off state sequence of the indicator light, the electronic device may determine the first on / off state of the indicator light represented in the first state image.

[0089] Specifically, firstly, the electronic device can convert the first-state image into a grayscale image using a grayscale conversion algorithm. Since the technology for converting images to grayscale is already quite mature in the prior art, the specific conversion method will not be elaborated upon here.

[0090] Secondly, the electronic device can perform binarization processing on the grayscale image to obtain a first binarized image. Similarly, since the technology for binarizing images is already quite mature in the prior art, this application will not elaborate on how to perform binarization processing on the grayscale image.

[0091] like Figure 2 As shown, Figure 2 A binarized schematic diagram provided for one embodiment of this application. Figure 2 This includes Figure A and Figure B. Among them, Figure 2 Image A in the image is a grayscale image of size 501. Figure 2 Image B in the diagram is the first binarized image 502. The grayscale image 501 is binarized to obtain the first binarized image 502. The dashed lines in this first binarized image 502 do not actually exist; they are only used for ease of understanding.

[0092] Next, the electronic device can determine the pixel value of each pixel in the first binarized image, and then determine whether each pixel in the first binarized image satisfies a first preset condition. The region composed of pixels that satisfy the first preset condition is then identified as the target region. In one or more embodiments of this application, the preset condition is a pixel value equal to 255. Since the first binarized image is a grayscale image, the pixel value is a grayscale value.

[0093] Then, the electronic device can determine the image region corresponding to the target region from the first state image. Based on the red, green, and blue (RGB) parameters of each pixel in the image region, it counts the number of pixels corresponding to different RGB parameters. Finally, it determines the RGB parameter with the highest number of corresponding pixels.

[0094] For example, given pixels A(1,2,3), B(1,2,3), C(3,1,2), and D(2,1,3), the number of pixels corresponding to the RGB parameter (1,2,3) is 2, the number of pixels corresponding to the RGB parameter (3,1,2) is 1, and the number of pixels corresponding to the RGB parameter (2,1,3) is 1. The RGB parameter with the most corresponding pixels is (1,2,3).

[0095] The RGB parameter is input into the Hue, Saturation, Value (HSV) color space to obtain the color corresponding to the RGB parameter. This color is then used as the color of the image region.

[0096] As shown in Table 1, Table 1 is a table showing the correspondence between RGB parameters and colors in the HSV color space.

[0097]

[0098] Since the existing technology for identifying the color corresponding to the RGB parameter based on the HSV color space is already quite mature, this application will not elaborate on how to identify the color corresponding to the RGB parameter.

[0099] Finally, the electronic device can determine the on / off state of the indicator light in the first state image based on a preset correspondence between color and on / off state. For example, if black corresponds to off and red corresponds to on, then when the color of the image area is red, the indicator light in the first state image is on; when the color of the image area is black, the indicator light in the first state image is off.

[0100] Using the above method, the electronic device can determine the on / off state of the indicator light in the first state image, so as to determine the on / off state sequence and thus determine the flashing frequency of the indicator light.

[0101] S103: Subtract each second state image from the first state image to obtain multiple difference images.

[0102] In one or more embodiments of this application, in order to determine the on / off state of the indicator light in each second state image, the electronic device may subtract each second state image from the first state image.

[0103] Specifically, the electronic device can perform an image subtraction operation between the second state image and the first state image for each second state image to obtain a difference image corresponding to the second state image. Since there are already relatively mature methods for performing image subtraction in the prior art, the specific details of how image subtraction is performed will not be elaborated here.

[0104] Using the above method, the electronic device can determine the difference image corresponding to each second state image in order to determine the on / off state sequence, thereby determining the flashing frequency of the indicator light.

[0105] S104: Determine the on / off state sequence of the indicator light based on the multiple difference images, the first state image, and the first on / off state of the indicator light at the first moment.

[0106] In one or more embodiments of this application, the electronic device can determine the on / off state sequence of the indicator light after determining the difference image corresponding to each second state image.

[0107] Specifically, the electronic device can perform operations A through F for each difference image.

[0108] Operation A: Perform binarization and median filtering on the difference image to obtain a second binarized image.

[0109] The electronic device can perform binarization and median filtering on the difference image, and use the processed image as a second binarized image.

[0110] like Figure 3 As shown, Figure 3 A schematic diagram of differential operation is provided for one embodiment of this application. Figure 3 This includes Figure A, Figure B, Figure C, and Figure D. Figure 3 Image A in the image is the first state image 503. Figure 3 Image B in the image is the second state image 504. Figure 3 Image C in the image is the difference image 505. Figure 3 The D-image in the image is the second binarized image 506. The electronic device subtracts the first state image 503 and the second state image 504 to obtain a difference image 505. Then, the difference image 505 is subjected to binarization and median filtering to obtain the second binarized image 506.

[0111] Operation B: Copy the first state image to obtain a copied image.

[0112] The electronic device can copy the first state image to obtain a copied image.

[0113] Operation C: Subtract the first state image from the copied image to obtain an image template.

[0114] The electronic device can perform image subtraction between the copied image and the first state image to obtain an image template. Since there are already relatively mature methods for performing image subtraction in the prior art, the specific details of how image subtraction is performed will not be elaborated here.

[0115] Operation D: Based on the normalized correlation coefficient matching algorithm, determine the similarity between the second binarized image and the image template.

[0116] After obtaining the image template, the electronic device can determine the similarity between the second binarized image and the image template using the following formula based on the normalized correlation coefficient matching algorithm:

[0117]

[0118]

[0119]

[0120] Where, T(x) ′ ,y ′ ) represents the coordinates (x) in the image template. ′ ,y ′ The grayscale value of the pixel is given by the coordinate system, which is a coordinate system with the top left corner of the image template as the origin, the horizontal x-axis and the vertical y-axis. This is the average gray level of each pixel in the image template.

[0121] w represents the number of pixels in the horizontal direction of the image template, and h represents the number of pixels in the vertical direction of the image template. T(x″,y″) represents the grayscale value of the pixel with coordinates (x″,y″) in the image template.

[0122] I(x+x ′ ,y+y ′ ) represents the coordinates of the point (x+x) in the second binarized image. ′ ,y+y ′ The grayscale value of ). This is the mean gray value of each pixel in the second binarized image.

[0123] In this second binarized image, the coordinates of the point (x+x) ′ ,y+y ′ ) and the coordinates of the point (x) in the image template ′ ,y ′There is a corresponding relationship. When the second binarized image is larger than the image template, x is the abscissa of the point in the second binarized image corresponding to the origin of the image template, and y is the ordinate of the point in the second binarized image corresponding to the origin of the image template. When the second binarized image and the image template are the same size, both x and y are 0.

[0124] Of course, since the existing technology for determining image similarity based on the normalized correlation coefficient matching algorithm is already quite mature, this application will not elaborate on how to determine the similarity in detail.

[0125] Operation E: If the similarity satisfies the preset similarity conditions, determine that the on / off state of the indicator light corresponding to the second binarized image is consistent with the first on / off state, and obtain a first identifier for characterizing the on / off state of the indicator light corresponding to the second binarized image.

[0126] The electronic device can determine whether the similarity between the second binarized image and the image template meets a preset similarity condition. If the similarity meets the condition, the on / off state of the indicator light in the second binarized image is determined to be consistent with the first on / off state, and a first identifier is used to characterize the on / off state of the indicator light corresponding to the second binarized image. The type of similarity condition can be set as needed. For example, the similarity condition can be set to a similarity of 1, or a similarity greater than a preset similarity threshold. This application does not limit how the similarity condition is specifically set.

[0127] Operation F: If it is determined that the similarity does not meet the similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is opposite to the first on / off state, and obtain a second identifier for characterizing the on / off state of the indicator light corresponding to the second binarized image.

[0128] The electronic device can determine whether the similarity between the second binarized image and the image template meets a preset similarity condition. If it is determined that the similarity does not meet the similarity condition, it can be determined that the on / off state of the indicator light in the second binarized image is inconsistent with the first on / off state, and a second identifier is used to represent the on / off state of the indicator light corresponding to the second binarized image.

[0129] After determining the first and second identifiers corresponding to multiple difference images, the electronic device can determine the on / off state sequence composed of the first and second identifiers corresponding to each difference image in chronological order, based on the second time point corresponding to each difference image. This on / off state sequence represents the on / off state of the indicator light in each second state image.

[0130] like Figure 4 As shown, Figure 4 This is a schematic diagram of a live / off state sequence provided in one embodiment of this application. Figure 4 This includes diagrams A, B, C, D, E, F, G, and H. Figure 4 Image A in the image is the difference image 401. Figure 4 Image B in the image is the difference image 402. Figure 4 Image C in the image is the difference image 403. Figure 4 The D-image in the image is the difference image 404. Figure 4 The E-plot in the image is the difference plot 405. Figure 4 The F-plot in the image is the difference plot 406. Figure 4 The G-image in the image is the difference image 407. Figure 4 The H-image in the figure is the difference image 408. Among them, the determined difference images 401, 402, 403, 404, 405, 406, 407, and 408 are shown in the figure. Thus, the electronic device can determine the first identifier or the second identifier corresponding to each difference image.

[0131] Of course, in order to save computing power, the electronic device can perform operations A to C only once, and for each difference image, it can perform operations D to F based on the obtained image template.

[0132] Using the above method, the electronic device can determine the on / off state sequence that characterizes the on / off state of the indicator light in each second state image, so as to determine the flashing frequency of the indicator light.

[0133] S105: Determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments.

[0134] In one or more embodiments of this application, after determining the on / off state sequence of the indicator light, the electronic device can determine the flashing frequency of the indicator light based on the on / off state sequence and the second moment corresponding to each second state image.

[0135] Specifically, firstly, the electronic device can take the subsequence formed by the first identifier and the second identifier in the on / off state sequence as the first transition when the first identifier and the second identifier are adjacent in the order of front and back, and take the second time corresponding to the second identifier in the first transition as the first transition time.

[0136] For example, if the on / off state sequence is 1110011100111, the first identifier is 1, and the second identifier is 0, then the electronic device can use the subsequence "10" as the first transition, and use the second time corresponding to the second identifier "0" in the subsequence "10" as the first transition time corresponding to the first transition.

[0137] The electronic device can take the subsequence formed by the second identifier and the first identifier in the on / off state sequence as the second transition when the second identifier and the first identifier are adjacent in the order of front and back, and take the second time corresponding to the first identifier in the second transition as the second transition time.

[0138] Continuing with the previous example, the on / off state sequence is 1110011100111, with the first identifier being 1 and the second identifier being 0. The electronic device can then use the subsequence "01" as the second transition, and the second moment corresponding to the first identifier "1" in the subsequence "01" as the second transition moment corresponding to this second transition.

[0139] Secondly, the electronic device can use the difference between the times of the first transitions corresponding to two adjacent first transitions as the flashing period of the indicator light. Alternatively, the electronic device can use the difference between the times of the second transitions corresponding to two adjacent second transitions as the flashing period of the indicator light.

[0140] Continuing with the previous example, the on / off state sequence is 1110011100111, with the first identifier being 1 and the second identifier being 0. The first transition formed by the third element "1" and the fourth element "0" in this on / off state sequence is adjacent to the first transition formed by the eighth element "1" and the ninth element "0" in the same sequence. Furthermore, the first transition times corresponding to these two first transitions are 00:00:00 and 00:00:01 respectively, therefore the flashing period is 1 second.

[0141] It should be noted that, since the flashing cycle of the indicator lights on a car instrument panel is extremely short in actual situations, in one or more embodiments of this application, each second state moment can be accurate to milliseconds or microseconds.

[0142] Furthermore, since the electronic device determines the flashing period of the indicator light based on the acquired images, the time interval between any two second state images may cause errors in the flashing period.

[0143] For example, at 00:00:00, a second state image is captured; at 00:00:01, the indicator light changes from on to off; and at 00:00:10, another second state image is captured. During the calculation process, the electronic device uses the subsequence corresponding to these two second state images as the second transition, and 00:00:10 as the second transition time corresponding to that second transition. Therefore, the error in the obtained flicker period could be 9 seconds.

[0144] Therefore, in order to improve the accuracy of the flickering frequency, in one or more embodiments of this application, the time interval between any two second state images needs to be less than a preset error threshold. The error threshold can be 10 milliseconds, 5 milliseconds, 20 milliseconds, etc. The size of the error threshold can be set by the user and is not limited in this application.

[0145] Finally, the electronic device can determine the flashing frequency of the indicator light based on its flashing cycle.

[0146] Furthermore, since determining the flashing frequency of the indicator light requires a certain number of second state images, the electronic device can determine, before step S105, whether the number of elements in the on / off state sequence is greater than a preset threshold. If yes, step S105 is executed. If no, the process returns to step S101 until it is determined that the number of elements in the on / off state sequence is greater than the threshold.

[0147] Using the above method, the electronic device can determine the flashing frequency of the indicator light based on a first state image representing the on / off state of the indicator light and multiple second state images collected within the same time period.

[0148] The above describes a specific implementation of the method for determining the flashing frequency of an automotive instrument indicator light provided in this application. Through the above embodiments, a sequence of on / off states representing the on / off state of the indicator light can be determined by acquiring a first state image and a second state image in real time. Based on this on / off state sequence and the second time point corresponding to each element in the sequence, the flashing frequency of the indicator light can be determined. The embodiments of this application determine the flashing frequency of the indicator light solely based on real-time acquired images, reducing the differences between images caused by changes in environmental factors and improving the accuracy of the flashing frequency determined based on the images.

[0149] Since car dashboards often contain multiple indicator lights such as headlights, turn signals, fuel indicator lights, door status indicators, and seatbelt indicators, this application provides another implementation of the method for determining the flashing frequency of car dashboard indicator lights. See the following embodiments for details.

[0150] Please see Figure 5 Another implementation of the method for determining the flashing frequency of the automotive instrument indicator provided in this application includes the following steps: steps S201 to S208.

[0151] S201: Acquire a first raw image of the vehicle instrument indicator lights at a first moment and a second raw image at multiple second moments.

[0152] Specifically, firstly, the electronic device can acquire multiple raw images and obtain the acquisition time of each raw image. Furthermore, when determining the flashing frequency of the indicator light on the car's dashboard, the electronic device needs to subtract two of the multiple images to obtain a difference image, thereby determining whether the on / off state of the indicator light is the same in the two subtracted images.

[0153] Therefore, in order to more accurately determine whether the on / off state of the indicator light is the same in the two images being compared, the electronic device can ensure that all original images are acquired under the same acquisition scenario. This acquisition scenario includes the image sensor position, ambient brightness, etc.

[0154] Secondly, the electronic device can randomly select any one of the acquired original images as the first original image, and the acquisition time of the first original image, i.e., the acquisition time of the original image, is taken as the first time. Then, it can use all the original images as second original images, and the acquisition time of each second original image, i.e., the acquisition time of each original image, is taken as the second time.

[0155] S202: In response to user operation, determine the parameters of the indicator light area.

[0156] Since each original image contains the on / off states of multiple indicator lights, the electronic device can determine the indicator area parameters of the indicator light whose flashing frequency needs to be determined in response to user operation. Of course, since there may be multiple indicator lights whose flashing frequencies need to be determined, the electronic device can determine multiple indicator light area parameters.

[0157] Specifically, the electronic device can respond to user operations and determine the indicator area parameters of the indicator light whose flashing frequency needs to be determined.

[0158] S203: Based on the indicator light area parameters, extract the image area corresponding to the indicator light area parameters from the first original image to obtain the first state image.

[0159] Specifically, the electronic device can determine the image region corresponding to each indicator area parameter from the first original image, and use the image region as the first state image corresponding to the indicator area parameter.

[0160] S204: Based on the indicator light area parameters, extract the image area corresponding to the indicator light area parameters from each of the second original images to obtain multiple second state images.

[0161] Specifically, the electronic device can extract the image region corresponding to the indicator area parameter from each second original image for each indicator area parameter, and use the extracted multiple image regions as the second state image corresponding to the indicator area parameter.

[0162] Next, for each indicator light area, steps S205 to S208 are executed respectively for the first state image and multiple second state images.

[0163] S205: The first state image is converted into a grayscale image using a grayscale conversion algorithm. The grayscale image is then binarized to obtain a first binarized image. The region corresponding to the pixel value that satisfies the first preset condition in the first binarized image is determined as the target region. The color of the image region in the first state image corresponding to the target region is determined. Based on the color and the preset correspondence between the color and the on / off state, the on / off state of the first state image is determined. The on / off state is determined as the first on / off state of the indicator light at the first moment. The first on / off state includes being lit and being off.

[0164] S206: Subtract each second state image from the first state image to obtain multiple difference images.

[0165] S207: Determine the on / off state sequence of the indicator light based on the plurality of difference images, the first state image, and the first on / off state of the indicator light at the first moment.

[0166] S208: Determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments.

[0167] S205 to S208 are the same as S102 to S105 in the above embodiments, and will not be described in detail here for the sake of brevity.

[0168] In the above embodiments, the electronic device can determine the flashing frequency of multiple indicator lights, thereby improving efficiency.

[0169] Since the indicator light needs to be on for a certain duration and off for a certain duration within one flashing cycle, and the on and off durations are often specified in the design of the indicator light, the electronic device can determine the on and off durations separately to determine whether the indicator light is malfunctioning. As another implementation of this application, this application also provides another implementation of the method for determining the flashing frequency of an automotive instrument indicator light, as detailed in the following embodiments.

[0170] Please see Figure 6Another implementation of the method for determining the flashing frequency of the automotive instrument indicator provided in this application includes the following steps: steps S301 to S307.

[0171] S301: Acquire the first state image of the vehicle instrument indicator light at a first moment and the second state image at multiple second moments.

[0172] S302: The first state image is converted into a grayscale image using a grayscale conversion algorithm. The grayscale image is then binarized to obtain a first binarized image. The region corresponding to the pixel value that satisfies the first preset condition in the first binarized image is determined as the target region. The color of the image region in the first state image corresponding to the target region is determined. Based on the color and the preset correspondence between the color and the on / off state, the on / off state of the first state image is determined. The on / off state is determined as the first on / off state of the indicator light at the first moment. The first on / off state includes being lit and being off.

[0173] S303: Subtract each second state image from the first state image to obtain multiple difference images.

[0174] S304: Determine the on / off state sequence of the indicator light based on the multiple difference images, the first state image, and the first on / off state of the indicator light at the first moment.

[0175] S305: Determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments.

[0176] S306: In the on / off state sequence, when the first identifier and the second identifier are adjacent in the order of front and back, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second time corresponding to the second identifier in the first transition is taken as the first transition time.

[0177] Specifically, the electronic device can take the subsequence formed by the first identifier and the second identifier in the on / off state sequence as the first transition when the first identifier and the second identifier are adjacent in the order of front and back, and take the second time corresponding to the second identifier in the first transition as the first transition time.

[0178] Continuing with the previous example, the on / off state sequence is 1110011100111, with the first identifier being 1 and the second identifier being 0. The electronic device can then use the subsequence "10" as the first transition, and the second moment corresponding to the second identifier "0" in the subsequence "10" as the first transition moment corresponding to the first transition.

[0179] S307: In the on / off state sequence, when the second identifier and the first identifier are adjacent in the order of front and back, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second time corresponding to the first identifier in the second transition is taken as the second transition time.

[0180] The electronic device can take the subsequence formed by the second identifier and the first identifier in the on / off state sequence as the second transition when the second identifier and the first identifier are adjacent in the order of front and back, and take the second time corresponding to the first identifier in the second transition as the second transition time.

[0181] Continuing with the previous example, the on / off state sequence is 1110011100111, with the first identifier being 1 and the second identifier being 0. The electronic device can then use the subsequence "01" as the second transition, and the second moment corresponding to the first identifier "1" in the subsequence "01" as the second transition moment corresponding to this second transition.

[0182] S308: Determine the time interval between the first transition time and the second transition time corresponding to the sequentially adjacent first transition and second transition, respectively, to obtain the duration of the indicator light's off state within one flashing cycle of the indicator light, wherein the on / off state corresponding to the second identifier is off.

[0183] Specifically, the electronic device can use the time interval between the first transition time and the second transition time corresponding to the first transition and the second transition that are adjacent in sequence as the duration for which the indicator light is off.

[0184] The electronic device may also use the time interval between the second transition moment and the first transition moment corresponding to the second transition and the first transition respectively, which are adjacent in sequence, as the lighting duration of the indicator light.

[0185] In the above embodiments, the electronic device can determine the duration of the indicator light being on and the duration of it being off, in order to determine whether the indicator light is working properly.

[0186] In addition, such as Figure 7 As shown, an embodiment of this application also provides a preferred flowchart of the method for determining the flashing frequency of the car instrument indicator light, including steps S601 to S620.

[0187] S601: Acquire multiple raw images and the acquisition time of each raw image.

[0188] S602: Determine the first original image and multiple second original images, and determine the acquisition time of the first original image as the first moment and the acquisition time of each second original image as the second moment.

[0189] S603: Based on the indicator light area parameters, the corresponding image area in the first original image is taken as the first state image, and the corresponding image area in each second original image is taken as the second state image.

[0190] S604: Based on the indicator light area parameters, the corresponding image area in the first original image is taken as the first state image, and the corresponding image area in each second original image is taken as the second state image.

[0191] S605: For each second state image, subtract the second state image from the first state image to obtain a difference image.

[0192] S606: Perform binarization and median filtering on the difference image sequentially to obtain the second binarized image.

[0193] S607: For the first state image.

[0194] S608: Copy the first state image to obtain a copied image. Subtract the first state image from the copied image to obtain an image template.

[0195] S609: Based on the normalized correlation coefficient matching algorithm, determine the similarity between the second binarized image and the image template.

[0196] S610: Perform binarization processing on the first state image sequentially to obtain the first binarized image.

[0197] S611: Determine the target region based on the grayscale value of each pixel in the first binarized image.

[0198] S612: Determine the RGB parameter that has the highest number of corresponding pixels in the target area of ​​the first state image.

[0199] S613: Determine the color corresponding to the RGB parameter using the HSV color space.

[0200] S614: Determine the brightness state represented by the first state image based on the preset correspondence between color and brightness state.

[0201] S615: Determine whether the similarity threshold meets the preset similarity conditions. If yes, proceed to step S617. If no, proceed to step S616.

[0202] S616: Determine the sequence value corresponding to the second binarized image as the second identifier.

[0203] S617: Determine the sequence value corresponding to the second binarized image as the first identifier.

[0204] S618: Determine the on / off state sequence based on the sequence values ​​of each second binarized image.

[0205] S619: Determine whether the number of elements in the on / off state sequence is greater than a preset threshold. If yes, proceed to step S620. If no, proceed to step S601.

[0206] S620: Based on the on / off state sequence and the second moment corresponding to each element in the sequence, determine the flashing frequency of the indicator light.

[0207] Furthermore, the acquisition, storage, use, and processing of data in this application's technical solution all comply with relevant national laws and regulations.

[0208] Based on the method for determining the flashing frequency of automotive instrument indicator lights provided in the above embodiments, this application also provides a specific implementation of the device for determining the flashing frequency of automotive instrument indicator lights. Please refer to the following embodiments.

[0209] First see Figure 8 The device for determining the flashing frequency of automotive instrument indicator lights provided in this application embodiment includes the following units:

[0210] Acquisition unit 701 is used to acquire a first state image of the vehicle instrument indicator light at a first moment and second state images at multiple second moments.

[0211] The recognition unit 702 is configured to convert the first state image into a grayscale image using a grayscale conversion algorithm, perform binarization processing on the grayscale image to obtain a first binarized image, determine the region corresponding to the pixel points in the first binarized image whose pixel values ​​satisfy a first preset condition as the target region, determine the color of the image region in the first state image corresponding to the target region, determine the brightness state of the first state image according to the color and a preset correspondence between color and brightness state, and define the brightness state as the first brightness state of the indicator light at the first moment, wherein the first brightness state includes being on and being off.

[0212] The subtraction unit 703 is used to subtract each second state image from the first state image to obtain multiple difference images.

[0213] Construction unit 704 is configured to determine the on / off state sequence of the indicator light based on the plurality of difference images, the first state image, and the first on / off state of the indicator light at the first moment.

[0214] The determining unit 705 is used to determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments.

[0215] Through the above embodiments, a sequence of on / off states representing the on / off state of an indicator light can be determined by acquiring a first state image and a second state image in real time. Based on this sequence and the second time point corresponding to each element in the sequence, the flashing frequency of the indicator light can be determined. The embodiments of this application determine the flashing frequency of the indicator light solely based on real-time acquired images, reducing the differences between images caused by changes in environmental factors and improving the accuracy of the flashing frequency determined from the images.

[0216] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: an acquisition subunit 7011.

[0217] The acquisition subunit 7011 is used to acquire a first original image of the car instrument indicator light at a first moment and a second original image at multiple second moments. In response to the user's operation, it determines the indicator light area parameter, extracts the image area corresponding to the indicator light area parameter from the first original image according to the indicator light area parameter to obtain a first state image, and extracts the image area corresponding to the indicator light area parameter from each of the second original images according to the indicator light area parameter to obtain multiple second state images.

[0218] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: a construction subunit 7041.

[0219] The construction subunit 7041 is configured to perform operations A to F for each difference image: Operation A: perform binarization and median filtering on the difference image to obtain a second binarized image; Operation B: copy the first state image to obtain a copied image; Operation C: subtract the first state image from the copied image to obtain an image template; Operation D: determine the similarity between the second binarized image and the image template based on a normalized correlation coefficient matching algorithm; Operation E: if the similarity satisfies a preset similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is consistent with the first on / off state, and obtain a first identifier to characterize the on / off state of the indicator light corresponding to the second binarized image; Operation F: if the similarity does not satisfy the similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is opposite to the first on / off state, and obtain a second identifier to characterize the on / off state of the indicator light corresponding to the second binarized image; and determine the on / off state sequence of the indicator light based on the first identifier and the second identifier corresponding to the multiple difference images.

[0220] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: a construction subunit 7042.

[0221] The construction subunit 7042 is used to take the subsequence formed by the first identifier and the second identifier when they are adjacent in the on / off state sequence as the first transition, and take the second time corresponding to the second identifier in the first transition as the first transition time. Similarly, it takes the subsequence formed by the second identifier and the first identifier when they are adjacent in the on / off state sequence as the second transition, and takes the second time corresponding to the first identifier in the second transition as the second transition time. The flashing period is determined based on the difference between the first transition times corresponding to two adjacent first transitions, or based on the difference between the second transition times corresponding to two adjacent second transitions. The flashing frequency of the indicator light is then determined based on the flashing period.

[0222] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: a determining subunit 7051.

[0223] The determining subunit 7051 is used to take the subsequence formed by the first identifier and the second identifier when they are adjacent in the order of the on / off state sequence as the first transition, and take the second time corresponding to the second identifier in the first transition as the first transition time. It also takes the subsequence formed by the second identifier and the first identifier when they are adjacent in the order of the on / off state sequence as the second transition, and takes the second time corresponding to the first identifier in the second transition as the second transition time. The subunit 7051 determines the time interval between the first transition time and the second transition time corresponding to the sequentially adjacent first and second transitions, respectively, to obtain the duration of the indicator light's off state within one flashing cycle of the indicator light, wherein the on / off state corresponding to the second identifier is off.

[0224] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: a determining subunit 7052.

[0225] The determining subunit 7052 is used to take the subsequence formed by the first identifier and the second identifier when they are adjacent in the order of the on / off state sequence as the first transition, and take the second time corresponding to the second identifier in the first transition as the first transition time. It also takes the subsequence formed by the second identifier and the first identifier when they are adjacent in the order of the on / off state sequence as the second transition, and takes the second time corresponding to the first identifier in the second transition as the second transition time. The subunit 7052 determines the time interval between the second transition time and the first transition time corresponding to the sequentially adjacent second transition and first transition, respectively, to obtain the lighting duration of the indicator light within one flashing cycle of the indicator light, wherein the on / off state corresponding to the first identifier is on.

[0226] As one implementation of this application, in order to improve the efficiency of determining the flashing frequency of the indicator light, the above-mentioned device may further include: a determining subunit 7053.

[0227] The determining subunit 7053 is used to determine that the number of elements in the on / off state sequence is greater than a preset number threshold.

[0228] Figure 9 A schematic diagram of the hardware structure for determining the flashing frequency of an automotive instrument indicator light provided in an embodiment of this application is shown.

[0229] The device for determining the flashing frequency of an indicator light on a car dashboard may include a processor 901 and a memory 902 storing computer program instructions.

[0230] Specifically, the processor 901 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0231] Memory 902 may include mass storage for data or instructions. For example, and not limitingly, memory 902 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 902 may include removable or non-removable (or fixed) media. Where appropriate, memory 902 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 902 is non-volatile solid-state memory.

[0232] In a particular embodiment, memory 902 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.

[0233] The processor 901 reads and executes computer program instructions stored in the memory 902 to implement any of the methods for determining the flashing frequency of automotive instrument indicator lights in the above embodiments.

[0234] In one example, the device for determining the flashing frequency of automotive instrument panel indicator lights may also include a communication interface 903 and a bus 910. For example, Figure 9 As shown, the processor 901, memory 902, and communication interface 903 are connected through bus 910 and complete communication with each other.

[0235] The communication interface 903 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0236] Bus 910 includes hardware, software, or both, that couples components of a device that determines the flashing frequency of an automotive instrument cluster indicator light to each other. For example, and not as a limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 910 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0237] The device for determining the flashing frequency of the car instrument panel indicator light can execute the method for determining the flashing frequency of the car instrument panel indicator light in this application embodiment based on currently blocked spam text messages and text messages reported by users, thereby achieving a combination of... Figure 1 and Figure 8 The method and apparatus described herein are for determining the flashing frequency of an indicator light on an automotive instrument panel.

[0238] Furthermore, in conjunction with the method for determining the flashing frequency of the automotive instrument indicator light in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions, which, when executed by a processor, implement any of the methods for determining the flashing frequency of the automotive instrument indicator light in the above embodiments.

[0239] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0240] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0241] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0242] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus, and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0243] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for determining the flashing frequency of an indicator light on an automotive instrument panel, characterized in that, include: Acquire the first state image of the vehicle's instrument panel indicator lights at a first moment and the second state images at multiple second moments. The first state image is converted into a grayscale image using a grayscale conversion algorithm. The grayscale image is binarized to obtain a first binarized image. The region corresponding to the pixels whose pixel values ​​satisfy the first preset condition in the first binarized image is determined as the target region. Determine the color of the image region in the first state image that corresponds to the target region. Based on the color and the preset correspondence between color and brightness / off state, the brightness / off state of the first state image is determined. The on / off state is defined as the first on / off state of the indicator light at the first moment, which includes being on and off. Each second-state image is subtracted from the first-state image to obtain multiple difference images. Based on the multiple difference images, the first state image, and the first on / off state of the indicator light at the first moment, the on / off state sequence of the indicator light is determined. The flashing frequency of the indicator light is determined based on the on / off state sequence and the plurality of second moments; Based on the multiple difference images, the first state image, and the first on / off state of the indicator light at the first moment, the on / off state sequence of the indicator light is determined, including: For each difference image, perform operations A through F respectively: Operation A: Perform binarization and median filtering on the difference image to obtain a second binarized image. Operation B: Copy the first state image to obtain a copied image. Operation C: Subtract the first state image from the copied image to obtain an image template. Operation D: Based on the normalized correlation coefficient matching algorithm, determine the similarity between the second binarized image and the image template. Operation E: If the similarity satisfies a preset similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is consistent with the first on / off state, and obtain a first identifier to characterize the on / off state of the indicator light corresponding to the second binarized image. Operation F: If it is determined that the similarity does not meet the similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is opposite to the first on / off state, and obtain a second identifier to characterize the on / off state of the indicator light corresponding to the second binarized image. Based on the first identifier and the second identifier corresponding to the plurality of difference images, the on / off state sequence of the indicator light is determined; Based on the on / off state sequence and the plurality of second moments, the flashing frequency of the indicator light is determined, including: In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment. In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment. The flicker period is determined by the difference between the times of the first transitions of two adjacent first transitions, or by the difference between the times of the second transitions of two adjacent second transitions. The flashing frequency of the indicator light is determined based on the flashing period.

2. The method according to claim 1, characterized in that, Acquire the first state image of the vehicle's instrument panel indicator lights at a first moment and the second state images at multiple second moments, including: Acquire a first raw image of the vehicle's instrument panel indicator lights at a first moment and second raw images at multiple second moments. In response to user actions, determine the parameters of the indicator light area. Based on the indicator light area parameters, an image region corresponding to the indicator light area parameters is extracted from the first original image to obtain a first state image. Based on the indicator light area parameters, image regions corresponding to the indicator light area parameters are extracted from each of the second original images to obtain multiple second state images.

3. The method according to claim 1, characterized in that, After determining the on / off state sequence of the indicator light, the method further includes: In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment. In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment. The time interval between the first transition time and the second transition time corresponding to the first transition and the second transition that are sequentially adjacent is determined to obtain the duration of the indicator light's off state within one flashing cycle of the indicator light, wherein the on / off state corresponding to the second identifier is off.

4. The method according to claim 1, characterized in that, After determining the on / off state sequence of the indicator light, the method further includes: In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment. In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment. The time interval between the second transition time and the first transition time corresponding to the sequentially adjacent second transition and the first transition is determined to obtain the lighting duration of the indicator light within one flashing cycle of the indicator light, wherein the on / off state corresponding to the first identifier is on.

5. The method according to any one of claims 1-4, characterized in that, Before determining the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments, the method further includes: The number of elements in the on / off state sequence is determined to be greater than a preset threshold.

6. A device for determining the flashing frequency of an automotive instrument panel indicator light, characterized in that, The device includes: The acquisition unit is used to acquire the first state image of the vehicle's instrument panel indicator lights at a first moment and the second state images at multiple second moments. The recognition unit is configured to convert the first state image into a grayscale image using a grayscale conversion algorithm, perform binarization processing on the grayscale image to obtain a first binarized image, determine the region corresponding to the pixel value satisfying a first preset condition in the first binarized image as the target region, determine the color of the image region in the first state image corresponding to the target region, determine the brightness state of the first state image according to the color and a preset correspondence between color and brightness state, and define the brightness state as the first brightness state of the indicator light at the first moment, wherein the first brightness state includes being on and being off. The difference unit is used to subtract each second state image from the first state image to obtain multiple difference images. The construction unit is configured to determine the on / off state sequence of the indicator light based on the plurality of difference images, the first state image, and the first on / off state of the indicator light at the first moment. The determining unit is used to determine the flashing frequency of the indicator light based on the on / off state sequence and the plurality of second moments; The building unit is specifically used for: For each difference image, perform operations A through F respectively: Operation A: Perform binarization and median filtering on the difference image to obtain a second binarized image. Operation B: Copy the first state image to obtain a copied image. Operation C: Subtract the first state image from the copied image to obtain an image template. Operation D: Based on the normalized correlation coefficient matching algorithm, determine the similarity between the second binarized image and the image template. Operation E: If the similarity satisfies a preset similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is consistent with the first on / off state, and obtain a first identifier to characterize the on / off state of the indicator light corresponding to the second binarized image. Operation F: If it is determined that the similarity does not meet the similarity condition, determine that the on / off state of the indicator light corresponding to the second binarized image is opposite to the first on / off state, and obtain a second identifier to characterize the on / off state of the indicator light corresponding to the second binarized image. Based on the first identifier and the second identifier corresponding to the plurality of difference images, the on / off state sequence of the indicator light is determined; The determining unit is specifically used for: In the on / off state sequence, when the first identifier and the second identifier are adjacent in sequential order, the subsequence formed by the first identifier and the second identifier is taken as the first transition, and the second moment corresponding to the second identifier in the first transition is taken as the first transition moment. In the on / off state sequence, when the second identifier and the first identifier are adjacent in sequence, the subsequence formed by the second identifier and the first identifier is taken as the second transition, and the second moment corresponding to the first identifier in the second transition is taken as the second transition moment. The flicker period is determined by the difference between the times of the first transitions of two adjacent first transitions, or by the difference between the times of the second transitions of two adjacent second transitions. The flashing frequency of the indicator light is determined based on the flashing period.

Citation Information

Patent Citations

  • Indication lamp identifier determining method and positioning method, and positioning system

    CN112033377A

  • Signal lamp image labeling method and device, electronic equipment and roadside equipment

    CN112131414A