Matrix headlamp LED lamp bead detection method and device, medium and equipment

Through image processing technology, the image of the matrix headlight and the area ratio of the external rectangular frame are used to solve the problem of difficulty in detecting LED lamp beads in the matrix headlight and achieve high-precision and fast detection results.

CN118533844APending Publication Date: 2024-08-23CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410795866.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The irregular arrangement, inconsistent size, shape and brightness of hundreds of LED lamp beads in matrix headlights make detection difficult. In particular, unlit lamp beads create false images through lit lamp beads, making it difficult to detect accurately.

Method used

By acquiring the image of the matrix headlight, using an external rectangular frame to mark the image to be measured, and calculating the area ratio of the selected area to determine the status of the lamp bead, including normal and abnormal status, combined with grayscale, binarization, filtering and closed operations and other image processing technologies to automatically detect the quality of lamp beads and the integrity of programming patterns.

Benefits of technology

It achieves high-precision and fast matrix headlight LED lamp bead detection, with fast detection speed, simple structure, strong stability, and is suitable for various test products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533844A
    Figure CN118533844A
Patent Text Reader

Abstract

The invention discloses a matrix headlamp LED lamp bead detection method. The method comprises the steps that a headlamp image of a to-be-detected matrix headlamp is acquired; marking the headlamp images of the to-be-detected matrix headlamp by using a plurality of external rectangular frames pre-calibrated by the headlamp images of the reference matrix to obtain a plurality of frame selection areas; the area of the area meeting the gray condition in the frame selection area and the area of the frame selection area are obtained, the state of the lamp bead is determined according to the ratio of the area of the area meeting the gray condition and the area of the frame selection area so as to complete detection of the lamp bead, and the state comprises the normal state and the abnormal state. According to the method for detecting the LED lamp beads of the matrix headlamp, the problems that the quality and the number of the LED lamp beads of the matrix headlamp and whether the programming pattern of the headlamp is correct and complete or not are automatically detected through the external camera, the detection precision is high, the detection speed is high, the detection structure is simple and stable, the robustness is high, and the method can be quickly adapted to various test products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of LED detection technology, and specifically to a method, device, equipment and apparatus for detecting matrix headlight LED lamp beads. Background Art

[0002] Matrix headlights (ISD) have hundreds of LED beads arranged in a compact manner. Due to various faults, some of the beads cannot be lit. At the same time, the light of the intact beads will shine through the unlit beads, creating a false impression that the beads are intact, making it difficult to detect the unlit beads. In addition, the hundreds of beads in the matrix headlight are arranged irregularly, the size, shape, position, and brightness of the beads are inconsistent, the LED beads are not arranged on the same horizontal plane, and the headlight programming pattern presented by the combination of beads is irregular. All of these will lead to the problem of difficulty in detecting LED matrix headlights. Summary of the invention

