CN113538343A - Matrix vehicle lamp correction method and device, electronic equipment and storage medium - Google Patents

Matrix vehicle lamp correction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113538343A
CN113538343A CN202110718611.XA CN202110718611A CN113538343A CN 113538343 A CN113538343 A CN 113538343A CN 202110718611 A CN202110718611 A CN 202110718611A CN 113538343 A CN113538343 A CN 113538343A
Authority
CN
China
Prior art keywords
vehicle lamp
target
matrix
lamp
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110718611.XA
Other languages
Chinese (zh)
Other versions
CN113538343B (en
Inventor
白鹏飞
李世晓
覃元锋
金名亮
张新觉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Huoding Technology Co ltd
Original Assignee
Guangdong Huoding Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Huoding Technology Co ltd filed Critical Guangdong Huoding Technology Co ltd
Priority to CN202110718611.XA priority Critical patent/CN113538343B/en
Priority claimed from CN202110718611.XA external-priority patent/CN113538343B/en
Publication of CN113538343A publication Critical patent/CN113538343A/en
Application granted granted Critical
Publication of CN113538343B publication Critical patent/CN113538343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • G06T2207/30252Vehicle exterior; Vicinity of vehicle

Abstract

The invention discloses a matrix car lamp correction method, a matrix car lamp correction device, electronic equipment and a storage medium, and relates to the technical field of automatic control, wherein the matrix car lamp correction method comprises the following steps: acquiring a target judging area of a matrix vehicle lamp, and acquiring a vehicle lamp light type image corresponding to the target judging area; acquiring the brightness of a target vehicle lamp according to the vehicle lamp light type image; comparing the target vehicle lamp brightness with a preset vehicle lamp brightness, and matching the vehicle lamp light type image with a preset image mask if the target vehicle lamp brightness is less than or equal to the preset vehicle lamp brightness; if the light type image of the car lamp is consistent with the preset image mask, acquiring a boundary rectangle of a light source according to the light type image of the car lamp; and correcting the target discrimination area according to the boundary rectangle. The matrix car lamp correction method can automatically calibrate the camera identification area, and improves the installation efficiency and the control accuracy of the intelligent matrix car lamp.

Description

Matrix vehicle lamp correction method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of automatic control, in particular to a matrix car lamp correction method, a matrix car lamp correction device, electronic equipment and a storage medium.
Background
The intelligent matrix vehicle light comprises a light beam matrix consisting of individually activatable light-emitting diodes, the matrix of the low beam headlamp contains 48 LED point light sources, while the matrix of the high beam headlamp has 27 LED point light sources, in addition to which the matrix headlamp has other various LED point light sources including short-range lighting and signaling functions (daytime running light, turn light, position light and dynamic steering indicator light). A plurality of lighting subareas are arranged on the matrix car lamp, and the LED lamp beads in each subarea can be turned on and off under the control of a computer and are used for adjusting the brightness, so that the functions of automatic switching of the headlights, automatic switching of the high and low beams, anti-dazzling high and low beams, automatic adjustment of the irradiation height and the like are realized, the dazzling of the vehicles at the opposite side caused by meeting or close-distance following can be avoided, and the driving at night is easier and safer.
With the continuous popularization of the intelligent matrix vehicle lamp, the intelligent matrix vehicle lamp control system brings much inconvenience in installation, and particularly when a camera is installed, the installation position and the shooting angle are horizontally deviated, so that the deviation between a target area recognized by the intelligent control system and a corresponding vehicle lamp control area is caused, and the control of the vehicle lamp control system on the matrix vehicle lamp is influenced.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the embodiment of the invention provides a matrix car lamp correction method, and by executing the matrix car lamp correction method in the embodiment of the first aspect of the invention, the camera identification area can be automatically calibrated, and the installation efficiency and the control accuracy of the intelligent matrix car lamp are improved.
The embodiment of the invention also provides a matrix car lamp correcting device.
The embodiment of the invention also provides the electronic equipment.
The embodiment of the invention also provides a computer readable storage medium.
According to the matrix car lamp correction method of the embodiment of the first aspect of the invention, the matrix car lamp correction method comprises the following steps:
acquiring a target judging area of a matrix vehicle lamp, and acquiring a vehicle lamp light type image corresponding to the target judging area;
acquiring the brightness of a target vehicle lamp according to the vehicle lamp light type image;
comparing the target vehicle lamp brightness with a preset vehicle lamp brightness, and matching the vehicle lamp light type image with a preset image mask if the target vehicle lamp brightness is less than or equal to the preset vehicle lamp brightness;
if the light type image of the car lamp is consistent with the preset image mask, acquiring a boundary rectangle of a light source according to the light type image of the car lamp;
and correcting the target discrimination area according to the boundary rectangle.
The matrix vehicle lamp correction method according to the embodiment of the first aspect of the invention has at least the following beneficial effects: through the shape and the positional information of the matrix car light of automatic acquisition car self, distinguish regional automatic calibration carrying out to intelligent car light control system's array, judge regional coordinate through the border calibration intelligent car light control system car light of light promptly, let car light control system differentiate regional with the actual lighting area of matrix car light accord with, can distinguish regional automatic calibration carrying out to the camera, improve the installation effectiveness and the control accuracy to intelligent matrix car light.
According to some embodiments of the invention, the correcting the target discrimination region according to the bounding rectangle comprises: acquiring a left boundary abscissa and a right boundary abscissa of the boundary rectangle; and correcting the abscissa of the target discrimination area according to the left boundary abscissa and the right boundary abscissa.
According to some embodiments of the invention, after the correcting the target discrimination region according to the boundary rectangle, the method further comprises: storing the corrected abscissa of the target discrimination area; and executing the step of acquiring the target distinguishing area of the matrix vehicle lamp.
According to some embodiments of the invention, the obtaining a target vehicle light brightness from the vehicle light pattern image comprises: acquiring a color space image according to the light type image of the car lamp; and extracting the brightness of the target vehicle lamp according to the color space image.
According to some embodiments of the present invention, after the matching the light pattern image of the vehicle lamp with a preset image mask if the target vehicle lamp brightness is less than or equal to the preset vehicle lamp brightness, the method further includes: and if the brightness of the target vehicle lamp is greater than the preset vehicle lamp brightness, executing the step of obtaining the target judgment area of the matrix vehicle lamp.
According to some embodiments of the present invention, after obtaining a boundary rectangle of a light source according to the car light type image if the car light type image is consistent with the preset image mask, the method further includes: and if the light type image of the vehicle lamp is not consistent with the preset image mask, executing the step of acquiring the target judgment area of the matrix vehicle lamp.
According to some embodiments of the present invention, the obtaining a target discrimination area of a matrix vehicle lamp includes: acquiring a preset judging column number of the matrix car lamp; dividing the matrix car lamp into a plurality of preset judging areas according to the preset judging column number; and selecting the target discrimination area from the plurality of preset discrimination areas.
According to a second aspect embodiment of the invention, a matrix vehicle lamp correction device comprises:
the first acquisition module is used for acquiring a target judgment area of the matrix vehicle lamp and acquiring a vehicle lamp light type image corresponding to the target judgment area;
the second acquisition module is used for acquiring the brightness of the target vehicle lamp according to the vehicle lamp light type image;
the comparison module is used for comparing the target vehicle lamp brightness with a preset vehicle lamp brightness, and if the target vehicle lamp brightness is smaller than or equal to the preset vehicle lamp brightness, the vehicle lamp light type image is matched with a preset image mask;
the third obtaining module is used for obtaining a boundary rectangle of a light source according to the car light type image if the car light type image is consistent with the preset image mask;
and the correction module is used for correcting the target judgment area according to the boundary rectangle.
The matrix vehicle lamp correction device according to the embodiment of the second aspect of the invention has at least the following beneficial effects: by executing the matrix vehicle lamp correction method disclosed by the embodiment of the first aspect of the invention, the camera identification area can be automatically calibrated, and the installation efficiency and the control accuracy of the intelligent matrix vehicle lamp are improved.
An electronic device according to an embodiment of the third aspect of the invention includes: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions that are executed by the at least one processor, so that the at least one processor, when executing the instructions, implements the matrix headlight correction method of the first aspect.
According to the electronic device of the embodiment of the third aspect of the invention, at least the following beneficial effects are achieved: by executing the matrix vehicle lamp correction method provided by the embodiment of the first aspect of the invention, the camera identification area can be automatically calibrated, and the installation efficiency and the control accuracy of the intelligent matrix vehicle lamp are improved.
According to the fourth aspect of the invention, the storage medium stores computer-executable instructions for causing a computer to execute the matrix vehicle lamp correction method of the first aspect.
The computer-readable storage medium according to the fourth aspect of the present invention has at least the following advantages: by executing the matrix vehicle lamp correction method provided by the embodiment of the first aspect of the invention, the camera identification area can be automatically calibrated, and the installation efficiency and the control accuracy of the intelligent matrix vehicle lamp are improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart of a matrix vehicle lamp calibration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a relationship between a matrix vehicle lamp projection and an initial determination region according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a matrix vehicle lamp projection and an initial determination region shift structure according to an embodiment of the present invention;
FIG. 4A is a schematic structural diagram of a matrix vehicular lamp projection and target discrimination area according to an embodiment of the present invention;
FIG. 4B is a schematic structural diagram of a matrix vehicular lamp projection and target discrimination area according to another embodiment of the present invention;
FIG. 4C is a schematic structural diagram of a matrix vehicular lamp projection and target discrimination area according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a matrix vehicle lamp projection after correcting a target determination region according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a matrix vehicular lamp calibration apparatus according to an embodiment of the present invention;
fig. 7 is a functional block diagram of an electronic device according to an embodiment of the invention.
Reference numerals:
the system comprises a first acquisition module 600, a second acquisition module 610, a comparison module 620, a third acquisition module 630, a correction module 640, a processor 700, a memory 710, a data transmission module 720, a camera 730 and a display screen 740.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
First, several terms referred to in the present application are resolved:
1. HSV: the Hue preservation Value is a color space created by a.r. smith in 1978 based on the intuitive nature of colors, and is also called a hexagonal cone Model (Hexcone Model). The hexagonal boundaries represent color, the horizontal axis represents purity, and brightness is measured along the vertical axis. The way of HSV expressing color images consists of three parts: hue, Saturation, color purity, and Value.
2. BGR: RGB stands for red (red) green (green) blue (blue). In most cases, the RGB colors are stored in structural or unsigned integers, with blue occupying the least important "region" (bytes in 32-bit and 24-bit formats), the second smallest of green and the third smallest of red. BGR is the same as RGB, but the region order is reversed: red occupies the least important area, green the second bit (still) and blue the third bit.
Referring to fig. 1, a matrix vehicle lamp correction method according to an embodiment of the first aspect of the present invention includes:
and S100, acquiring a target judging area of the matrix vehicle lamp, and acquiring a vehicle lamp light type image corresponding to the target judging area.
The target judging area can be a row of vehicle lamps which are used for sequentially starting the matrix vehicle lamps in a running water lamp mode when the camera is installed and deviated; the vehicle light pattern image may be a matrix vehicle light projected on a wall light pattern image in the present case. Optionally, the matrix vehicle lamp projection may be pre-divided as required to obtain a plurality of determination regions, and the plurality of determination regions may be used as initial determination regions. Referring to a schematic diagram of the relationship between the matrix vehicle lamp projection and the initial determination region shown in fig. 2, a dashed rectangle shown by a is a projection of the matrix vehicle lamp on a wall surface D, i.e., a camera identification region, a1 is a first initial determination region, and the determination region can be divided into a plurality of initial determination regions shown as a 1. The rectangular area shown in D is a wall surface, C1 is a light projection of the matrix vehicle lamp in the first square on the wall surface, when the camera is installed and shifted (in the embodiment of the present invention, the camera is installed and horizontally shifted), the light type and the initial determination area of the matrix vehicle lamp are shifted, as shown in the structural schematic diagram of the matrix vehicle lamp projection and the initial determination area shown in fig. 3, the position of the matrix vehicle lamp projection a in the camera field of view is shifted, which will cause the control accuracy of the matrix vehicle lamp to decrease. Therefore, the camera at this time needs to be corrected, and automatic calibration of the camera identification area a is realized. Specifically, the matrix vehicle lamps can be controlled to sequentially start the train lamps in a running-water lamp mode, the projection of the 1 st train lamp can be firstly used as a target judgment area for calibration, and when the projection of the 1 st train lamp is used as the target judgment area, the 1 st train lamp can be obtained to be projected on a wall surface to generate a rectangular light type to be used as a vehicle lamp light type image corresponding to the target judgment area; after the projection of the 1 st train lamp is corrected, the projection of the 2 nd train lamp can be used as a target judgment area for calibration, and when the projection of the 2 nd train lamp is used as the target judgment area, a rectangular light type generated by the 2 nd train lamp projected on a wall surface can be obtained and used as a train lamp light type image corresponding to the target judgment area; the projection to every train light is calibrated in proper order, until the projection to the matrix car light is calibrated, judge the regional calibration as the target with the projection of last (being 12 th row) car light, judge the regional car light type image that corresponds as the target with the 12 th train light transmission at the wall and produce the matrix light type.
And step S110, acquiring the brightness of the target vehicle lamp according to the vehicle lamp light type image.
Wherein the target vehicle light value may be an HSV image value of the vehicle light type image. Optionally, assuming that the projection of the first train lamp is used as the target determination area, an HSV image may be extracted from the vehicle lamp light type image corresponding to the first train lamp, that is, the vehicle lamp light type image (the vehicle lamp light type image is set to be a BGR image) is converted into an HSV image, and then the V-channel image brightness information may be obtained according to the HSV image, that is, the brightness of the target vehicle lamp is obtained.
And step S120, comparing the brightness of the target vehicle lamp with the preset brightness of the vehicle lamp, and matching the light type image of the vehicle lamp with a preset image mask if the brightness of the target vehicle lamp is less than or equal to the preset brightness of the vehicle lamp.
The preset vehicle lamp brightness can be a critical threshold corresponding to the target vehicle lamp brightness; the preset image mask may be a preset image obtained by blocking a selected image, graphic or object to control an image processing area or process. Optionally, the preset vehicle lamp brightness may be set according to a requirement. The brightness of the target vehicle lamp can be compared with the preset brightness of the vehicle lamp, and whether the brightness of the target vehicle lamp is within the preset brightness threshold range of the vehicle lamp is judged. If the judgment result is yes, matching the light type image of the vehicle lamp with the preset image mask, judging whether the light type image of the vehicle lamp is consistent with the preset image mask or not, and obtaining a comparison result that the light type image of the vehicle lamp is consistent with the preset image mask or obtaining a comparison result that the light type image of the vehicle lamp is inconsistent with the preset image mask.
And step S130, if the light type image of the vehicle lamp is consistent with the preset image mask, acquiring a boundary rectangle of the light source according to the light type image of the vehicle lamp.
The boundary rectangle can be the shape of the matrix car light and can comprise the shape and the position information of the matrix car light. Optionally, if the light type image of the vehicle lamp is consistent with the preset image mask, the camera may be calibrated according to the light type image of the vehicle lamp. Specifically, a matrix vehicle light source boundary rectangle may be obtained from the vehicle light type image, for example, a contour minimum matrix of the vehicle light type image is extracted, and at the same time, shape and position information of the boundary rectangle, for example, an abscissa of the boundary rectangle, is obtained.
In step S140, the target discrimination area is corrected based on the bounding rectangle.
Optionally, the left and right coordinates of the boundary rectangle may be obtained, and the coordinates of the target discrimination area may be calibrated, so that the coordinate information of the target discrimination area may be corrected, and the coordinate information of the target discrimination area that has shifted may be calibrated. The matrix vehicle lamps are turned on row by row in a running water lamp mode, and a projection B1 area of a first vehicle lamp is assumed to be used as a target judgment area for calibration, the 1 st row judgment area after calibration is shown in FIG. 4A, and B1 in FIG. 4A is the projection of the first vehicle lamp; furthermore, a projection B2 area of the vehicle light of the 2 nd train can be used as a target judgment area for calibration, the calibrated judgment area of the 2 nd train is shown in FIG. 4B, and B2 in FIG. 4B is the projection of the vehicle light of the second train; the projection B12 area of each row of lamps is sequentially used as a target judging area for calibration until the last row of lamps is calibrated, and if the last row of lamps is the 12 th row of lamps, the 12 th row of judging area after calibration is as shown in fig. 4C, and B12 in fig. 4C is the projection of the twelfth row of lamps, so that the matrix lamp light type (namely, the lamp light type image) with displacement is corrected, and the target judging area after correction is as shown in fig. 5. In some specific embodiments, the coordinate information of the corrected target determination region may be stored, so that the matrix vehicle lamp may be corrected again.
According to the matrix car lamp correction method, the shape and the position information of the matrix car lamp of the car are automatically acquired, the array judgment area of the intelligent car lamp control system is automatically calibrated, namely the coordinate of the intelligent car lamp control system car lamp judgment area is calibrated through the boundary of the lamp light, so that the automobile lamp control system judgment area is matched with the actual illumination area of the matrix car lamp.
In some embodiments of the present invention, correcting the target discrimination region based on the bounding rectangle includes:
and acquiring the left boundary abscissa and the right boundary abscissa of the boundary rectangle. Wherein, the left boundary abscissa may be an abscissa corresponding to the left boundary of the boundary rectangle; the right boundary abscissa may be the abscissa corresponding to the right boundary of the boundary rectangle. Optionally, for example, if horizontal deviation occurs during camera installation, the shape and position information of the boundary rectangle may include left and right boundary abscissa of the boundary matrix, and then left and right boundary abscissa of the boundary rectangle may be extracted.
And correcting the abscissa of the target discrimination area according to the left boundary abscissa and the right boundary abscissa. Optionally, assuming that the camera is installed to generate horizontal offset, the projection of the matrix vehicle lamp generates horizontal displacement, so that the initial abscissa of the target discrimination area can be calibrated according to the left and right boundary abscissas of the boundary matrix, and then the coordinate information of the displaced target discrimination area can be corrected, thereby realizing the correction of the camera of the matrix vehicle lamp. The abscissa of the target distinguishing area is corrected through the left boundary abscissa and the right boundary abscissa of the boundary rectangle, so that the distinguishing area is matched with the actual lighting area of the matrix car lamp, the control accuracy of the system to the car lamp is effectively improved, and the installation efficiency of the control system is improved.
In some embodiments of the present invention, after correcting the target discrimination region according to the bounding rectangle, the method further includes:
and storing the abscissa of the corrected target discrimination area. Optionally, after the target discrimination regions are corrected one by one, the abscissa of the corrected target discrimination region may be subjected to parameter storage. When horizontal deviation occurs again in the matrix car lamp camera, automatic calibration can be carried out according to the stored abscissa of the target discrimination area.
And executing the step of acquiring the target distinguishing area of the matrix vehicle lamp. Optionally, after storing the corrected abscissa of the target determination region, the change of the matrix vehicle lamp may be continuously monitored, that is, the step of obtaining the target determination region of the matrix vehicle lamp is skipped again, so that the camera of the matrix vehicle lamp may be determined and calibrated in real time.
In some embodiments of the present invention, obtaining a target vehicle light brightness from a vehicle light pattern image comprises:
and acquiring a color space image according to the light type image of the car lamp. The color space image may be an HSV image obtained by image processing of a vehicle light type image. Optionally, if the light type image of the vehicle lamp is a BGR image, the BGR image may be converted into an HSV image, and a color space image is obtained.
And extracting the brightness of the target vehicle lamp according to the color space image. Optionally, after obtaining the HSV image, V-channel image brightness information may be extracted according to the HSV image, that is, image brightness of HSV is obtained, and then target vehicle light brightness is obtained. By converting the light type image of the car lamp into the color space image and extracting the brightness of the target car lamp through the color space image, an effective light transmission area can be obtained, and the automatic calibration efficiency is improved.
In some embodiments of the present invention, after matching the light type image of the vehicle lamp with the predetermined image mask if the target vehicle lamp brightness is less than or equal to the predetermined vehicle lamp brightness, the method further includes:
and if the brightness of the target vehicle lamp is greater than the preset brightness of the vehicle lamp, executing the step of acquiring the target judgment area of the matrix vehicle lamp. Optionally, if the brightness of the target vehicle lamp is greater than the preset brightness of the vehicle lamp, the brightness of the target vehicle lamp exceeds the brightness threshold range of the vehicle lamp, and therefore the light type image of the vehicle lamp needs to be obtained again, that is, the step of obtaining the target judgment area of the matrix vehicle lamp is executed, so that the automatic calibration work can be simplified, and the accuracy of the correction can be improved.
In some embodiments of the present invention, after obtaining a boundary rectangle of the light source according to the vehicle light type image if the vehicle light type image is consistent with the preset image mask, the method further includes:
and if the light type image of the vehicle lamp is not consistent with the preset image mask, executing the step of acquiring the target judging area of the matrix vehicle lamp. Optionally, when the light type image of the vehicle lamp is inconsistent with the preset image mask, it can be determined that the obtained light type image of the vehicle lamp does not conform to the preset condition, and therefore the light type image of the vehicle lamp needs to be obtained again, namely, the step of obtaining the target judgment area of the matrix vehicle lamp is executed, so that the automatic calibration work can be simplified, and the correction accuracy is improved.
In some embodiments of the present invention, obtaining a target discrimination area of a matrix vehicle lamp includes:
and acquiring the preset judging column number of the matrix car lamp. The preset judging column number may be a preset column number of a target judging area of the matrix vehicle lamp. As shown in fig. 2, 3 and 5, the number of the preset discrimination columns of the matrix vehicle lamp can be divided into 12 columns according to the requirement.
And dividing the matrix vehicle lamp into a plurality of preset judging areas according to the preset judging column number. Alternatively, assuming that the number of the preset determination columns is 12, as shown in fig. 2, 3 and 5, the matrix vehicle lamp may be divided into 12 preset determination areas, and each column may be sequentially used as a target determination area for calibration.
And selecting a target discrimination region from the plurality of preset discrimination regions. Optionally, the target discrimination area may be selected one by one according to the divided preset discrimination area, for example: according to the sequence from left to right, as shown in fig. 4A, 4B and 4C, the 1 st column of preset discrimination areas is firstly used as the target discrimination area for calibration; after the calibration of the 1 st column, the 2 nd column of preset discrimination regions may be used as target discrimination regions for calibration, and each column of preset discrimination regions may be used as target discrimination regions for calibration in sequence until the 12 th column of preset discrimination regions (i.e., the last column of target discrimination regions) is calibrated. For another example: the target discrimination areas can be selected from right to left for calibration until the last column of target discrimination areas is calibrated. The matrix car lamp is automatically divided by presetting the number of the distinguishing columns, so that the control precision of the matrix car lamp camera is realized.
The following describes the process of the matrix vehicle lamp correction method according to an embodiment of the present invention in detail. It is to be understood that the following description is only exemplary, and not a specific limitation of the invention.
The matrix vehicle lamp correction method comprises the following steps:
firstly, carrying out running light type sequential starting of a train of lamps on the matrix lamps.
As shown in fig. 2 and 3, when the matrix car light pattern is deflected at a position in the field of view of the camera, the control accuracy of the matrix car light is reduced, and therefore the matrix car light needs to be calibrated. And setting the number of the matrix vehicle lamp distinguishing area columns, wherein the number of the distinguishing area columns can be set according to requirements, and further paying attention to starting a vehicle lamp according to the number of the matrix vehicle lamp distinguishing area columns to obtain a distinguishing area of the matrix vehicle lamp.
And secondly, acquiring the light type image of the wall surface projected by the matrix vehicle lamp under the current condition.
When each train lamp is started in sequence, the light type image of the matrix train lamp transmitted on the wall surface in the distinguishing area can be obtained, and the light type image of the matrix train lamp of the train lamp can be obtained. Assuming that the 1 st column is taken as a determination area according to the sequence from left to right, the light type image of the wall lamp corresponding to the determination area is shown in fig. 4A; further, the 2 nd column can be used as a determination area, and the light type image of the wall lamp corresponding to the determination area is shown in fig. 4B; and finally, taking the 12 th column as a judgment area, wherein the light type image of the wall lamp corresponding to the judgment area is shown in fig. 4C.
And thirdly, acquiring the brightness of the HSV image according to the light type image of the wall car light.
The method comprises the steps of firstly obtaining an HSV image according to a light type image of the wall lamp, namely converting the light type image of the wall lamp of the BGR image into the HSV image, and then obtaining V channel image brightness information according to the HSV image to obtain HSV image brightness.
And fourthly, judging whether the brightness of the HSV image is within a preset vehicle lamp brightness threshold range, and if so, matching the light type image of the wall vehicle lamp with a preset image mask.
The preset car light brightness can be set according to requirements. If the brightness of the HSV image is within the range of the preset vehicle lamp brightness threshold value, for example, if the brightness of the HSV image is less than or equal to the preset vehicle lamp brightness, the brightness of the HSV image can be determined to meet the preset condition, so that the light type image of the wall vehicle lamp can be matched with the preset image mask, and whether the brightness of the HSV image is consistent with the preset condition or not can be judged. If the two are consistent, executing the fifth step; if not, executing the first step.
And fifthly, if the matching is successful, acquiring a boundary rectangle of the light source according to the light type image of the wall car light.
If the wall car light type image is consistent with the preset image mask, the two are successfully matched, so that the matrix car light source boundary rectangle can be obtained according to the wall car light type image, and the minimum outline rectangle for extracting the car light type can be used as the boundary rectangle.
And sixthly, acquiring left and right boundary horizontal coordinates of the boundary rectangle, correcting the horizontal coordinates of the current matrix vehicle lamp distinguishing area according to the left and right boundary horizontal coordinates, and storing parameters.
And correcting the abscissa of the current matrix vehicle lamp judging area (such as the 1 st column vehicle lamp) according to the left and right abscissas of the boundary rectangle, and automatically adjusting the judging area to the position corresponding to the matrix vehicle lamp. After the 1 st train lamp is corrected, the current row matrix lamp is closed, the next row matrix lamp is opened, the operations are repeated until all the judgment areas are calibrated, the judgment areas of the corrected matrix lamps are shown in fig. 5, the camera installation/adjustment work is effectively simplified, and the identification accuracy of automatic calibration is improved.
According to the matrix car lamp correction method, by executing the matrix car lamp correction method disclosed by the embodiment of the first aspect of the invention, the camera identification area can be automatically calibrated, and the installation efficiency and the control accuracy of the intelligent matrix car lamp are improved.
Referring to fig. 6, a matrix vehicular lamp correcting device according to an embodiment of a second aspect of the present invention includes:
the first obtaining module 600 is configured to obtain a target determination area of a matrix vehicle lamp, and obtain a vehicle lamp light type image corresponding to the target determination area;
the second obtaining module 610 is used for obtaining the brightness of the target vehicle lamp according to the vehicle lamp light type image;
the comparison module 620 is configured to compare the target vehicle light brightness with a preset vehicle light brightness, and if the target vehicle light brightness is less than or equal to the preset vehicle light brightness, match the vehicle light type image with a preset image mask;
a third obtaining module 630, configured to obtain a boundary rectangle of the light source according to the vehicle light type image if the vehicle light type image is consistent with the preset image mask;
and the correcting module 640 is configured to correct the target determination region according to the boundary rectangle.
By implementing the matrix car lamp correction method in the embodiment of the first aspect of the invention, the matrix car lamp correction device can automatically calibrate the camera identification area, and improve the installation efficiency and control accuracy of the intelligent matrix car lamp.
Referring to fig. 7, an embodiment of the third aspect of the present invention further provides a functional module diagram of an electronic device, including: at least one processor 700, and a memory 710 communicatively coupled to the at least one processor 700; the system also comprises a data transmission module 720, a camera 720 and a display screen 740.
The processor 700 is configured to execute the matrix car light correction method in the first embodiment by calling a computer program stored in the memory 710.
The data transmission module 720 is connected to the processor 700, and is configured to implement data interaction between the data transmission module 720 and the processor 700.
The camera 730 may include a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera 730 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The display 740 may be used to display information entered by the user or provided to the user. The Display panel 740 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel may cover the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 700 to determine the type of the touch event, and then the processor 700 provides a corresponding visual output on the display panel according to the type of the touch event. In some embodiments, the touch panel may be integrated with the display panel to implement input and output functions.
The memory, as a non-transitory storage medium, may be used to store a non-transitory software program and a non-transitory computer-executable program, such as the matrix vehicle lamp correction method in the embodiment of the first aspect of the present invention. The processor implements the matrix vehicle light correction method in the above-described first embodiment by executing a non-transitory software program and instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a matrix vehicle lamp correction method that performs the above-described embodiment of the first aspect. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Non-transitory software programs and instructions required to implement the matrix headlight correction method in the first aspect embodiment described above are stored in a memory and, when executed by one or more processors, perform the matrix headlight correction method in the first aspect embodiment described above.
Embodiments of the fourth aspect of the present invention also provide a computer-readable storage medium storing computer-executable instructions for: the matrix vehicular lamp correction method in the first aspect embodiment is performed.
In some embodiments, the storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one of the processors in the electronic device of the third aspect, and may cause the one or more processors to execute the matrix car light correction method in the first aspect.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. The matrix car lamp correction method is characterized by comprising the following steps:
acquiring a target judging area of a matrix vehicle lamp, and acquiring a vehicle lamp light type image corresponding to the target judging area;
acquiring the brightness of a target vehicle lamp according to the vehicle lamp light type image;
comparing the target vehicle lamp brightness with a preset vehicle lamp brightness, and matching the vehicle lamp light type image with a preset image mask if the target vehicle lamp brightness is less than or equal to the preset vehicle lamp brightness;
if the light type image of the car lamp is consistent with the preset image mask, acquiring a boundary rectangle of a light source according to the light type image of the car lamp;
and correcting the target discrimination area according to the boundary rectangle.
2. The method of claim 1, wherein said correcting the target discrimination region according to the bounding rectangle comprises:
acquiring a left boundary abscissa and a right boundary abscissa of the boundary rectangle;
and correcting the abscissa of the target discrimination area according to the left boundary abscissa and the right boundary abscissa.
3. The method according to claim 2, further comprising, after said correcting said target discrimination region according to said bounding rectangle:
storing the corrected abscissa of the target discrimination area;
and executing the step of acquiring the target distinguishing area of the matrix vehicle lamp.
4. The method of claim 1, wherein the obtaining a target vehicle light brightness from the vehicle light pattern image comprises:
acquiring a color space image according to the light type image of the car lamp;
and extracting the brightness of the target vehicle lamp according to the color space image.
5. The method of claim 1, further comprising, after matching the vehicle light pattern image to a preset image mask if the target vehicle light value is less than or equal to the preset vehicle light value:
and if the brightness of the target vehicle lamp is greater than the preset vehicle lamp brightness, executing the step of obtaining the target judgment area of the matrix vehicle lamp.
6. The method according to claim 1, further comprising, after acquiring a boundary rectangle of a light source from the lamp light pattern image if the lamp light pattern image matches the preset image mask, the step of:
and if the light type image of the vehicle lamp is not consistent with the preset image mask, executing the step of acquiring the target judgment area of the matrix vehicle lamp.
7. The method according to any one of claims 1 to 6, wherein the obtaining the target discrimination area of the matrix vehicle lamp comprises:
acquiring a preset judging column number of the matrix car lamp;
dividing the matrix car lamp into a plurality of preset judging areas according to the preset judging column number;
and selecting the target discrimination area from the plurality of preset discrimination areas.
8. Matrix car light correcting unit, its characterized in that includes:
the first acquisition module is used for acquiring a target judgment area of the matrix vehicle lamp and acquiring a vehicle lamp light type image corresponding to the target judgment area;
the second acquisition module is used for acquiring the brightness of the target vehicle lamp according to the vehicle lamp light type image;
the comparison module is used for comparing the target vehicle lamp brightness with a preset vehicle lamp brightness, and if the target vehicle lamp brightness is smaller than or equal to the preset vehicle lamp brightness, the vehicle lamp light type image is matched with a preset image mask;
the third obtaining module is used for obtaining a boundary rectangle of a light source according to the car light type image if the car light type image is consistent with the preset image mask;
and the correction module is used for correcting the target judgment area according to the boundary rectangle.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement a matrix headlight correction method as claimed in any one of claims 1 to 7.
10. Computer-readable storage medium, characterized in that it stores computer-executable instructions for causing a computer to execute the matrix vehicle light correction method according to any one of claims 1 to 7.
CN202110718611.XA 2021-06-28 Matrix car lamp correction method and device, electronic equipment and storage medium Active CN113538343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110718611.XA CN113538343B (en) 2021-06-28 Matrix car lamp correction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110718611.XA CN113538343B (en) 2021-06-28 Matrix car lamp correction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113538343A true CN113538343A (en) 2021-10-22
CN113538343B CN113538343B (en) 2024-05-14

Family

ID=

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04179189A (en) * 1990-11-09 1992-06-25 Hitachi Ltd Printed board and recognition method of its position correcting recognition mark
JPH11205776A (en) * 1998-01-20 1999-07-30 Fujitsu General Ltd Image recognizing and setting system
JP2004207603A (en) * 2002-12-26 2004-07-22 Toshiba Corp Bonding device and its controlling method
JP2016092019A (en) * 2014-10-29 2016-05-23 パナソニックIpマネジメント株式会社 Calibration method in component mounting device
WO2019084173A1 (en) * 2017-10-26 2019-05-02 Osram Sylvania Inc. Integrated automotive adaptive driving beam headlamp and calibration method
KR20190058350A (en) * 2017-11-20 2019-05-29 한국과학기술원 Method for calibrating 360-degree cameras
DE102018204424B3 (en) * 2018-03-22 2019-08-08 Audi Ag Method for calibrating a position of a matrix headlight of a motor vehicle, control device and motor vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04179189A (en) * 1990-11-09 1992-06-25 Hitachi Ltd Printed board and recognition method of its position correcting recognition mark
JPH11205776A (en) * 1998-01-20 1999-07-30 Fujitsu General Ltd Image recognizing and setting system
JP2004207603A (en) * 2002-12-26 2004-07-22 Toshiba Corp Bonding device and its controlling method
JP2016092019A (en) * 2014-10-29 2016-05-23 パナソニックIpマネジメント株式会社 Calibration method in component mounting device
WO2019084173A1 (en) * 2017-10-26 2019-05-02 Osram Sylvania Inc. Integrated automotive adaptive driving beam headlamp and calibration method
KR20190058350A (en) * 2017-11-20 2019-05-29 한국과학기술원 Method for calibrating 360-degree cameras
DE102018204424B3 (en) * 2018-03-22 2019-08-08 Audi Ag Method for calibrating a position of a matrix headlight of a motor vehicle, control device and motor vehicle

Similar Documents

Publication Publication Date Title
JP4853160B2 (en) Vehicle detection device and headlamp control device
CN108650495B (en) Panoramic looking-around system for vehicle and self-adaptive light supplementing method thereof
US9319647B2 (en) Image processing device
US20210016705A1 (en) Method for calibrating a position of a matrix headlamp of a motor vehicle, control device, and motor vehicle
CN105812674A (en) Signal lamp color correction method, monitoring method, and device thereof
EP3220637B1 (en) Vehicle-mounted camera system
KR102459778B1 (en) Method for change detection using lidar and camera and computer program recorded on record-medium for executing method therefor
WO2019194012A1 (en) Image processing device
WO2013168744A1 (en) Method and device for detecting vehicle light sources
CN113538343A (en) Matrix vehicle lamp correction method and device, electronic equipment and storage medium
CN113538343B (en) Matrix car lamp correction method and device, electronic equipment and storage medium
JP2013016981A (en) Imaging display control system
KR101927108B1 (en) Method and apparatus for controlling head lamp of vehicle
CN112489115B (en) Light-emitting module positioning method, device, electronic equipment, storage medium and system
US9992468B2 (en) Image processing apparatus and its adjustment method
JP2011008459A (en) In-vehicle camera device
US11560996B2 (en) Lighting module system and method for controlling the light module system
JP6866212B2 (en) Display control device, display control method and camera monitoring system
GB2586802A (en) System and method for identifying light emitter flicker
CN112693392A (en) Method and device for controlling brightness of multi-light-source high beam and vehicle
KR101907531B1 (en) Method and apparatus for controlling head lamp of vehicle
CN111343385B (en) Method, device, equipment and storage medium for determining environment brightness
KR102615479B1 (en) Lamp and operating method of the same, vehicle
US20220329723A1 (en) Method and system for mitigating image flicker from strobed lighting systems
CN113823218B (en) Pixelized car light control method, editing method, equipment, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant