LED calibration method and system

Through camera shooting and image processing technology, adjusting the power-on current and exposure parameters of LED lamps solves the problem of low calibration efficiency of LED lamps, achieving brightness uniformity and high-quality image acquisition, reducing operation complexity.

CN114019746BActive Publication Date: 2024-11-12ALLIEDSTAR MEDICAL EQUIPMENT CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202111308085.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-11-12
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

The existing LED lamp calibration methods are inefficient and complex in operation, resulting in color deviations in the graphic and text reports obtained in medical applications, making it difficult to achieve high uniformity and consistent brightness of LED lamps.

Method used

Obtain the target image by taking a camera, perform image processing to determine whether the brightness meets the preset range, adjust the exposure time and exposure gain, gradually adjust the energized current to achieve brightness uniformity, and generate a corresponding relationship curve chart between different energized currents and the brightness of the target image. .

Benefits of technology

It improves the luminous brightness calibration efficiency of LED lamps, reduces resource consumption, ensures image quality, reduces operational complexity, and achieves more efficient image shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114019746B_ABST
    Figure CN114019746B_ABST
Patent Text Reader

Abstract

The present invention provides an LED calibration method and system, the method comprising: initializing an LED lamp and a camera, controlling the camera to shoot and obtain a target image; performing image processing according to the target image to obtain a corresponding picture brightness, and judging whether the picture brightness under the current power-on current meets a preset brightness range; if the picture brightness does not meet the preset brightness range, adjusting the camera's shooting parameters, reshooting and obtaining a new target image according to the adjusted shooting parameters, until the picture brightness after the shooting parameters are adjusted meets the preset brightness range; if the picture brightness meets the preset brightness range, determining that the picture brightness is the target picture brightness corresponding to the current power-on current, performing normalization calculation on the target picture brightness, switching to the next power-on current to obtain the corresponding target picture brightness, so as to obtain a corresponding relationship between different power-on currents and target picture brightness. The present invention improves LED calibration efficiency and reduces resource consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image display calibration, and in particular to an LED calibration method and system. Background Art

[0002] Typically, LED lights are large-area display screens composed of dot matrix modules or pixel units consisting of hundreds of thousands or millions of light-emitting diodes.

[0003] In the current LED technology, each display manufacturing company will choose to purchase from a company that specializes in producing light-emitting diodes. However, even if the same brand manufacturer, the same model and the same batch of light-emitting diodes are selected, the brightness and chromaticity of the light-emitting diodes are different. Due to the discreteness of the light-emitting diodes themselves, it is difficult to achieve high uniformity of LED lights. Especially in the medical field, when using LED lights to take pictures and obtain graphic reports, such as dental detectors, endoscopes and other medical instruments with built-in LED lights, auxiliary cameras are used to take images to obtain graphic reports. Due to individual differences in LED lights of different colors, or installation errors that lead to large differences in LED light intensity, it is impossible to eliminate the color deviation in the obtained graphic reports.

[0004] In order to eliminate this problem, the more common technology in the industry is: first light up the LED light, then manually move the luminance meter / brightness meter to aim at the LED light, obtain the brightness of each LED light one by one, and adjust the control circuit such as the LED current to adjust the brightness of the LED light so that its brightness reaches the predetermined brightness. The above method is used to calibrate the brightness of the LED light to capture and obtain images. It is necessary to operate each LED light one by one, and finally complete the calibration one by one to ensure the brightness uniformity and consistency of the LED light. This is very slow, time-consuming, complicated to operate, and has low work efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide an LED calibration method and system, which solves the technical problems of slow LED lamp calibration efficiency and complex, time-consuming and labor-intensive operation.

[0006] The technical solution provided by the present invention is as follows:

[0007] The present invention provides an LED calibration method, comprising the steps of:

[0008] Initialize the LED light and camera, and control the camera to capture the target image;

[0009] Perform image processing on the target image to obtain the corresponding image brightness, and determine whether the image brightness under the current current meets the preset brightness range;