[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide a matrix headlight LED lamp bead detection method, device, medium and equipment to solve at least one defect in the prior art.

[0004] To achieve the above objectives and other related objectives, the present application provides a method for detecting matrix headlight LED lamp beads, the detection method comprising:

[0005] Obtain the headlight image of the matrix headlight to be tested;

[0006] Marking the headlight image of the matrix headlight to be tested by using a plurality of circumscribed rectangular frames pre-calibrated on the headlight image of the reference matrix to obtain a plurality of frame selection areas;

[0007] Obtain the area of ​​the first region and the area of ​​the second region; wherein the area of ​​the first region represents the area of ​​the region in the framed region that meets the grayscale condition, and the area of ​​the second region is the area of ​​the framed region;

[0008] The state of the lamp bead is determined based on the ratio of the area of ​​the first region to the area of ​​the second region of the framed region to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state.

[0009] In one embodiment of the present invention, the grayscale condition is that the grayscale value in the framed area is greater than a set grayscale threshold.

[0010] In one embodiment of the present invention, determining the state of the lamp bead based on the ratio of the area of ​​the first region to the area of ​​the second region includes:

[0011] When the ratio of the area of ​​the first region to the area of ​​the second region is greater than a set value, the state of the lamp bead is normal; when the ratio of the area of ​​the first region to the area of ​​the second region is less than a set value, the state of the lamp bead is abnormal.

[0012] In one embodiment of the present invention, the method further includes:

[0013] When the state of the lamp bead is normal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a first manner; when the state of the lamp bead is abnormal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a second manner.

[0014] In one embodiment of the present invention, the method for determining the circumscribed rectangular frame includes:

[0015] Acquire a headlight image of a reference matrix headlight;

[0016] Based on the headlight image of the reference matrix headlight, determining the area where the lamp beads are located;

[0017] Performing grayscale processing on the area where the lamp beads are located to obtain a first grayscale image;

[0018] Binarizing the first grayscale image to separate the lamp beads from the background to obtain a first binary image;

[0019] Performing filtering, noise reduction and normalization processing on the first binary image to obtain a first normalized image;

[0020] Performing a closing operation or an opening operation on the first normalized image or performing an opening operation or a closing operation on the first normalized image to obtain a lamp bead area image;

[0021] A circumscribed rectangular frame of the lamp bead area is determined according to the lamp bead area image.

[0022] In one embodiment of the present invention, before the step of obtaining the area of ​​a first region of the region satisfying the grayscale condition in the framed region, the method further includes:

[0023] Gray-scale the image of the framed area to obtain a second gray-scale image;

[0024] Binarizing the second grayscale image to obtain a second binary image;

[0025] The second binary image is subjected to noise reduction processing and normalization processing to obtain a second normalized image.

[0026] In one embodiment of the present invention, the method further includes:

[0027] Get the number of abnormal lamp beads whose status is abnormal;

[0028] Determine the state of the matrix headlight according to the number of abnormal lamp beads, the state of the matrix headlight including a normal state and an abnormal state;

[0029] When the number of abnormal lamp beads is greater than the set number of lamp beads, the state of the matrix headlight is an abnormal state; when the number of abnormal lamp beads is less than or equal to the set number of lamp beads, the state of the matrix headlight is a normal state.

[0030] In order to achieve the above-mentioned purpose and other related purposes, the present application provides a detection device for matrix headlight lamp beads, the detection device comprising:

[0031] An image acquisition module, used to acquire a headlight image of the matrix headlight to be tested;

[0032] An image calibration module, used for marking the headlight image of the matrix headlight to be tested by using a plurality of external rectangular frames pre-calibrated on the headlight image of the reference matrix, to obtain a plurality of frame selection areas;

[0033] An area calculation module, used to obtain the area of ​​a first region and the area of ​​a second region; wherein the area of ​​the first region represents the area of ​​a region in the framed region that meets the grayscale condition, and the area of ​​the second region is the area of ​​the framed region;

[0034] A state determination module is used to determine the state of the lamp bead based on the ratio of the area of ​​the first area to the area of ​​the second area of ​​the framed area to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state.

[0035] To achieve the above objectives and other related objectives, the present application provides a device, including:

[0036] one or more processors; and

[0037] The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the memory implements the method described.

[0038] To achieve the above objectives and other related objectives, the present application provides one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the described methods.

[0039] As described above, the present application provides a matrix headlight LED lamp bead detection method, device, medium and equipment, which have the following beneficial effects:

[0040] A matrix headlight LED lamp bead detection method of the present application includes: obtaining a headlight image of a matrix headlight to be tested; marking the headlight image of the matrix headlight to be tested with an external rectangular frame pre-calibrated with the headlight image of a reference matrix to obtain multiple framed areas; obtaining a first area area and a second area area; wherein the first area area represents the area of ​​the area in the framed area that meets the grayscale condition, and the second area area is the area of ​​the framed area; determining the state of the lamp bead based on the ratio of the first area area to the second area area of ​​the framed area to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state. A matrix headlight LED lamp bead detection method of the present application automatically detects the quality and quantity of the LED lamp beads of the matrix headlight and whether the programming pattern of the headlight is correct and complete through an external camera. It has high detection accuracy and fast detection speed, and the detection structure is simple, stable, and robust, and can be quickly adapted to various test products.

[0041] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 This is a flow chart of a method for detecting LED lamp beads of a matrix headlight according to an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the arrangement of a matrix headlight and an external camera according to an embodiment of the present application;

[0045] Figure 3 A flowchart of a method for obtaining a bounding rectangular frame according to an embodiment of the present application;

[0046] Figure 4 This is a block diagram of a matrix headlight LED lamp bead detection device according to an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing the memory of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0048] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0049] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0050] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0051] See also Figure 1 , Figure 1 This is a flow chart of a method for detecting matrix headlight LED beads according to an embodiment of the present application. Figure 1 As shown, the matrix headlight LED lamp bead detection method at least includes steps S110 to S140:

