A method for generating a control signal of an intelligent signal interaction car light

By automatically generating control signals for intelligent signal interactive headlights using image recognition and processing technology, the problem of automated control of complex headlight patterns is solved, and the control effect and compatibility of interactive lights are improved.

CN117022108BActive Publication Date: 2026-03-31CHANGZHOU XINGYU AUTOMOTIVE LIGHTING SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-17
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies struggle to automate the control of complex light patterns, resulting in poor interactive light control performance.

Method used

Image recognition technology is used to identify the color and brightness of LED beads, establish the correspondence between control signals and LED channels, generate control signal text, and use computer image processing technology to automatically analyze the HSV color space of the lamp pattern, automatically determine the color of the sub-region, and form a one-to-one corresponding control signal group.

Benefits of technology

It achieves stronger compatibility with various lamp types, higher processing efficiency, control signal generation time of less than 100ms, and better result consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117022108B_ABST
    Figure CN117022108B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of intelligent lighting, and belongs to the control technology of vehicle interactive light, in particular to a kind of generation method of intelligent signal interactive vehicle light control signal, comprising the following steps: obtaining lamp type information to form configuration file;The color and brightness of the lamp bead in the lamp type are identified by image recognition technology, which are converted into grayscale image, the corresponding relationship between control signal and LED channel is established, and control signal text is generated;All output files are summarized to generate control signal text.The beneficial effects of the present application are that the color and brightness of the interactive light lamp bead are automatically distinguished by image recognition technology, the input lamp type pattern is automatically identified as a single picture or image sequence, the grayscale value of the binary processed image is identified, and the corresponding control signal group is generated, which has stronger compatibility and higher processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of intelligent lighting technology, specifically to the control technology of vehicle interactive lights, and relates to a method for generating intelligent signal interactive vehicle light control signals. Background Technology

[0002] For a long time, automobiles have served as a means of transportation, evoking a strong sense of mechanical power, but also a cold, impersonal feeling. With the development of electronics and electrification, human-vehicle interaction has become the mainstream of intelligent development.

[0003] To generate control signals for the controller group corresponding to the matrix pattern of intelligent signal interactive lights (hereinafter referred to as interactive lights), existing technologies utilize controllers to control light strips. When the vehicle's state changes, the vehicle's control system sends control commands to the main controller of the light strip, or the main controller sends control commands to the sub-controllers of the light strip. The sub-controllers then control the light strips to turn on and to display different lighting effects or colors according to the control commands.

[0004] Currently, there are a large number of complex light types that can display various intricate patterns, but the aforementioned waiting control method is difficult to adapt to complex light types. Summary of the Invention

[0005] The technical problem to be solved by this invention is that existing technologies have difficulty in achieving automated control of complex light patterns, and the interactive light control effect is poor.

[0006] Therefore, this invention provides a method for generating intelligent signal interaction vehicle light control signals, which improves the compatibility and effectiveness of interactive light control.

[0007] The technical solution adopted by this invention to solve its technical problem is:

[0008] A method for generating intelligent signal interaction vehicle lighting control signals includes the following steps:

[0009] Obtain lamp type information to create a configuration file;

[0010] Image recognition technology is used to identify the color and brightness of the LED beads inside the lamp, convert them into grayscale images, establish the correspondence between control signals and LED channels, and generate control signal text.

[0011] All output files are compiled to generate a control signal text.

[0012] By adopting the above technical solution, the color and brightness of the interactive light beads are automatically determined by image recognition technology, the grayscale value of the binarized image is identified, and the control signal is generated by analyzing it. Thus, corresponding control signals can be generated for various types of interactive lights, and corresponding control signal groups can be generated, which has stronger compatibility and higher processing efficiency.

[0013] Furthermore, when recognizing images, image files are categorized into single image format, animated image format, and video format based on their file extensions. Animated image and video files are decoded into single images. The folder is then traversed, and each image in the folder is processed as a single image.

[0014] By adopting the above technical solution, the system can automatically identify whether the input light pattern is a single image or an image sequence, and generate the corresponding control signal group, which has stronger compatibility and higher processing efficiency.

[0015] Furthermore, the single lamp-shaped pattern image is converted into a single-channel grayscale image, and then the Otsu method is used to obtain the image segmentation threshold, and the grayscale image is binarized.

[0016] Furthermore, the binarized image is eroded to eliminate noise points smaller than the structuring element, and then dilated to fill the holes in the segmented target.