[0010] If the brightness of the image does not meet the preset brightness range, the camera's shooting parameters are adjusted, and a new target image is captured again according to the adjusted shooting parameters until the brightness of the image after the shooting parameters are adjusted meets the preset brightness range;

[0011] If the image brightness meets the preset brightness range, the image brightness is determined to be the target image brightness corresponding to the current power-on current. After normalizing the target image brightness, the next power-on current is switched to obtain the corresponding target image brightness to obtain the corresponding relationship between different power-on currents and target image brightness.

[0012] Furthermore, initializing the LED light and the camera includes the following steps:

[0013] Set the initial current input to the LED lamp, as well as the initial exposure gain and initial exposure time of the camera.

[0014] Furthermore, controlling the camera to capture the target image includes the following steps:

[0015] After the LED lights of corresponding colors are powered on in sequence, a start-photographing signal is sent to the camera respectively; the start-photographing signal includes an initial exposure gain and an initial exposure time;

[0016] After receiving the start-photographing signal, the camera takes a photo of the target object according to the initial exposure gain and the initial exposure time, and successively obtains the target images under the lighting states of different color LED lights.

[0017] Furthermore, the preset brightness range includes a preset maximum brightness and a preset minimum brightness; the photographing parameters include exposure time and exposure gain; if the image brightness does not meet the preset brightness range, adjusting the camera's photographing parameters includes the following steps:

[0018] If the image brightness is lower than the preset minimum brightness, the camera exposure time and / or exposure gain is increased incrementally according to the preset interval;

[0019] If the image brightness is greater than the preset maximum brightness, the camera exposure time and / or exposure gain is progressively reduced according to the preset interval.

[0020] Furthermore, after normalizing the target image brightness, switching to the next power-on current to obtain the corresponding target image brightness, so as to obtain the corresponding relationship between different power-on currents and the target image brightness, comprises the following steps:

[0021] Get the current exposure time and current exposure gain of the camera under the current power-on current;

[0022] The current exposure time is divided by the preset exposure time to obtain an exposure time coefficient, the current exposure gain is divided by the preset exposure gain to obtain an exposure gain coefficient, and a normalization coefficient corresponding to the brightness of the target image is obtained; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient;

[0023] The current input into the LED lamp is progressively adjusted to the next current according to the preset current interval, and the exposure gain of the camera is adjusted to obtain the target image brightness under the next current;

[0024] According to the normalization coefficients and target image brightness obtained under different power-on currents, a curve graph is drawn to show the corresponding relationship between different power-on currents and target image brightness under preset exposure time and preset exposure gain.

[0025] The present invention also provides an LED calibration system, comprising: a processor, an LED lamp and a camera; the processor comprises:

[0026] The processing module is used to initialize the LED light and the camera and control the camera to capture the target image;

[0027] A judgment module is used to perform image processing according to the target image to obtain the corresponding picture brightness, and to judge whether the picture brightness under the current power-on current meets the preset brightness range;

[0028] The processing module is further used to adjust the camera's shooting parameters if the image brightness does not meet the preset brightness range, and reshoot according to the adjusted shooting parameters to obtain a new target image until the image brightness after the shooting parameters are adjusted meets the preset brightness range;

[0029] The processing module is also used to determine that the image brightness is the target image brightness corresponding to the current power-on current if the image brightness meets the preset brightness range. After normalizing the target image brightness, the next power-on current is switched to obtain the corresponding target image brightness to obtain the corresponding relationship between different power-on currents and target image brightness.

[0030] Furthermore, the processing module includes:

[0031] A current setting unit, used to set an initial current input to the LED lamp;

[0032] Camera setting unit for the camera's initial exposure gain and initial exposure time.

[0033] Furthermore, the processing module also includes:

[0034] The control unit is used to sequentially power on the LED lights of corresponding colors and then send a start-photographing signal to the camera respectively; the start-photographing signal includes an initial exposure gain and an initial exposure time;