[0052] Step S110, obtaining a headlight image of the matrix headlight to be tested;

[0053] In the embodiment of the present application, the headlight image of the matrix headlight to be tested can be obtained by shooting with an external camera. Before shooting the headlight image of the matrix headlight, it is necessary to set the parking position of the vehicle, the position of the external camera, and the posture of the camera shooting position. Park the vehicle at a fixed position and set the camera. The position relationship between the camera and the vehicle is as follows: Figure 2 As shown. The camera is located 60cm from the left or right front of the vehicle (if the left headlight is detected, the camera is placed at the left front of the vehicle; if the right headlight is detected, the camera is placed at the right front of the vehicle), and the height is roughly flush with the lower edge of the headlight. Adjust the camera to a 45-degree upward shooting angle, adjust the aperture to the minimum, adjust the exposure to 30000ms, gain 20, and adjust the camera focal length to ensure that every lamp bead can be captured. Of course, the position of the camera, the position relationship between the camera and the vehicle, and the camera shooting parameters can be set according to actual needs.

[0054] It should be noted that when detecting whether the vehicle has stopped at the designated position, a sensor may be used for detection, such as a light sensor, a position sensor, etc.

[0055] Step S120, marking the headlight image of the matrix headlight to be tested by using a plurality of circumscribed rectangular frames pre-calibrated on the headlight image of the reference matrix to obtain a plurality of framed areas;

[0056] It should be noted that the reference matrix headlight is a qualified matrix headlight, that is, every LED lamp bead in the matrix headlight is qualified. When testing the matrix headlight to be tested, when the sensor detects that the vehicle has stopped at the specified position, it automatically triggers the PC to send a diagnostic command to the vehicle to light up all the lamp beads and trigger the camera to take a photo; read the center coordinates and length and width of the pre-calibrated external rectangular frame to determine the position of the external rectangular frame, and use the external rectangular frame to mark the headlight image of the matrix headlight to be tested.

[0057] See also Figure 3 , Figure 3 This is a flow chart of a method for obtaining an external rectangular frame according to an embodiment of the present application. Figure 3 The method for determining the circumscribed rectangular frame includes:

[0058] Step S310, acquiring a headlight image of a reference matrix headlight;

[0059] Before taking a picture of the reference matrix headlight with an external camera, refer to Figure 2 Adjust the position of the camera and the entire vehicle, send diagnostic instructions through the software to light up all the lamp beads, and then use an external camera to take a picture of the reference matrix headlight to obtain the headlight image of the reference matrix headlight.

[0060] Step S320, determining the area where the lamp beads are located based on the headlight image of the reference matrix headlight;

[0061] After obtaining the headlight image of the reference matrix headlight, the region where the lamp beads are located is determined in the reference matrix headlight image. Specifically, the region where the lamp beads are located can be selected manually.

[0062] Step S330, grayscale processing is performed on the area where the lamp beads are located to obtain a first grayscale image;

[0063] Image grayscale is the process of converting a color image into a grayscale image. In a grayscale image, each pixel contains only one grayscale value, rather than the three channels of red, green and blue in a color image. A grayscale image only contains brightness information, but no color information. Image grayscale processing includes but is not limited to weighted average method, average method, maximum and minimum method, component method, and improved weighted average method. The specific grayscale processing method will not be described in detail here.

[0064] Step S340, performing binarization processing on the first grayscale image to separate the lamp beads and the background to obtain a first binarized image;

[0065] Binarization is a method of image segmentation. When binarizing an image, the grayscale of pixels greater than a certain critical grayscale value is set to the grayscale maximum value, and the grayscale of pixels less than this value is set to the grayscale minimum value, thereby achieving binarization, so that the lamp beads can be distinguished from the background.

[0066] It should be noted that, according to the different threshold selection, the binarization algorithm is divided into fixed threshold and adaptive threshold. The more commonly used binarization methods are: bimodal method, P parameter method, iteration method and OTSU method, etc. The specific binarization methods are not described here.

[0067] Step S350, performing filtering, noise reduction and normalization processing on the first binary image to obtain a first normalized image;

[0068] In the embodiment of the present application, small interference points in the image are eliminated by filtering, denoising and normalizing the image.

[0069] Step S360, performing a closing operation or an opening operation on the first normalized image or performing an opening operation or a closing operation on the first normalized image to obtain a lamp bead area image;

[0070] The basic process of opening operation is erosion first, then dilation. The content in the image is first eroded, and the originally finer and smaller content will disappear. Only the larger content will show a decrease in range around the center point, but will not disappear. Then, after the dilation operation, the remaining content will show an increase in range around the center point. The final result is that the originally finer and smaller content will be eliminated, while the larger content will be retained.

[0071] The basic process of the closing operation is to expand first and then erode. The content in the image is first expanded, not only the area of ​​the original larger content will be enlarged, but also the thinner and smaller content will be enlarged, and all the content in the image will be enlarged; then after the erosion operation, the content in the image will appear to be reduced, but the connected content in the previous expansion operation will not disappear easily, but will be preserved; the final result is that most of the content in the original image will be preserved, and it is easier to form a unified whole.

[0072] In the embodiment of the present application, a closing operation is used to close small cracks, and an opening operation is used to separate them, so that each lamp bead can be isolated, thereby obtaining a lamp bead area image.

[0073] Step S370, determining a circumscribed rectangular frame of the lamp bead area according to the lamp bead area image.

[0074] After ensuring that all lamp beads are separated, wrap each lamp bead with an external rectangular frame and record the center coordinates and length and width data of each rectangle.

[0075] It should be noted that the outer rectangular frame may refer to the smallest outer rectangular corresponding to the LED lamp bead area image. It should be noted that the outer rectangular frame wraps the lamp bead area, the range formed by the outer rectangular frame is larger than the range of the lamp bead area, and each outer rectangular frame corresponds to a selected area.

[0076] Step S130, obtaining the area of ​​the first region and the area of ​​the second region; wherein the area of ​​the first region represents the area of ​​the region that meets the grayscale condition in the framed region, and the area of ​​the second region is the area of ​​the framed region;

[0077] In the embodiment of the present application, the grayscale condition is that the grayscale value in the framed area is greater than the set grayscale threshold. The area of ​​the first region represents the area of ​​the framed area where the grayscale value is greater than the set grayscale threshold, and the area of ​​the second region represents the area of ​​the framed area of ​​the circumscribed rectangular frame. It should be noted that the grayscale threshold can be set according to specific needs, and this embodiment does not limit the set grayscale value. In one embodiment, the grayscale threshold can be set to 190.

[0078] Step S140, determining the state of the lamp bead based on the ratio of the area of ​​the first region to the area of ​​the second region of the framed region to complete the detection of the lamp bead, wherein the state includes a normal state and an abnormal state.

[0079] In the embodiment of the present application, determining the state of the lamp bead based on the ratio of the area of ​​the first region to the area of ​​the second region includes:

[0080] When the ratio of the area of ​​the first region to the area of ​​the second region is greater than a set value, the state of the lamp bead is normal; when the ratio of the area of ​​the first region to the area of ​​the second region is less than a set value, the state of the lamp bead is abnormal.