[0017] Furthermore, the processed single-light-type image is divided into sub-regions.

[0018] Furthermore, all contours in the processed image are extracted, and the bounding rectangles of the closed contours are extracted.

[0019] Furthermore, the center point coordinates of the segmented sub-regions are extracted, the HSV at the center point is read to determine the color range to which the light at the center point of the sub-region belongs, and the gray value of the center point of the sub-region on the grayscale image of the light pattern is converted into a control signal of a specified type according to the configured number of bits of the control signal.

[0020] By adopting the above technical solution, image processing technology is used to automatically analyze the HSV color space of the lamp pattern and automatically determine the color of the sub-regions, resulting in a more standardized and consistent outcome.

[0021] Furthermore, the control signal converted from the grayscale of the center point of the lamp pattern sub-region is used to establish a one-to-one correspondence between the sub-region control signal and the lamp channel according to the configured lamp channel number, thereby forming a lamp matrix control signal group arranged according to the channel number.

[0022] Furthermore, the obtained control signal group is written to a CSV or TXT file to form the control signal text output.

[0023] The beneficial effects of this invention are that the time to process a single image and generate a control signal using computer image processing technology is less than 100ms, greatly improving work efficiency. It automatically identifies whether the input light pattern is a single image or an image sequence, generating corresponding control signal groups, resulting in stronger compatibility and higher processing efficiency. By automatically determining the color and brightness of the interactive light beads using image recognition technology, identifying the grayscale values ​​of the binarized image, dividing the light pattern into sub-regions, and using the grayscale value at the center of each sub-region as a benchmark for identification, the invention automatically analyzes the HSV color space of the light pattern using image processing technology, automatically determining the color assignment of the sub-regions, ensuring standardized and consistent results. Attached Figure Description

[0024] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0025] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation

[0026] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0027] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, features defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0028] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0029] A method for generating intelligent signal interaction vehicle lighting control signals includes the following steps:

[0030] Step 1: Create a configuration file and obtain software configuration parameters. The configuration file obtains the LED smart light channel list path, light pattern storage path, control signal bit depth, and number of rows and columns for light pattern display through the vehicle controller.

[0031] Step Two: Automatically identify the color and brightness of the LED beads in the lamp type and establish the correspondence between control signals and LED channels, specifically including:

[0032] S2.1: The controller reads and parses the configuration file to obtain the various configuration parameters in the software file.

[0033] S2.2: Reads the light pattern file from the configured light pattern path location, supporting single image format, animated image format, and video format.

[0034] The file extension distinguishes image formats as single images, animated GIFs, or videos. Animated GIFs and video files are treated as a sequence of images packaged together according to certain specifications. Each image sequence is decoded into individual images according to the decoding specifications and placed in the same folder. The folder is then traversed, and each image within the folder is processed as a single image.

[0035] S2.3: For a single image of a lamp-shaped pattern, first convert the three-channel image into a single-channel grayscale image, then use Otsu's method to obtain the image segmentation threshold, and perform binarization on the grayscale image. The binarized image is then eroded to eliminate noise points smaller than the structuring element; finally, it is dilated to fill in holes in the segmented target.

[0036] S2.4: Use the Canny algorithm to extract all contours of the binarized image.

[0037] First, a Gaussian filter is used to smooth the image. Second, the partial derivatives of the grayscale image along the horizontal direction Gx and the vertical direction Gy are found using the first-order partial derivative operator, and the magnitude and direction of the gradient are calculated. The formula for the magnitude is: The azimuth formula is Then, non-maximum suppression (NMS) is applied to the gradient magnitude to obtain the maximum value of the local gradient. In a 3×3 window, a given pixel P is compared with two pixels along the gradient line direction. If the gradient magnitude of P is less than the gradient magnitude of the two pixels, then P = 0; otherwise, the original magnitude is retained.

[0038] Finally, a dual threshold algorithm is used to detect and connect weak edges. If the gray value of a pixel is greater than the threshold, then the pixel must be an edge pixel (strong edge point), and is set to 255; if the gray value of a pixel is less than the lower threshold, then it is definitely not an edge pixel, and is set to 0; if the gray value of a pixel is greater than the lower threshold but less than the higher threshold, then observe whether there are any pixels in the (3×3)8 neighboring pixels of the pixel that are greater than the higher threshold. If there are, then the pixel is an edge pixel, and is set to 255 to connect strong edge points; otherwise, it is not an edge pixel, and is set to 0.