[0035] The camera is used to take pictures of the target object according to the initial exposure gain and the initial exposure time after receiving the start-up shooting signal, and successively obtain the target images under the lighting states of LED lights of different colors.

[0036] Furthermore, the processing module also includes:

[0037] A first adjustment unit, configured to increase the exposure time and / or exposure gain of the camera in a progressive manner according to a preset interval if the image brightness is less than a preset minimum brightness;

[0038] The second adjustment unit is used to progressively reduce the exposure time and / or exposure gain of the camera according to a preset interval if the brightness of the image is greater than a preset maximum brightness.

[0039] Furthermore, the processing module also includes:

[0040] An acquisition unit, used to acquire the current exposure time and current exposure gain corresponding to the camera under the current power-on current;

[0041] A calculation unit, configured to obtain an exposure time coefficient by dividing a current exposure time by a preset exposure time, obtain an exposure gain coefficient by dividing a current exposure gain by a preset exposure gain, and obtain a normalization coefficient corresponding to the brightness of a target image; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient;

[0042] The current regulating unit is used to progressively regulate the current input into the LED lamp to the next current according to the preset current interval, and to adjust the exposure gain of the camera to obtain the target image brightness under the next current;

[0043] The processing unit is used to draw a curve chart showing the corresponding relationship between different power-on currents and target image brightness under preset exposure time and preset exposure gain according to the normalization coefficients and target image brightness obtained under different power-on currents.

[0044] The LED calibration method and system provided by the present invention can calibrate the light brightness of LED lamps to improve shooting and obtain high-quality images and reduce resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The preferred implementation scheme will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of an LED calibration method and system.

[0046] Figure 1 is a flow chart of an embodiment of an LED calibration method of the present invention;

[0047] Figure 2It is a flow chart of another embodiment of an LED calibration method of the present invention. DETAILED DESCRIPTION

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0049] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0050] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0051] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0052] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0054] Exposure time: Shutter speed, in simple terms, is the time you press the shutter. The longer the time, the more photons will reach the CCD\CMOS surface, and the brighter the captured image will be. If the exposure is too high, the photo will be too bright and lose image details. If the exposure is too low, the photo will be too dark and will also lose image details. Although the image quality will be better if the exposure time is relatively long, it cannot be infinitely long because noise is also accumulated during the exposure process.

[0055] Exposure gain: The amplification gain of the analog signal after double sampling.

[0056] Among them, exposure time and exposure gain are data that can be directly read from the camera and should be adjusted first, with exposure time being the main adjustment. Under the premise of not overexposing, increasing exposure time can increase the signal-to-noise ratio and make the image clearer.

[0057] One embodiment of the present invention, as Figure 1 As shown, a LED calibration method includes:

[0058] S100 initializes the LED light and camera, and controls the camera to capture the target image;

[0059] Specifically, the processor has a signal to tell the camera that the corresponding LED light is on, and at the same time tells the camera to start exposure and its exposure time, for example, 2ms. The camera captures and shoots for 2ms and then stops taking pictures. The LED light is on as long as it is in the 2ms process of the camera exposing and shooting. The overall process is to achieve photography through hardware signal interaction. The three primary color LED lights are lit in sequence, that is, the red, green and blue LED lights are time-sharing and projected on the target object in the same state. Because the frequency of the alternating current that powers the LED lights is very high, the time interval between on and off is at the ms or even um level. Therefore, the three primary color LED lights are respectively illuminated to capture the target image, and three target images are captured under single red light (that is, the red LED light is on, the blue LED light and the green LED light are off), single blue light (that is, the blue LED light is on, the red LED light and the green LED light are off), and single green light (that is, the green LED light is on, the red LED light and the blue LED light are off). Because the time interval is at the ms or even um level, it is equivalent to capturing the target object in the same state in the three primary color states at the same time.

[0060] S200 performs image processing according to the target image to obtain the corresponding image brightness, and determines whether the image brightness under the current current meets the preset brightness range;