[0081] Specifically, s1 represents the area of ​​the first region that meets the grayscale condition, s2 represents the area of ​​the selected region of the circumscribed rectangular frame, and whiteRatio represents the ratio of the area of ​​the first region to the area of ​​the second region, that is, whiteRatio = s1 / s2; when whiteRatio is greater than the set value, the state of the lamp bead is considered to be normal, otherwise it is considered to be abnormal. It should be noted that the value of whiteRatio can be set according to the specific situation, which will not be described here. In one embodiment, whiteRatio can be 0.6.

[0082] In an embodiment of the present application, the method further includes:

[0083] When the state of the lamp bead is normal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a first manner; when the state of the lamp bead is abnormal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a second manner.

[0084] It should be noted that the first mode and the second mode may refer to displaying in different colors or displaying in different patterns. In the embodiment of the present application, the first mode and the second mode may be displayed in different colors. When the lamp bead is in a normal state, the corresponding circumscribed rectangular frame is marked as green and written into the original image. When the lamp bead state is in an abnormal state, the corresponding circumscribed rectangular frame is set to red.

[0085] In the embodiment of the present application, before the step of obtaining the area of ​​the first region of the region satisfying the grayscale condition in the frame selection region, the detection method further includes:

[0086] Graying the image of the framed area to obtain a second graying image; binarizing the second graying image to obtain a second binarized image; and performing noise reduction and normalization processing on the second binarized image to obtain a second normalized image.

[0087] It should be noted that the grayscale, binarization, noise reduction and normalization processing of the image can refer to the aforementioned embodiments, which will not be repeated here.

[0088] In an embodiment of the present application, the method further includes:

[0089] Get the number of abnormal lamp beads whose status is abnormal;

[0090] The state of the matrix headlight is determined according to the number of abnormal lamp beads, and the state of the matrix headlight includes a normal state and an abnormal state; when the number of abnormal lamp beads is greater than the set number of lamp beads, the state of the matrix headlight is an abnormal state; when the number of abnormal lamp beads is less than or equal to the set number of lamp beads, the state of the matrix headlight is a normal state.

[0091] It should be noted that the value of the number of lamp beads can be set according to actual needs. For example, it can be set to 1, that is, when the state of one lamp bead is abnormal, the state of the entire matrix headlight is also abnormal.

[0092] It should be noted that the headlight image of the matrix headlight can be an image of overall lighting, or it can be a programmed pattern presented by partial lighting. When determining the state of the lamp beads presenting the programmed pattern, you can refer to the aforementioned embodiment to determine the state of the matrix headlight according to the number of abnormal lamp beads, which will not be repeated here.

[0093] In the present application, the headlight image of the matrix headlight to be tested is marked by an external rectangular frame to obtain multiple framed areas; the area of ​​the first area in the framed area that meets the grayscale condition is obtained; the state of the lamp beads is determined based on the ratio of the area of ​​the first area to the area of ​​the second area of ​​the framed area to complete the detection of the lamp beads, and the state includes a normal state and an abnormal state; in this way, the quality and quantity of the LED lamp beads of the matrix headlights, and whether the programming pattern of the headlights is correct and complete are automatically detected through an external camera, and the detection accuracy is high, the detection speed is fast, and the detection structure is simple, stable, and robust, and can be quickly adapted to various test products.

[0094] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0095] Figure 4 It is a block diagram of a matrix headlight LED lamp bead detection device shown in an exemplary embodiment of the present application.

[0096] like Figure 4 As shown, a matrix headlight LED lamp bead detection device includes:

[0097] An image acquisition module 410 is used to acquire a headlight image of the matrix headlight to be tested;

[0098] An image calibration module 420 is used to mark the headlight image of the matrix headlight to be tested by using a plurality of circumscribed rectangular frames pre-calibrated on the headlight image of the reference matrix to obtain a plurality of frame selection areas;

[0099] An area calculation module 430 is used to obtain the area of ​​a first region and the area of ​​a second region; wherein the area of ​​the first region represents the area of ​​a region in the framed region that meets the grayscale condition, and the area of ​​the second region is the area of ​​the framed region;

[0100] The state determination module 440 is used to determine the state of the lamp bead based on the ratio of the area of ​​the first area to the area of ​​the second area of ​​the framed area to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state.

[0101] In the embodiment of the present application, the grayscale condition is that the grayscale value in the selected area is greater than a set grayscale threshold.

[0102] In an embodiment of the present application, the state determination module determines the state of the lamp bead based on the ratio of the area of ​​the first area to the area of ​​the second area. When the ratio of the area of ​​the first area to the area of ​​the second area is greater than a set value, the state of the lamp bead is a normal state; when the ratio of the area of ​​the first area to the area of ​​the second area is less than the set value, the state of the lamp bead is an abnormal state.

[0103] In an embodiment of the present application, when the state of the lamp bead is normal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a first manner; when the state of the lamp bead is abnormal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a second manner.

[0104] In an embodiment of the present application, an image calibration module is used to obtain a headlight image of a reference matrix headlight; based on the headlight image of the reference matrix headlight, determine the area where the lamp beads are located; grayscale the area where the lamp beads are located to obtain a first grayscale image; binarize the first grayscale image to separate the lamp beads and the background to obtain a first binary image; filter, denoise and normalize the first binary image to obtain a first normalized image; close or open the first normalized image or open or close the first normalized image to obtain a lamp bead area image; determine an circumscribed rectangular frame of the lamp bead area based on the lamp bead area image.

[0105] In an embodiment of the present application, before the step of obtaining the area of ​​the first region of the region in the framed area that meets the grayscale condition, the image of the framed area is grayscaled to obtain a second grayscale image; the second grayscale image is binarized to obtain a second binarized image; and the second binarized image is denoised and normalized to obtain a second normalized image.

[0106] In an embodiment of the present application, a state determination module is used to obtain the number of abnormal lamp beads whose state is abnormal; determine the state of the matrix headlight according to the number of abnormal lamp beads, and the state of the matrix headlight includes a normal state and an abnormal state; when the number of abnormal lamp beads is greater than the set number of lamp beads, the state of the matrix headlight is an abnormal state; when the number of abnormal lamp beads is less than or equal to the set number of lamp beads, the state of the matrix headlight is a normal state.

[0107] It should be noted that the matrix headlight LED lamp bead detection device provided in the above embodiment and the matrix headlight LED lamp bead detection method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In actual application, the matrix headlight LED lamp bead detection device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0108] An embodiment of the present application also provides a device, including: one or more processors; and a memory for storing one or more programs. When the one or more programs are executed by one or more processors, the memory implements the matrix headlight LED lamp bead detection method in the above embodiment.

[0109] The embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, enable the processors to execute the matrix headlight LED lamp bead detection method in the above-mentioned embodiments.

[0110] Figure 5 The schematic diagram of the structure of a computer system suitable for implementing the memory of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system of the memory shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0111] like Figure 5As shown, the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM), such as the method in the above embodiment. In the RAM, various programs and data required for system operation are also stored. The CPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.

[0112] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that a computer program read therefrom is installed into the storage part as needed.

[0113] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, the computer program including a computer program for executing the process. Figure 3 The computer program of the matrix headlight LED lamp bead detection method shown. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), various functions defined in the system of the present application are executed.

[0114] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0115] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0117] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the aforementioned matrix headlight LED lamp bead detection method. The computer-readable storage medium may be included in the memory described in the above embodiment, or may exist independently without being assembled into the memory.

[0118] Another aspect of the present application further provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the matrix headlight LED lamp bead detection method provided in each of the above embodiments.