[0039] Then use findContours to find contours and store them as point vectors. Next, use ContourArea to calculate the area of ​​the stored contours, which is the area of ​​the region enclosed by all the pixels in each contour.

[0040] The area of ​​the contour area is calculated using Green's formula, i.e.

[0041]

[0042] Based on the similarity of the area of ​​the sub-regions controlled by the LED beads, the double threshold method is used to filter out sub-regions that are too small or too large, retain the closed contours that conform to the area range of the sub-regions controlled by the LED beads, and calculate the bounding rectangle of the filtered contours.

[0043] S2.5: For each selected sub-region outline bounding box, calculate the coordinates of the center point of the bounding box and obtain the grayscale value of the corresponding coordinate point on the grayscale image of the lamp pattern. Based on the bit depth of the control signal configured in the configuration file, convert the grayscale value into a control signal with the corresponding bit depth.

[0044] S2.6: According to the valid lighting area configured in the configuration file, obtain the valid units in the sub-region. Automatically parse the HSV color space of the lamp pattern, automatically determine the color of the sub-region, read the channel number corresponding to the different colored lamps configured in the configuration file, and establish a one-to-one correspondence between the valid sub-region units and the channel number.

[0045] S2.7: For an image sequence, if not all images have been processed, continue processing the next image until all images in the sequence have been processed, and obtain the control signal group corresponding to each image.

[0046] S2.8: For a single image, directly write the obtained control signal group to a CSV or TXT file for output, thus completing the automated generation of the control signal group. For an image sequence, write the control signal group corresponding to each image to a CSV or TXT file sequentially according to the order of the image sequence, thus completing the automated generation of the control signal group.

[0047] Step 3: Summarize all the output CSV or TXT files to generate control signal text.

[0048] In summary, the time to generate control signals from a single image using computer image processing technology is less than 100ms, significantly improving work efficiency. It automatically identifies whether the input light pattern is a single image or an image sequence, generating corresponding control signal groups, resulting in stronger compatibility and higher processing efficiency. Furthermore, it automatically analyzes the HSV color space of the light pattern using image processing technology, automatically determining the color assignment of sub-regions, ensuring standardized and consistent results.

[0049] Based on the above-described preferred embodiments of the present invention, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined by the scope of the claims.

Claims

1. A method for generating a control signal for an intelligent signal-interaction vehicle light, characterized by, The method comprises the following steps, Obtaining lamp type information to form a configuration file; Recognizing the color and brightness of the lamp beads in the lamp type through image recognition technology, converting them into a gray scale image, establishing a corresponding relationship between the control signal and the LED channel, and generating a control signal text; All output files are summarized to generate a control signal text; Convert a single lamp type pattern picture into a single channel gray scale image, then use the Otsu method to obtain an image segmentation threshold, and perform binaryzation processing on the gray scale image; Divide the processed single lamp type picture into sub-regions; Extract the center point coordinates of the segmented sub-regions, read the center point at the HSV, judge the color range of the sub-region center point light, and convert the gray scale value of the sub-region center point on the lamp type pattern gray scale image into a specified type of control signal according to the configured control signal bit number.

2. The method of claim 1, wherein the control signal is generated by the smart signal interaction car light. When recognizing the image, the image file is divided into single picture format, animation format and video format according to the suffix name, the animation and video files are decoded into single pictures, the folder is traversed, and each picture in the folder is processed according to the single picture in turn.

3. The method of claim 1, wherein the control signal is generated by the smart signal interaction car light. Erode the binaryzation image to eliminate noise points smaller than the structural elements, and then dilate to fill the holes in the segmentation target.

4. The method of claim 1, wherein the control signal is generated by the smart signal interaction vehicle light. Extract all the contours in the processed picture, and extract the circumscribed rectangle frame of the closed contour.

5. The method of claim 4, wherein the control signal is generated by the smart signal interaction car light. Convert the control signal obtained by the gray scale of the center point of the lamp type pattern sub-region into a control signal according to the configured lamp bead channel number, establish a one-to-one correspondence between the sub-region control signal and the lamp bead channel, and thus form a lamp bead matrix control signal group arranged according to the channel number.

6. The method of claim 5, wherein the control signal is generated by the smart signal interaction car light. Write the obtained control signal group to a CSV or TXT file to form a control signal text output.

Citation Information

Patent Citations

  • Outdoor LED screen adaptation method, equipment and medium

    CN114374456A

  • Pixelized vehicle lamp control method and device, medium and electronic equipment

    CN115376449A