[0061] S300: if the brightness of the image does not meet the preset brightness range, adjust the camera's shooting parameters, and reshoot according to the adjusted shooting parameters to obtain a new target image, until the brightness of the image after the shooting parameters are adjusted meets the preset brightness range;

[0062] S400 If the image brightness meets the preset brightness range, determine that the image brightness is the target image brightness corresponding to the current power-on current, perform normalization calculation on the target image brightness, and then switch to the next power-on current to obtain the corresponding target image brightness, so as to obtain the corresponding relationship between different power-on currents and target image brightness.

[0063] Specifically, since the image brightness is directly used to evaluate the luminous intensity of the LED, it is necessary to solve the problem of how to accurately evaluate the brightness of the LED when the image is overexposed or underexposed. In addition, the entire calibration process must be fast. The general practice of peers is to run a tool software on the computer to calculate the image brightness. The image brightness is considered to be valid within a large range, but when the image brightness deviation is large, the brightness deviation will increase, resulting in poor calibration accuracy.

[0064] Since the change of the picture brightness will change from very small to very large when the LED current changes from small to large, in order to make the picture brightness within a reasonable range, the present invention adjusts the picture brightness by adjusting the exposure time and exposure gain, so that the picture brightness reaches a reasonable range, and then normalizes the picture brightness to a fixed exposure time and exposure gain. At the same time, the three-color LED is adjusted at the same time, and three pictures are taken as a group under each current, corresponding to red, green and blue pictures, and the frame rate is increased to achieve the purpose of fast calibration.

[0065] One embodiment of the present invention, as Figure 2 As shown, a LED calibration method, the preset brightness range includes a preset maximum brightness and a preset minimum brightness; the photographing parameters include exposure time and exposure gain; the calibration method includes the steps of:

[0066] S110 sets the initial current input to the LED lamp, and the initial exposure gain and initial exposure time of the camera;

[0067] S120 sequentially powers on the LED lights of corresponding colors and sends a start-photographing signal to the camera respectively; the start-photographing signal includes an initial exposure gain and an initial exposure time;

[0068] After receiving the start-photographing signal, the camera takes a photo of the target object according to the initial exposure gain and the initial exposure time, and successively obtains the target images in the lighting states of different color LED lights;

[0069] S200 performs image processing according to the target image to obtain the corresponding image brightness, and determines whether the image brightness under the current current meets the preset brightness range;

[0070] S300: if the brightness of the image does not meet the preset brightness range, adjust the camera's shooting parameters, and reshoot according to the adjusted shooting parameters to obtain a new target image, until the brightness of the image after the shooting parameters are adjusted meets the preset brightness range;

[0071] S400 If the image brightness meets the preset brightness range, determine that the image brightness is the target image brightness corresponding to the current power-on current, perform normalization calculation on the target image brightness, and then switch to the next power-on current to obtain the corresponding target image brightness, so as to obtain the corresponding relationship between different power-on currents and target image brightness.

[0072] After the present invention takes a picture of the tooth area to be inspected to obtain the target image, it can analyze the current of the LED lamp when the target image is taken, and the picture brightness corresponding to the target image, so as to obtain a curve graph of the corresponding relationship between different currents and the target picture brightness. Subsequently, the current can be adaptively adjusted according to the curve graph and the required picture brightness, thereby ensuring the imaging quality of the tooth image.

[0073] One embodiment of the present invention is a LED calibration method, wherein the preset brightness range includes a preset maximum brightness and a preset minimum brightness; the photographing parameters include an exposure time and an exposure gain; and the calibration method comprises the following steps:

[0074] S110 sets the initial current input to the LED lamp, and the initial exposure gain and initial exposure time of the camera;

[0075] S120 sequentially powers on the LED lights of corresponding colors and sends a start-photographing signal to the camera respectively; the start-photographing signal includes an initial exposure gain and an initial exposure time;