[0119] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for detecting matrix headlight beads, characterized in that: The detection method comprises: Obtain the headlight image of the matrix headlight to be tested; Marking the headlight image of the matrix headlight to be tested by using a plurality of circumscribed rectangular frames pre-calibrated on the headlight image of the reference matrix to obtain a plurality of frame selection areas; Obtain the area of ​​the first region and the area of ​​the second region; wherein the area of ​​the first region represents the area of ​​the region in the framed region that meets the grayscale condition, and the area of ​​the second region is the area of ​​the framed region; The state of the lamp bead is determined based on the ratio of the area of ​​the first region to the area of ​​the second region to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state.

2. The method for detecting matrix headlight beads according to claim 1, characterized in that: The grayscale condition is that the grayscale value in the selected area is greater than a set grayscale threshold.

3. The method for detecting matrix headlight beads according to claim 1, characterized in that: Determining the state of the lamp bead based on the ratio of the area of ​​the first region to the area of ​​the second region includes: When the ratio of the area of ​​the first region to the area of ​​the second region is greater than a set value, the state of the lamp bead is normal; when the ratio of the area of ​​the first region to the area of ​​the second region is less than a set value, the state of the lamp bead is abnormal.

4. The method for detecting matrix headlight beads according to claim 1 or 3, characterized in that: The method further comprises: When the state of the lamp bead is normal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a first manner; when the state of the lamp bead is abnormal, the circumscribed rectangular frame corresponding to the lamp bead is marked in a second manner.

5. The method for detecting matrix headlight beads according to claim 1, characterized in that: The method for determining the circumscribed rectangular frame includes: Acquire a headlight image of a reference matrix headlight; Based on the headlight image of the reference matrix headlight, determining the area where the lamp beads are located; Performing grayscale processing on the area where the lamp beads are located to obtain a first grayscale image; Binarizing the first grayscale image to separate the lamp beads from the background to obtain a first binary image; Performing filtering, noise reduction and normalization processing on the first binary image to obtain a first normalized image; Performing a closing operation or an opening operation on the first normalized image or performing an opening operation or a closing operation on the first normalized image to obtain a lamp bead area image; A circumscribed rectangular frame of the lamp bead area is determined according to the lamp bead area image.

6. The method for detecting matrix headlight beads according to claim 1, characterized in that: Before the step of obtaining the area of ​​a first region of the region satisfying the grayscale condition in the framed region, the method further includes: Gray-scale the image of the framed area to obtain a second gray-scale image; Binarizing the second grayscale image to obtain a second binary image; The second binary image is subjected to noise reduction processing and normalization processing to obtain a second normalized image.

7. The method for detecting matrix headlight beads according to claim 1, characterized in that: The method further comprises: Get the number of abnormal lamp beads whose status is abnormal; Determine the state of the matrix headlight according to the number of abnormal lamp beads, the state of the matrix headlight including a normal state and an abnormal state; When the number of abnormal lamp beads is greater than the set number of lamp beads, the state of the matrix headlight is an abnormal state; when the number of abnormal lamp beads is less than or equal to the set number of lamp beads, the state of the matrix headlight is a normal state.

8. A detection device for matrix headlight beads, characterized in that: The detection device comprises: An image acquisition module, used to acquire a headlight image of the matrix headlight to be tested; An image calibration module, used for marking the headlight image of the matrix headlight to be tested by using a plurality of external rectangular frames pre-calibrated on the headlight image of the reference matrix, to obtain a plurality of frame selection areas; An area calculation module, used to obtain the area of ​​a first region and the area of ​​a second region; wherein the area of ​​the first region represents the area of ​​a region in the framed region that meets the grayscale condition, and the area of ​​the second region is the area of ​​the framed region; A state determination module is used to determine the state of the lamp bead based on the ratio of the area of ​​the first area to the area of ​​the second area of ​​the framed area to complete the detection of the lamp bead, and the state includes a normal state and an abnormal state.

9. A device, characterized in that: include: one or more processors; and A memory, used to store one or more programs, when the one or more programs are executed by the one or more processors, the memory implements the method according to any one of claims 1 to 7.

10. A machine-readable medium, characterized in that Instructions are stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • ADB headlamp optical performance detection method, system and equipment based on frequency domain

    CN119164613A