Multi-channel Light Source Parameter Configuration Method, Device and Computer Readable Storage Medium
The mapping relationship is established by establishing a mapping relationship between the camera and the detection circuit, which solves the problem of time-consuming adjustment of the light source and troublesome brightness calculation, realizes automatic adjustment of the light source, and improves the stability and detection accuracy of the light source.
Patent Information
- Application Number
- CN202310030584.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2043-01-10
AI Technical Summary
The existing light source calibration methods are labor-intensive and time-consuming, and the brightness calculation operation is troublesome, resulting in poor stability and consistency of light sources, which cannot meet the efficient accuracy requirements of modern industrial production.
The camera takes images of the initial and final brightness moments of the luminous area, combined with the current data of the detection circuit, establish a mapping relationship and build a parameter model to realize automatic adjustment, reduce manual operations, and improve calibration efficiency and accuracy.
It realizes automatic adjustment of light sources, improves the stability and consistency of light source brightness, and improves detection accuracy and efficiency.
Smart Images

Figure CN116321605B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image measurement, and in particular to a multi-channel light source parameter configuration method, apparatus, and computer-readable storage medium.
Background Art
[0002] In modern industrial production, in order to improve accuracy and efficiency, a large number of auxiliary production equipment such as visual inspection, visual positioning, and artificial intelligence are applied. Among them, it is usually necessary to set a light source for operations such as visual inspection, visual positioning, and artificial intelligence. The light source has multiple controllable light-emitting areas, and the stability of the light source is a key link to ensure the normal operation of the equipment. Therefore, each light-emitting area needs to be calibrated before working to ensure the stability of the light source.
[0003] The existing light source calibration usually uses manual operation to manually calibrate each light-emitting area one by one, which is time-consuming and laborious, affects efficiency, and cannot meet the production capacity output. In addition, due to differences in materials, production processes, etc. among the light-emitting areas, the brightness of each light-emitting area will be different under the same power. In the existing technology, the power data of the light-emitting area is calculated and converted into brightness data through relevant formulas, and the brightness calculation operation is troublesome, and there are large differences in accuracy, stability, and consistency.
Summary of the Invention
[0004] The purpose of the present invention is to provide a multi-channel light source parameter configuration method, apparatus, and computer-readable storage medium to solve the above technical problems.
[0005] To achieve the above object, a first aspect of the present invention provides a multi-channel light source parameter configuration method. The light source includes n light-emitting areas and n detection circuits that are electrically connected to the light-emitting areas one by one for detecting the current of the light-emitting areas. Each light-emitting area includes at least one light-emitting element, and n is an integer greater than 1. The method includes:
[0006] Obtain a first image of the target light-emitting area during the light-emitting process at the initial light-on moment by the camera, and calculate the first brightness of the target light-emitting area according to the first image;
[0007] Obtain a first detection current of the target detection circuit connected to the target light-emitting area at the initial light-on moment, and establish a first mapping relationship according to the first detection current and the first brightness;
[0008] Obtain a second image of the target light-emitting area during the light-emitting process at the final light-off moment by the camera, and calculate the second brightness of the target light-emitting area according to the second image;
[0009] Obtain the second detection current of the target detection circuit at the final bright moment, establish a second mapping relationship according to the second detection current and the second brightness, and the first detection current is less than the second detection current;
[0010] Establish a parameter model according to the first mapping relationship and the second mapping relationship.
[0011] In some embodiments, after establishing the parameter model according to the first mapping relationship and the second mapping relationship, the method further includes:
[0012] Store the parameter model in the light source controller, and the light source controller is electrically connected to n of the light emitting regions.
[0013] In some embodiments, before obtaining the first image of the target light emitting region at the initial bright moment during the light emitting process of the target light emitting region by the camera and calculating the first brightness of the target light emitting region according to the first image, the method further includes:
[0014] Control the light source controller to sequentially increase and adjust the input current of the target light emitting region at the same time interval. The light source controller is electrically connected to n of the light emitting regions, and the input currents at adjacent moments are different and the difference is equal.
[0015] In some embodiments, further including when obtaining the second image of the target light emitting region at the final bright moment during the light emitting process of the target light emitting region by the camera and calculating the second brightness of the target light emitting region according to the second image:
[0016] Obtain the third images of the target light emitting region at m adjacent moments within a preset time period during the light emitting process of the target light emitting region by the camera, and calculate the corresponding third brightness of the target light emitting region according to each of the third images, where m is an integer greater than 2;
[0017] Obtain m third detection currents of the target detection circuit at the moments corresponding to the m third images within a preset time period, the third detection current at a later moment is greater than the third detection current at an earlier moment, and each third detection current is greater than the first detection current;
[0018] Establish a function model according to the m third brightnesses and the m third detection currents, and determine whether the derivative change amount of the function model exceeds a preset threshold;
[0019] If the derivative change amount exceeds the preset threshold, use the corresponding node moment when the derivative change amount exceeds the preset threshold as the final bright moment, use the third image corresponding to the final bright moment as the second image, and use the third brightness as the second brightness.
[0020] The second aspect of the present invention provides a multi-channel light source parameter configuration method. The light source includes n light-emitting regions and n detection circuits that are electrically connected to the light-emitting regions one by one for detecting the current of the light-emitting regions. Each of the light-emitting regions includes at least one light-emitting element, and n is an integer greater than 1. The method includes: A camera captures a first image at the initial bright moment during the light-emitting process of the target light-emitting region and sends the first image to a computing device;
[0021] The computing device calculates the first brightness of the target light-emitting region according to the first image;
[0022] The detection circuit collects the current data of the target light-emitting region at the initial bright moment to obtain a first detected current;
[0023] The detection circuit sends the first detected current to the computing device, and the computing device establishes a first mapping relationship according to the first detected current and the first brightness;
[0024] The camera captures a second image at the final bright moment during the light-emitting process of the target light-emitting region and sends the second image to the computing device;
[0025] The computing device calculates the second brightness of the target light-emitting region according to the second image; The detection circuit collects the current data of the target light-emitting region at the final bright moment to obtain a second detected current;
[0026] The detection circuit sends the second detected current to the computing device, and the computing device establishes a second mapping relationship according to the second detected current and the second brightness, and the first detected current is less than the second detected current;
[0027] The computing device establishes a parameter model according to the first mapping relationship and the second mapping relationship.
[0028] The third aspect of the present invention provides a multi-channel light source parameter configuration device, including a computing device, a camera, a detection circuit, and a light source. The camera is communicatively connected to the computing device. The light source includes n light-emitting regions, and there are n detection circuits that are electrically connected to the light-emitting regions one by one. n is an integer greater than 1;
[0029] The computing device executes the multi-channel light source parameter configuration method described in any one of the above.
[0030] In some embodiments, the n light-emitting regions are evenly distributed in a ring, and n≥4.
[0031] The computing device executes the multi-channel light source parameter configuration method described in any one of the above.
[0032] The computing device executes the multi-channel light source parameter configuration method described in any one of the above.
[0033] In some embodiments, the n light-emitting regions are evenly distributed in a ring, and n≥4.
[0034] In some embodiments, the computing device includes a host computer and a light source configurator communicatively connected to the host computer, and the light source configurator is electrically connected to n detection circuits;
[0035] The host computer is configured to:
[0036] Obtain a first image of the target light-emitting area at the initial lighting moment during the lighting process of the target light-emitting area by the camera, and calculate the first brightness of the target light-emitting area according to the first image;
[0037] Obtain a second image of the target light-emitting area at the final lighting moment during the lighting process of the target light-emitting area by the camera, and calculate the second brightness of the target light-emitting area according to the second image;
[0038] The light source configurator is configured to:
[0039] Obtain a first detection current of the target detection circuit connected to the target light-emitting area at the initial lighting moment, and establish a first mapping relationship according to the first detection current and the first brightness;
[0040] Obtain a second detection current of the target detection circuit at the final lighting moment, and establish a second mapping relationship according to the second detection current and the second brightness, where the first detection current is less than the second detection current;
[0041] Establish a parameter model according to the first mapping relationship and the second mapping relationship.
[0042] In some embodiments, the computing device further includes a light source controller communicatively connected to the light source configurator, the light source controller is communicatively connected to the host computer and electrically connected to n light-emitting areas, the light source configurator stores the parameter model in the light source controller, and the light source controller adjusts the brightness of the target light-emitting area differently within a preset time period.
[0043] A fourth aspect of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be executed by at least one processor so that the at least one processor executes the steps of the multi-channel light source parameter configuration method described in any one of the above.
[0044] The technical effect of the present invention is that: by the camera photographing the first brightness of the target light-emitting area at the initial lighting moment and the second brightness at the final lighting moment, and by the target detection circuit detecting the first detection current of the target light-emitting area at the initial lighting moment and the second detection current at the final lighting moment, the computing device correspondingly establishes a first mapping ray
[0045] A second mapping relationship is provided, eliminating the need for manual parameter recording and enabling automated calibration, reducing manual operations and improving calibration efficiency. Additionally, a parameter model is established by a computing device based on the first mapped light and the second mapping relationship, which is simple and convenient, making the calibration of the current and brightness relationship in the target light-emitting area more accurate and objective. This is beneficial for better adjusting the brightness to the expected level when using the light source to detect the object to be measured subsequently, ensuring the stability and consistency of the light source brightness and improving detection accuracy.
BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 0 To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings, where:
[0047] is a flowchart of a multi-channel light source parameter configuration method of the present invention;
[0048] Figure 1 is a schematic structural diagram of an embodiment of a multi-channel light source parameter configuration device of the present invention;
[0049] 5 Figure 2 is a schematic structural diagram of another embodiment of a multi-channel light source parameter configuration device of the present invention;
[0050] Figure 3 is a schematic structural diagram of another embodiment of a multi-channel light source parameter configuration device of the present invention;
[0051] Figure 4 is a schematic structural diagram of the light source of the present invention.
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0052] 0 The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0053] Please refer to
[0054] shown. The invention provides a multi-channel light source parameter configuration method. The light source 405 includes n light-emitting areas 41 and n current detectors 41 that are electrically connected to the light-emitting areas 41 in a one-to-one correspondence for detecting the current of the light-emitting area 41 Figures 1 to 4
[0055] The detection circuit 30, each light-emitting area 41 includes at least one light-emitting element 411, where n is an integer greater than 1, so that there are multiple light-emitting areas 41, facilitating the lighting control of each light-emitting area 41 during subsequent detection. The light-emitting element 411 can be an LED, an incandescent bulb, or other light-emitting bodies. This method is executed by a computing device, which can be a computing device including one or more processors. The processor may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, which is not limited herein. The one or more processors included in the computing device can be of the same type of processor, such as one or more CPUs; or they can be of different types of processors, such as one or more CPUs and one or more ASICs, which is not limited herein.
[0056] As Figure 1 shown, the method includes the following steps:
[0057] Step S1: Obtain a first image of the target light-emitting area at the initial lighting moment during the lighting process of the target light-emitting area by the camera, and calculate the first brightness of the target light-emitting area according to the first image.
[0058] Step S2: Obtain a first detection current of the target detection circuit connected to the target light-emitting area at the initial lighting moment, and establish a first mapping relationship according to the first detection current and the first brightness.
[0059] Step S3: Obtain a second image of the target light-emitting area at the final lighting moment during the lighting process of the target light-emitting area by the camera, and calculate the second brightness of the target light-emitting area according to the second image.
[0060] Step S4: Obtain a second detection current of the target detection circuit at the final lighting moment, and establish a second mapping relationship according to the second detection current and the second brightness, where the first detection current is less than the second detection current.
[0061] Step S5: Establish a parameter model according to the first mapping relationship and the second mapping relationship.
[0062] In step S1, the brightness of the target light-emitting area changes during the calibration process, so that it has different brightnesses at different times. The camera correspondingly takes a first image of the target light-emitting area at the initial lighting moment, and then the camera sends the first image to the computing device, and the computing device calculates the first brightness of the corresponding target light-emitting area according to the first image. In this embodiment, the camera shooting is automatic shooting to improve the operation efficiency; in other embodiments, it can also be manual operation of the camera for shooting.
[0063] Among them, although the resistance of each light-emitting region may change during the light-emitting process, during the calibration process, different brightness changes are achieved by controlling the power of the target light-emitting region, and this resistance change is also part of the power. In some embodiments, the brightness change is achieved by controlling the change of the input current of the target light-emitting region. For example, the change of the input current can be achieved by controlling the change of the resistance value of an external resistor connected in series with the target light-emitting region, or by controlling the change of the voltage of the target light-emitting region to achieve the change of the input current. It can be considered to control the brightness change of each light-emitting region, or the computing device can control the corresponding brightness change of each light-emitting region according to needs, which is not limited here.
[0064] The start-lighting moment is the moment when the target light-emitting region starts to emit light. In this case, this start-lighting moment is the initial moment, corresponding to the so-called zero moment. The target light-emitting region can be a single light-emitting region, or multiple light-emitting regions can emit light simultaneously, which is not limited here and is set according to needs.
[0065] In some embodiments, the camera is an industrial camera to have good shooting performance and quickly capture images of the target light-emitting region at different moments. In some embodiments, the camera faces the light-emitting side of the light source to be able to more accurately capture the light-emitting image of the corresponding target light-emitting region.
[0066] In some embodiments, after the computing device obtains the first image, it calculates the corresponding first brightness value by calculating the pixel gray value of the first image. The specific image brightness calculation method is prior art and will not be elaborated here.
[0067] In step S2, the target detection circuit detects the current value flowing through the target light-emitting region. The target detection circuit detects the first detection current corresponding to the target light-emitting region at the start-lighting moment and sends the first detection current to the computing device. The computing device establishes a first mapping relationship based on the first detection current and the first brightness. This first mapping relationship is used to form a call relationship for subsequent calculations. The first mapping relationship can be represented by a functional relationship, or in the form of a data table, or represented as a data group, or other representation methods, which is not limited here, as long as it indicates the relevance between the first detection current and the first brightness for convenient call and calculation. Among them, the first detection current is the starting current of the target light-emitting region.
[0068] In some embodiments, the target detection circuit is an AD current acquisition circuit, which is prior art and will not be elaborated here.
[0069] In steps S3 and S4, it mainly focuses on the final bright moment. In some embodiments, during the calibration process, the input current of the target light-emitting area is continuously increased, such that the first detection current is less than the second detection current, and accordingly, the brightness of the corresponding target light-emitting area increases. When the input current reaches a certain level, the brightness change of the target light-emitting area is small. Therefore, the final bright moment represents the termination node moment when the input current and the brightness change maintain a fixed increment. When exceeding the final bright moment, even if the input current is further increased, the brightness change is not obvious.
[0070] The final bright moment can be confirmed by detecting the brightness values and current values corresponding to multiple moments. For example, a function model is established for derivation and judged according to the derivative, or judged manually, or the final bright moment is set according to empirical data. It is not limited here and is set according to needs.
[0071] Among them, the detection of the second brightness and the second detection current is similar to steps S1 and S2 and will not be elaborated here.
[0072] In step S5, the computing device establishes a parameter model according to the first mapping relationship and the second mapping relationship, so that subsequent brightness regulation of the target light-emitting area can be correspondingly regulated according to the parameter model for precise time regulation. Among them, due to the characteristics of each target light-emitting area, the parameter models of each target light-emitting area may be the same or different. Usually, the parameter model is configured as a parameter model of a proportional function.
[0073] In some embodiments, the target light-emitting area is a separate light-emitting area. During the adjustment process, each light-emitting area is sequentially used as the target light-emitting area for detection and configuration to obtain the parameter model of each light-emitting area. When subsequently using the light source to detect the workpiece, the parameter models of each light-emitting area are adjusted to achieve good illumination effect adjustment of the workpiece and make the detection result more accurate.
[0074] In some embodiments, the computing device can be formed by one execution entity, such as executed by an upper computer. In some embodiments, the computing device can also be formed by multiple execution entities to reduce the computing amount of the execution entity and improve efficiency. The number of execution entities in the computing device is set according to needs and is not limited here.
[0075] Through steps S1 to S5, the first brightness of the target light-emitting area at the start of lighting and the second brightness at the end of lighting are captured by a camera, and the first detected current of the target light-emitting area at the start of lighting and the second detected current at the end of lighting are detected by a target detection circuit. The computing device correspondingly establishes a first mapping relationship and a second mapping relationship, without the need for manual parameter recording, enabling automatic calibration, reducing manual operations, and improving calibration efficiency. In addition, the computing device establishes a parameter model based on the first mapping relationship and the second mapping relationship, which is simple and convenient, so that the calibration of the current and brightness relationship of the target light-emitting area is more accurate and objective, facilitating better adjustment of the brightness to the expected brightness when using the light source to detect the object to be measured subsequently, conducive to ensuring the stability and consistency of the light source brightness, and improving the detection accuracy.
[0076] In some embodiments, after step S5, the method further includes:
[0077] Step S6: Store the parameter model in the light source controller, and the light source controller is electrically connected to n light-emitting areas.
[0078] In this step, for the case where the computing device includes multiple execution entities, at this time steps S1 to S5 are executed by one of the execution entities, and the light source controller serves as another execution entity. In this case, in subsequent use, if steps S1 to S5 do not need to be executed, the light source controller can be directly separated and used to control the light source. The light source controller can be made smaller in size, portable, and have a smaller computing workload.
[0079] Among them, the light source controller is electrically connected to n light-emitting areas, enabling the light source controller to correspondingly control each light-emitting area as needed, such as controlling the brightness change of one of the light-emitting areas, or controlling the brightness adjustment of multiple light-emitting areas respectively.
[0080] In some embodiments, before step S1, the method further includes:
[0081] Step S7: Control the light source controller to sequentially increase the input current of the target light-emitting area at the same time interval. The light source controller is electrically connected to n light-emitting areas, and the input currents at adjacent moments are different and the difference is equal.
[0082] In this step, the same time interval is usually a relatively short time interval. For example, the interval is 0.1 s and the increase is 0.1 mA. The first detected current at the initial lighting moment is 5 mA. Correspondingly, at the 0.1 s, the corresponding detected current is 5.1 mA, and at the 0.2 s, the corresponding detected current is 5.2 mA, and so on. Specific examples are not given one by one here. Among them, the light source controller is used to regulate the target light-emitting area to maintain the consistency of the control of the target light-emitting area during the calibration process and the subsequent test process.
[0083] In some embodiments, the time interval can also be set to 0.2 s, 0.5 s, or other time intervals, and the current increment can be 0.2 mA, 0.5 mA, or other increment values, which are not limited herein and are set according to requirements.
[0084] In some embodiments, to make the parameter model more accurate, the method further includes: obtaining a plurality of intermediate images corresponding to a plurality of time intervals during the light emission process of the target light-emitting area by the camera, and calculating the intermediate brightness corresponding to the target light-emitting area according to each intermediate image;
[0085] obtaining a plurality of intermediate detection currents of the target detection circuit at a plurality of time intervals, and establishing a third mapping relationship according to the intermediate detection currents and the intermediate brightness;
[0086] establishing a parameter model according to the first mapping relationship, the second mapping relationship, and the third mapping relationship.
[0087] In some embodiments, step S3 further includes:
[0088] Step S31: Obtaining a third image of the target light-emitting area at m adjacent moments within a preset time period during the light emission process by the camera, and calculating the third brightness corresponding to the target light-emitting area according to each third image, where m is an integer greater than 2;
[0089] Step S32: Obtaining m third detection currents of the target detection circuit at the moments corresponding to the m third images within the preset time period, where the third detection current at the later moment is greater than the third detection current at the earlier moment, and each third detection current is greater than the first detection current;
[0090] Step S33: Establishing a function model according to the m third brightnesses and the m third detection currents, and determining whether the derivative change amount of the function model exceeds a preset threshold;
[0091] Step S34: If the derivative change amount exceeds the preset threshold, using the corresponding node moment at which the derivative change amount exceeds the preset threshold as the final bright moment, using the third image corresponding to the final bright moment as the second image, and using the third brightness as the second brightness.
[0092] In steps S31 to S34, by establishing a function model to determine whether the derivative change amount of the function model exceeds a preset threshold to determine the final bright moment, the determination of the final bright moment is more accurate, which is beneficial to the accurate control of the light-emitting area.
[0093] In some embodiments, the preset time can be set according to the above-mentioned time interval. For example, the camera is controlled to capture a third image of the target light-emitting area at each time interval, and the target detection circuit correspondingly obtains a third detection current. In some embodiments, the preset time can also be other settings, such as randomly selecting a time node during the light-emitting process of the target light-emitting area, or artificially presetting a time node, which is not limited herein and can be set according to needs.
[0094] In some embodiments, the preset threshold can be set according to the current increment. For example, when the current increment is 0.1 mA, the corresponding preset threshold is set to 0.1. When the change amount of the derivative of the function model does not exceed 0.1, it is considered that the derivative has not changed. When the difference in the change amount of the derivative of the function model exceeds 0.1, it is considered that the derivative has changed significantly. At this time, the corresponding time node of the derivative change can be regarded as the end-brightness moment. In this case, the obtained end-brightness moment can be relatively accurate, so that the brightness of the light-emitting area can be controlled more accurately.
[0095] In some embodiments, the preset threshold can be set smaller, such as 0.05, or other values set according to needs, in order to obtain a relatively accurate end-brightness moment.
[0096] In some embodiments, a multi-channel light source parameter configuration method is also provided. The method includes:
[0097] The camera captures a first image of the target light-emitting area at the start-brightness moment during the light-emitting process and sends the first image to the computing device;
[0098] The computing device calculates the first brightness of the target light-emitting area according to the first image;
[0099] The detection circuit collects the current data of the target light-emitting area at the start-brightness moment to obtain a first detection current;
[0100] The detection circuit sends the first detection current to the computing device, and the computing device establishes a first mapping relationship according to the first detection current and the first brightness;
[0101] The camera captures a second image of the target light-emitting area at the end-brightness moment during the light-emitting process and sends the second image to the computing device;
[0102] The computing device calculates the second brightness of the target light-emitting area according to the second image;
[0103] The detection circuit collects the current data of the target light-emitting area at the end-brightness moment to obtain a second detection current;
[0104] The detection circuit sends the second detection current to the computing device, and the computing device establishes a second mapping relationship according to the second detection current and the second brightness, and the first detection current is less than the second detection current;
[0105] The computing device establishes a parameter model according to the first mapping relationship and the second mapping relationship.
[0106] In some embodiments, such as Figure 2 shown, a multi-channel light source parameter configuration device is provided, including a computing device 10, a camera 20, a detection circuit 30, and a light source 40. The camera 20 is communicatively connected to the computing device 10. The light source 40 includes n light-emitting regions 41. The detection circuit 30 is provided with n and is electrically connected to the light-emitting regions 41 one by one. n is an integer greater than 1;
[0107] The computing device 10 executes the above multi-channel light source parameter configuration method.
[0108] In some embodiments, the n light-emitting regions 41 are evenly distributed in a ring, n≥4, so that the light-emitting regions 41 can be distributed in the front, back, left, and right directions, so as to be able to irradiate the corresponding detection directions of the object to be detected as needed in the front, back, left, and right directions, and achieve good lighting detection.
[0109] In this embodiment, such as Figure 4 shown, the light-emitting region 41 is provided with 40 evenly distributed in a ring and evenly distributed along 8 directions, so as to further divide each direction in the front, back, left, and right directions into two directions. A plurality of light-emitting regions 41 are stacked from the inside to the outside in each direction, so as to cover the object to be measured more comprehensively, and control the brightness of the corresponding light-emitting region 41 according to actual needs to achieve good detection.
[0110] In some embodiments, such as Figure 3 shown, the computing device 10 includes a host computer 11 and a light source configurator 12 communicatively connected to the host computer 11. The light source configurator 12 is electrically connected to the n detection circuits 30;
[0111] The host computer 11 is used for:
[0112] Obtain the first image of the target light-emitting region 41 at the initial bright moment during the light-emitting process of the camera 20, and calculate the first brightness of the target light-emitting region 41 according to the first image;
[0113] Obtain the second image of the target light-emitting region 41 at the final bright moment during the light-emitting process of the camera 20, and calculate the second brightness of the target light-emitting region 41 according to the second image;
[0114] The light source configurator 12 is used for:
[0115] Obtain the first detection current of the target detection circuit 30 connected to the target light-emitting region 41 at the initial bright moment, and establish a first mapping relationship according to the first detection current and the first brightness;
[0116] Obtain the second detection current of the detection circuit 30 at the final light-off moment, establish a second mapping relationship according to the second detection current and the second brightness, and the first detection current is less than the second detection current.
[0117] Establish a parameter model according to the first mapping relationship and the second mapping relationship.
[0118] In some embodiments, the computing device 10 further includes a light source controller 13 communicatively connected to the light source configurator 12. The light source controller 13 is communicatively connected to the host computer 11 and electrically connected to n light-emitting regions 41. The
[0119] light source configurator 12 stores the parameter model in the light source controller 13, and the light source controller 13 adjusts the brightness of the target light-emitting region 41 to be different within a preset time period.
[0120] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by at least one processor, the steps of the multi-channel light source 5 parameter configuration method in the embodiments are implemented.
[0121] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disc, etc. In some embodiments, 0 the computer-readable storage medium may be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a SmartMedia Card (SMC for short), a Secure Digital (SD for short) card, a flash
[0122] card (Flash Card), etc. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is usually used
[0123] to store the operating system installed on the computer device and various application software, such as the program code of the multi-channel light source parameter configuration method in the embodiments. In addition, the computer-readable storage medium can also be used to temporarily store various data that have been output or will be output.
[0124] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device, or divided into multiple computing devices.
[0125] The present invention is described in detail in detail. The present invention is described in detail in detail in detail. The present invention is described in detail in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail in detail. The present invention is described in detail.
[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A multi-channel light source parameter configuration method, characterized in that The light source includes n light-emitting regions and n detection circuits respectively and electrically connected to the light-emitting regions for detecting the current of the light-emitting regions. Each light-emitting region includes at least one light-emitting element, where n is an integer greater than 1. The method includes: Obtain a first image of the target light-emitting region at the start-brightness moment during the light-emitting process of the target light-emitting region by the camera, and calculate the first brightness of the target light-emitting region according to the first image. The start-brightness moment is the moment when the target light-emitting region starts to emit light. Obtain a first detection current of the target detection circuit connected to the target light-emitting region at the start-brightness moment, and establish a first mapping relationship according to the first detection current and the first brightness. Obtain a second image of the target light-emitting region at the end-brightness moment during the light-emitting process of the target light-emitting region by the camera, and calculate the second brightness of the target light-emitting region according to the second image. The end-brightness moment represents the termination node moment when the input current and the brightness change maintain a fixed increment. Obtain a second image of the target light-emitting region at the end-brightness moment during the light-emitting process of the target light-emitting region by the camera, and calculate the second brightness of the target light-emitting region. Further including: Obtain m third images of the target light-emitting region at m adjacent moments within a preset time period during the light-emitting process of the target light-emitting region by the camera, and calculate the corresponding third brightness of the target light-emitting region according to each third image, where m is an integer greater than 2. Obtain m third detection currents of the target detection circuit at the moments corresponding to the m third images within the preset time period. The third detection current at the later moment is greater than the third detection current at the earlier moment, and each third detection current is greater than the first detection current. Establish a function model according to the m third brightnesses and the m third detection currents, and determine whether the derivative change amount of the function model exceeds a preset threshold. If the derivative change amount exceeds the preset threshold, use the corresponding node moment when the derivative change amount exceeds the preset threshold as the end-brightness moment, use the third image corresponding to the end-brightness moment as the second image, and use the third brightness as the second brightness. Obtain a second detection current of the target detection circuit at the end-brightness moment, and establish a second mapping relationship according to the second detection current and the second brightness. The first detection current is less than the second detection current. Obtain a plurality of intermediate images of the target light-emitting region corresponding to a plurality of time intervals during the light-emitting process of the target light-emitting region by the camera, and calculate the corresponding intermediate brightness of the target light-emitting region according to each intermediate image. Obtain a plurality of intermediate detection currents of the target detection circuit at a plurality of time intervals, and establish a third mapping relationship according to the intermediate detection currents and the intermediate brightnesses. Establish a parameter model according to the first mapping relationship, the second mapping relationship, and the third mapping relationship. The parameter models of each target light-emitting region are the same or different. Store the parameter model in a light source controller, and the light source controller is electrically connected to the n light-emitting regions.
2. The multi-channel light source parameter configuration method according to claim 1, wherein Before obtaining the first image of the target light-emitting region at the start-brightness moment during the light-emitting process of the target light-emitting region by the camera and calculating the first brightness of the target light-emitting region according to the first image, the method further includes: The light source controller sequentially increases and adjusts the input current of the target light-emitting area at the same time interval. The light source controller is electrically connected to n light-emitting areas, and the input currents at adjacent times are different and the difference is equal.
3. A multi-channel light source parameter configuration method, characterized in that, The light source includes n light-emitting areas and n detection circuits respectively and electrically connected to the light-emitting areas for detecting the current of the light-emitting areas. Each light-emitting area includes at least one light-emitting element. n is an integer greater than 1. The method includes: The camera captures a first image of the target light-emitting area at the initial lighting moment during the light-emitting process and sends the first image to the computing device; The computing device calculates the first brightness of the target light-emitting area according to the first image; The detection circuit collects the current data of the target light-emitting area at the initial lighting moment to obtain a first detected current. The initial lighting moment is the moment when the target light-emitting area starts to emit light; The detection circuit sends the first detected current to the computing device, and the computing device establishes a first mapping relationship according to the first detected current and the first brightness; The camera captures a second image of the target light-emitting area at the final lighting moment during the light-emitting process and sends the second image to the computing device. The final lighting moment represents the termination node moment when the input current and the brightness change maintain a fixed increment; The computing device calculates the second brightness of the target light-emitting area according to the second image; The computing device calculates the second brightness of the target light-emitting area according to the second image, which further includes: Obtain m third images of the target light-emitting area at m adjacent moments within a preset time period during the light-emitting process of the target light-emitting area, and calculate the corresponding third brightness of the target light-emitting area according to each third image. m is an integer greater than 2; Obtain m third detected currents of the detection circuit at the moments corresponding to the m third images within a preset time period. The third detected current at the later moment is greater than the third detected current at the earlier moment, and each third detected current is greater than the first detected current; Establish a function model according to the m third brightnesses and the m third detected currents, and judge whether the derivative change amount of the function model exceeds a preset threshold; If the derivative change amount exceeds the preset threshold, use the corresponding node moment when the derivative change amount exceeds the preset threshold as the final lighting moment, use the third image corresponding to the final lighting moment as the second image, and use the third brightness as the second brightness; The detection circuit collects the current data of the target light-emitting area at the final lighting moment to obtain a second detected current; The detection circuit sends the second detected current to the computing device, and the computing device establishes a second mapping relationship according to the second detected current and the second brightness. The first detected current is less than the second detected current; The computing device obtains a plurality of intermediate images corresponding to a plurality of time intervals during the light-emitting process of the target light-emitting area by the camera, and calculates the corresponding intermediate brightness of the target light-emitting area according to each intermediate image; The computing device obtains a plurality of intermediate detected currents of the target detection circuit at a plurality of time intervals, and establishes a third mapping relationship according to the intermediate detected currents and the intermediate brightness; The computing device establishes a parameter model according to the first mapping relationship, the second mapping relationship, and the third mapping relationship, and the parameter models of the target light-emitting areas are the same or different; The computing device stores the parameter model in a light source controller, and the light source controller is electrically connected to the n light-emitting areas.
4. A multi-channel light source parameter configuration device, characterized in that, It includes a computing device, a camera, a detection circuit, and a light source. The camera is communicatively connected to the computing device. The light source includes n light-emitting areas. There are n detection circuits provided and they are electrically connected to the light-emitting areas one by one. n is an integer greater than 1; The computing device executes the multi-channel light source parameter configuration method according to any one of claims 1-2.
5. The multi-channel light source parameter configuration device according to claim 4, wherein, The n light-emitting areas are evenly distributed in a ring, and n≥4.
6. The multi-channel light source parameter configuration device according to claim 4, characterized in that The computing device includes a host computer and a light source configurator communicatively connected to the host computer. The light source configurator is electrically connected to the n detection circuits; The host computer is used for: Obtaining a first image of the target light-emitting area at the start-bright moment during the light-emitting process of the target light-emitting area, and calculating the first brightness of the target light-emitting area according to the first image; Obtaining a second image of the target light-emitting area at the end-bright moment during the light-emitting process of the target light-emitting area, and calculating the second brightness of the target light-emitting area according to the second image; The light source configurator is used for: Obtaining a first detection current of the target detection circuit connected to the target light-emitting area at the start-bright moment, and establishing a first mapping relationship according to the first detection current and the first brightness; Obtaining a second detection current of the target detection circuit at the end-bright moment, and establishing a second mapping relationship according to the second detection current and the second brightness. The first detection current is less than the second detection current; Establishing a parameter model according to the first mapping relationship and the second mapping relationship.
7. The multi-channel light source parameter configuration device according to claim 6, wherein The computing device further includes a light source controller communicatively connected to the light source configurator. The light source controller is communicatively connected to the host computer and electrically connected to the n light-emitting areas. The light source configurator stores the parameter model in the light source controller, and the light source controller adjusts the brightness of the target light-emitting area differently within a preset time period.
8. A computer-readable storage medium, characterized in that, It stores a computer program, and the computer program can be executed by at least one processor so that the at least one processor executes the steps of the multi-channel light source parameter configuration method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Method for manufacturing orangic electroluminescent display equipment
CN101355834A
LED calibration method and system
CN114019746A