[0076] After receiving the start-photographing signal, the camera takes a photo of the target object according to the initial exposure gain and the initial exposure time, and successively obtains the target images in the lighting states of different color LED lights;

[0077] S200 performs image processing according to the target image to obtain the corresponding image brightness, and determines whether the image brightness under the current current meets the preset brightness range;

[0078] S310: if the image brightness is less than the preset minimum brightness, the exposure time and / or exposure gain of the camera is increased progressively according to the preset interval, and a new target image is acquired by reshooting according to the adjusted photographing parameters until the brightness of the image after the photographing parameters are adjusted meets the preset brightness range;

[0079] S320: if the image brightness is greater than the preset maximum brightness, the exposure time and / or exposure gain of the camera is progressively reduced according to the preset interval, and a new target image is captured again according to the adjusted photographing parameters until the image brightness after the photographing parameters are adjusted meets the preset brightness range;

[0080] S410 If the image brightness meets the preset brightness range, determine that the image brightness is the target image brightness corresponding to the current on current;

[0081] S420 obtains the current exposure time and current exposure gain corresponding to the camera under the current power-on current;

[0082] S430: dividing the current exposure time by the preset exposure time to obtain an exposure time coefficient, dividing the current exposure gain by the preset exposure gain to obtain an exposure gain coefficient, and obtaining a normalization coefficient corresponding to the brightness of the target image; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient;

[0083] S440 progressively adjusts the current input into the LED lamp to the next current according to the preset current interval, and adjusts the exposure gain of the camera to obtain the target image brightness under the next current;

[0084] S450 generates a curve chart showing the corresponding relationship between different power-on currents and target image brightness under preset exposure time and preset exposure gain conditions according to the obtained normalization coefficients and target image brightness under different power-on currents.

[0085] Specifically, the processor sets the lighting time of three LED lights of different colors, and after collecting three target images in three color states, the three target images are processed to obtain three picture brightnesses, and it is judged whether the brightness of the three pictures is reasonable. If it is reasonable, the picture brightness is normalized. Because there are many factors that affect the brightness of the picture, such as the brightness of the LED, the exposure time of the camera, the exposure gain of the camera, etc. When other influencing factors are the same, the brightness of the LED light will affect the brightness of the picture, that is, the higher the brightness of the LED light, the greater the brightness of the picture. Normalization processing is to normalize the picture brightness to a fixed exposure gain and exposure time. The purpose of normalization processing is to find the target picture brightness under each channel current in the underexposure or overexposure scene, so as to perform normalization calculation according to the target picture brightness, so that the preset exposure time and preset exposure gain under different power-on currents are the same.

[0086] For example, the normalized fixed exposure time is 2ms and the fixed exposure gain is 1. If the target image is captured after the current LED light is on, the camera exposure time is 1ms and the camera exposure gain is 1. Assuming that the brightness of the target image is 50, the normalized processing is 25 fixed exposure times and a fixed exposure gain.

[0087] If the light is dim when the current is very small, the brightness of the captured picture is also dim, which means underexposure. The image is unusable due to excessive ambient light or noise. To avoid this, when the current is very small, extend the camera exposure time or increase the camera gain so that the picture brightness increases to a reasonable brightness range.

[0088] If the light is very bright when the current is very high, the brightness of the captured image will be overexposed due to the excessive brightness of the light, and the image will be unusable due to inaccurate image brightness. To avoid the above situation, when the current is very high, shorten the camera exposure time or reduce the camera gain so that the image brightness is reduced to a reasonable brightness range. The reasonable brightness range is the brightness that the human eye can see clearly.

[0089] Overexposure or underexposure is to adjust the image brightness by adjusting the current or gain, so the exposure factor is excluded to measure the brightness of the LED lamp under different current conditions. For example, the corresponding relationship of the luminous brightness of the LED lamp under the current state of 200mA is measured by the image brightness of the target image captured by the camera when the light is irradiated on the target object.

[0090] Initially, the purpose of the invention was to measure the luminous efficiency of LED lamps. For example, a batch of LEDs are powered by 200mA. Due to LED batch or process reasons, some LED lamps emit brighter light and some emit less light under the same 200mA current.

[0091] For example, when the current is 200mA, 300mA, 400mA, and 500mA, the luminous brightness of the LED lamp at different currents is measured to draw a curve diagram of the corresponding relationship between the current and the LED luminous brightness. If the medical instrument with LED for luminous irradiation of the present invention is manually measured using a luminance meter / brightness meter, it is necessary to be in a dark environment, and the manual record needs to be manually input into the medical instrument.

[0092] The LED light is irradiated on the teeth, and the teeth are photographed by the camera to obtain the target image of the tooth area. Therefore, the tooth photography conditions cannot be too bright or too dark, otherwise the clarity of the tooth area in the target image is not high, and the requirements of subsequent doctors for dental disease analysis of the teeth cannot be met. Therefore, the dental LED medical instrument is provided with three LED lights of different colors, namely red, blue and green. Therefore, the present invention requires the above three primary colors of LED lights to illuminate the tooth area respectively and photograph and obtain the target images in different color states respectively, and then synthesize the target images in three different colors to obtain the color target image of the tooth area in different color states. Since the reflection degree of teeth to different colors of light is different, and since the color of the LED lamp is different, the corresponding relationship between the image brightness of the obtained target image and the power-on current of the LED lamp needs to be measured. The present invention normalizes the target image brightness, which can eliminate the influence of the camera exposure time and the camera exposure gain on the image brightness of the target image, and then the image brightness can represent the luminous brightness of the LED lamp. Through the present invention, the corresponding relationship between the image brightness and the power-on current of the LED lamp can be accurately measured, and then the corresponding relationship between the power-on current of the LED lamp and the luminous brightness of the LED lamp can be indirectly obtained.

[0093] After the present invention takes a picture of the tooth area to be inspected to obtain the target image, it can analyze the current of the LED lamp when the target image is taken, and the picture brightness corresponding to the target image, so as to obtain a curve graph of the corresponding relationship between different currents and the target picture brightness. Subsequently, the current can be adaptively adjusted according to the curve graph and the required picture brightness, thereby ensuring the imaging quality of the tooth image.

[0094] An embodiment of the present invention provides an LED calibration system, comprising: a processor, an LED lamp, and a camera; the processor comprises:

[0095] The processing module is used to initialize the LED light and the camera and control the camera to capture the target image;

[0096] A judgment module is used to perform image processing according to the target image to obtain the corresponding picture brightness, and to judge whether the picture brightness under the current power-on current meets the preset brightness range;

[0097] The processing module is further used to adjust the camera's shooting parameters if the image brightness does not meet the preset brightness range, and reshoot according to the adjusted shooting parameters to obtain a new target image until the image brightness after the shooting parameters are adjusted meets the preset brightness range;

[0098] The processing module is also used to determine that the image brightness is the target image brightness corresponding to the current power-on current if the image brightness meets the preset brightness range. After normalizing the target image brightness, the next power-on current is switched to obtain the corresponding target image brightness to obtain the corresponding relationship between different power-on currents and target image brightness.

[0099] Specifically, this embodiment is a system embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described in detail here.

[0100] Based on the above embodiment, the processing module includes:

[0101] A current setting unit, used to set an initial current input to the LED lamp;

[0102] Camera setting unit for the camera's initial exposure gain and initial exposure time.

[0103] Specifically, this embodiment is a system embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described one by one here.

[0104] Based on the foregoing embodiment, the processing module further includes:

[0105] The control unit is used to sequentially power on the LED lights of corresponding colors and then send a start-photographing signal to the camera respectively; the start-photographing signal includes an initial exposure gain and an initial exposure time;

[0106] The camera is used to take pictures of the target object according to the initial exposure gain and the initial exposure time after receiving the start-up shooting signal, and successively obtain the target images under the lighting states of LED lights of different colors.

[0107] Specifically, this embodiment is a system embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described in detail here.

[0108] Based on the foregoing embodiment, the processing module further includes:

[0109] A first adjustment unit, configured to increase the exposure time and / or exposure gain of the camera in a progressive manner according to a preset interval if the image brightness is less than a preset minimum brightness;

[0110] The second adjustment unit is used to progressively reduce the exposure time and / or exposure gain of the camera according to a preset interval if the brightness of the image is greater than a preset maximum brightness.

[0111] Specifically, this embodiment is a system embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described one by one here.

[0112] Based on the foregoing embodiment, the processing module further includes:

[0113] An acquisition unit, used to acquire the current exposure time and current exposure gain corresponding to the camera under the current power-on current;

[0114] A calculation unit, configured to obtain an exposure time coefficient by dividing a current exposure time by a preset exposure time, obtain an exposure gain coefficient by dividing a current exposure gain by a preset exposure gain, and obtain a normalization coefficient corresponding to the brightness of a target image; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient;

[0115] The current regulating unit is used to progressively regulate the current input into the LED lamp to the next current according to the preset current interval, and to adjust the exposure gain of the camera to obtain the target image brightness under the next current;

[0116] The processing unit is used to generate a curve chart of the corresponding relationship between different power-on currents and target image brightness under preset exposure time and preset exposure gain conditions based on the normalization coefficients and target image brightness obtained under different power-on currents.

[0117] Specifically, this embodiment is a system embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described in detail here.

[0118] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned program modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program units or modules to complete all or part of the functions described above. The program modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software program unit. In addition, the specific names of the program modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application.

[0119] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0120] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed with hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0122] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0124] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0125] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0126] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A LED calibration method, It is characterized in that Includes steps: Initialize the LED light and the camera, and control the camera to capture the target image; Performing image processing on the target image to obtain corresponding picture brightness, and determining whether the picture brightness under the current current meets a preset brightness range; If the brightness of the image does not meet the preset brightness range, the camera parameters are adjusted, and a new target image is captured again according to the adjusted camera parameters until the brightness of the image after the camera parameters are adjusted meets the preset brightness range; If the image brightness meets the preset brightness range, determine that the image brightness is the target image brightness corresponding to the current power-on current, perform normalization calculation on the target image brightness, and switch to the next power-on current to obtain the corresponding target image brightness, so as to obtain the corresponding relationship between different power-on currents and target image brightness; Wherein, the normalization calculation includes normalizing the current exposure time and the current exposure gain of the target image to a fixed exposure time and a fixed exposure gain; The initialization setting of the LED light and the camera comprises the following steps: Set the initial current input to the LED light, as well as the initial exposure gain and initial exposure time of the camera; The controlling the camera to shoot and acquire the target image comprises the steps of: After the LED lights of corresponding colors are powered on in sequence, a start-photographing signal is sent to the camera respectively; the start-photographing signal includes the initial exposure gain and the initial exposure time; After receiving the start-up photographing signal, the camera takes a photograph of the target object according to the initial exposure gain and the initial exposure time, and successively obtains target images in the lighting states of LED lights of different colors.

2. The LED calibration method according to claim 1, It is characterized in that The preset brightness range includes a preset maximum brightness and a preset minimum brightness; the photographing parameters include exposure time and exposure gain; if the image brightness does not meet the preset brightness range, adjusting the photographing parameters of the camera includes the steps of: If the brightness of the image is less than the preset minimum brightness, the exposure time and / or exposure gain of the camera is increased progressively according to a preset interval; If the brightness of the image is greater than the preset maximum brightness, the exposure time and / or exposure gain of the camera is progressively reduced according to a preset interval.

3. The LED calibration method according to any one of claims 1 to 2, It is characterized in that After normalizing the target image brightness, switching to the next power-on current to obtain the corresponding target image brightness, so as to obtain the corresponding relationship between different power-on currents and the target image brightness, comprises the following steps: Obtaining the current exposure time and current exposure gain corresponding to the camera under the current power-on current; The current exposure time is divided by the preset exposure time to obtain an exposure time coefficient, the current exposure gain is divided by the preset exposure gain to obtain an exposure gain coefficient, and a normalization coefficient corresponding to the brightness of the target image is obtained; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient; progressively adjusting the current input into the LED lamp to a next current according to a preset current interval, and adjusting the exposure gain of the camera to obtain the target image brightness under the next current; According to the normalization coefficients and target image brightness obtained under different power-on currents, a curve graph is drawn to generate the corresponding relationship between different power-on currents and target image brightness under the preset exposure time and preset exposure gain.

4. An LED calibration system, It is characterized in that include: Processor, LED light and camera; The processor comprises: A processing module, used to initialize the LED light and the camera, and control the camera to capture a target image; A judgment module, used to perform image processing according to the target image to obtain a corresponding picture brightness, and judge whether the picture brightness under the current power-on current meets a preset brightness range; The processing module is further configured to adjust the photographing parameters of the camera if the brightness of the image does not meet the preset brightness range, and re-shoot according to the adjusted photographing parameters to obtain a new target image, until the brightness of the image after the photographing parameters are adjusted meets the preset brightness range; The processing module is further configured to determine, if the picture brightness meets the preset brightness range, that the picture brightness is the target picture brightness corresponding to the current power-on current, perform normalization calculation on the target picture brightness, and then switch to the next power-on current to obtain the corresponding target picture brightness, so as to obtain the corresponding relationship between different power-on currents and the target picture brightness; Wherein, the normalization calculation includes normalizing the current exposure time and the current exposure gain of the target image to a fixed exposure time and a fixed exposure gain; The processing module comprises: A current setting unit, used to set an initial current input to the LED lamp; A camera setting unit, used for initial exposure gain and initial exposure time of the camera; The processing module also includes: A control unit, configured to sequentially power on the LED lights of corresponding colors and then send a start-photographing signal to the camera; the start-photographing signal includes the initial exposure gain and the initial exposure time; The camera is used to take pictures of the target object according to the initial exposure gain and the initial exposure time after receiving the start-up picture taking signal, and successively obtain target images under the lighting states of LED lights of different colors.

5. The LED calibration system according to claim 4, It is characterized in that The processing module also includes: A first adjustment unit, configured to increase the exposure time and / or exposure gain of the camera in a progressive manner according to a preset interval if the brightness of the image is less than a preset minimum brightness; The second adjustment unit is used to progressively reduce the exposure time and / or exposure gain of the camera according to a preset interval if the brightness of the image is greater than a preset maximum brightness.

6. The LED calibration system according to any one of claims 4 to 5, It is characterized in that The processing module also includes: An acquisition unit, used for acquiring a current exposure time and a current exposure gain corresponding to the camera under the current power-on current; A calculation unit, configured to obtain an exposure time coefficient by dividing the current exposure time by a preset exposure time, obtain an exposure gain coefficient by dividing the current exposure gain by a preset exposure gain, and obtain a normalization coefficient corresponding to the brightness of the target image; the normalization coefficient includes an exposure time coefficient and an exposure gain coefficient; A current regulating unit, used for progressively regulating the current input into the LED lamp to a next current according to a preset current interval, and adjusting the exposure gain of the camera to obtain the target image brightness under the next current; The processing unit is used to generate a curve chart of the corresponding relationship between different power-on currents and target image brightness under the preset exposure time and preset exposure gain according to the normalization coefficients and target image brightness obtained under different power-on currents.

Citation Information

Patent Citations

  • Portable terminal with camera function, flashlight control method and flashlight control program

    CN102308255A

  • Anti-splash shooting method and device, terminal and storage medium

    CN109547704A

  • Calibration method and device for multispectral camera

    CN110166704A

  • Exposure duration control method and device, storage medium and electronic equipment

    CN110519526A

  • LED calibration method, device, equipment and system

    CN111083834A