CN116321605A - Multichannel light source parameter configuration method, device and computer readable storage medium - Google Patents

Multichannel light source parameter configuration method, device and computer readable storage medium Download PDF

Info

Publication number
CN116321605A
CN116321605A CN202310030584.6A CN202310030584A CN116321605A CN 116321605 A CN116321605 A CN 116321605A CN 202310030584 A CN202310030584 A CN 202310030584A CN 116321605 A CN116321605 A CN 116321605A
Authority
CN
China
Prior art keywords
target
light source
brightness
image
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310030584.6A
Other languages
Chinese (zh)
Inventor
段存立
赵常谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GOOD VISION PRECISION INSTRUMENT CO LTD
Original Assignee
GOOD VISION PRECISION INSTRUMENT CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GOOD VISION PRECISION INSTRUMENT CO LTD filed Critical GOOD VISION PRECISION INSTRUMENT CO LTD
Priority to CN202310030584.6A priority Critical patent/CN116321605A/en
Publication of CN116321605A publication Critical patent/CN116321605A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/0242Testing optical properties by measuring geometrical properties or aberrations
    • G01M11/0257Testing optical properties by measuring geometrical properties or aberrations by analyzing the image formed by the object to be tested
    • G01M11/0264Testing optical properties by measuring geometrical properties or aberrations by analyzing the image formed by the object to be tested by using targets or reference patterns
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/14Controlling the light source in response to determined parameters by determining electrical parameters of the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention provides a multichannel light source parameter configuration method, a multichannel light source parameter configuration device and a computer readable storage medium, wherein the multichannel light source parameter configuration method comprises the following steps: acquiring a first image of a camera at a starting moment in the process of aiming at the light emission of a target light-emitting area, and calculating the first brightness of the target light-emitting area according to the first image; acquiring a first detection current of a target detection circuit connected with a target luminous area at a starting moment, and establishing a first mapping relation according to the first detection current and first brightness; acquiring a second image of the camera at a final lighting time in the lighting process of the target lighting area, and calculating the second brightness of the target lighting area according to the second image; acquiring a second detection current of the target detection circuit at the final lighting time, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current; and establishing a parameter model according to the first mapping relation and the second mapping relation. The invention can realize high light source adjustment efficiency and accurate light source adjustment.

Description

Multichannel light source parameter configuration method, device and computer readable storage medium
[ field of technology ]
The present invention relates to the field of image measurement technologies, and in particular, to a method and apparatus for configuring parameters of a multichannel light source, and a computer readable storage medium.
[ background Art ]
In modern industrial production, in order to improve precision and efficiency, a large number of auxiliary production devices such as visual inspection, visual positioning and artificial intelligence are applied, wherein a light source is generally required to be arranged for performing operations such as visual inspection, visual positioning and artificial intelligence, the light source is provided with a plurality of controllable light emitting areas, and the stability of the light source is a key link for ensuring that the device can work normally, so that each light emitting area needs to be calibrated before working to ensure the stability of the light source.
The existing light source adjustment is usually manually operated, and each luminous area is manually adjusted one by one, so that labor and time are wasted, the efficiency is affected, and the output of productivity cannot be met; in addition, under the condition of the same power caused by the differences of materials, production and processing and the like of the light-emitting areas, the brightness of the light-emitting areas is different, the power data of the light-emitting areas are calculated and converted into brightness data through a related formula in the prior art, the brightness calculation is troublesome, and large differences are easy to exist in precision, stability and consistency.
[ invention ]
The present invention is directed to a method and apparatus for configuring parameters of a multi-channel light source, and a computer readable storage medium, so as to solve the above technical problems.
In order to achieve the above object, a first aspect of the present invention provides a multi-channel light source parameter configuration method, where the light source includes n light emitting areas and n detection circuits electrically connected to the light emitting areas in a one-to-one correspondence manner, for detecting currents in 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:
acquiring a first image of a camera at a starting moment in a lighting process of a target lighting area, and calculating first brightness of the target lighting area according to the first image;
acquiring a first detection current of a target detection circuit connected with the target luminous area at the starting moment, and establishing a first mapping relation according to the first detection current and the first brightness;
acquiring a second image of the camera at a final lighting moment in the process of aiming at the light emission of the target light-emitting area, and calculating the second brightness of the target light-emitting area according to the second image;
acquiring a second detection current of the target detection circuit at the final lighting moment, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and establishing a parameter model according to the first mapping relation and the second mapping relation.
In some embodiments, after the parameter model is built according to the first mapping relation and the second mapping relation, the method further includes:
and storing the parameter model to a light source controller, wherein the light source controller is electrically connected with the n luminous areas.
In some embodiments, before the acquiring the first image of the target light-emitting area at the starting moment in the process of light emission of the target light-emitting area by the camera and calculating the first brightness of the target light-emitting area according to the first image, the method further includes:
the light source controllers are controlled to sequentially and incrementally adjust the input current of the target luminous areas at the same time interval, the light source controllers are electrically connected with n luminous areas, and the input currents at adjacent moments are different and equal in difference.
In some embodiments, the obtaining a second image of the camera at a final lighting time in the process of lighting the target lighting area, calculating a second brightness of the target lighting area according to the second image, further includes:
acquiring third images of m adjacent moments in a preset time period in the process of the camera aiming at the light emission of the target light emitting area, and calculating third brightness corresponding to the target light emitting area according to each third image, wherein m is an integer larger than 2;
obtaining m third detection currents of the target detection circuit at corresponding moments of m third images in a preset time period, wherein the third detection currents at the later moments are larger than the third detection currents at the previous moments, and each third detection current is larger than the first detection current;
establishing a function model according to m third brightness and m third detection currents, and judging whether the derivative variation of the function model exceeds a preset threshold value;
and if the derivative variation exceeds the preset threshold, taking the corresponding node moment of the derivative variation exceeding the preset threshold 5 value as the final lighting moment, taking the third image corresponding to the final lighting moment as the second image, and taking the third brightness as the second brightness.
The second aspect of the present invention provides a multi-channel light source parameter configuration method, wherein the light source comprises n light emitting areas and n detection areas electrically connected with the light emitting areas in a one-to-one correspondence manner for detecting the current of the light emitting areas
A circuit, each of the light emitting regions including at least one light emitting member, n being an integer greater than 1, the method comprising: the camera shoots a first image at the starting moment in the process of lighting a target lighting area and sends the first image to the computing equipment;
the computing device calculates first brightness of the target luminous area according to the first image;
the detection circuit acquires current data of the target luminous area at the starting moment to obtain a first detection
A current;
5 the detection circuit sends the first detection current to the computing equipment, and the computing equipment establishes a first mapping relation according to the first detection current and the first brightness;
the camera shoots a second image at the final lighting moment in the lighting process of the target lighting area and sends the second image to the computing equipment;
the computing device calculates second brightness of the target luminous area according to the second image; the detection circuit acquires current data of the target luminous area at the final lighting moment to obtain a second detection
A current;
the detection circuit sends the second detection current to the computing device, and the computing device establishes a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and 5, the computing equipment establishes a parameter model according to the first mapping relation and the second mapping relation.
The invention provides a multichannel light source parameter configuration device, which comprises a computing device, a camera, a detection circuit and a light source, wherein the camera is in communication connection with the computing device, the light source comprises n luminous areas, the detection circuit is provided with n luminous areas and is in one-to-one correspondence electrical connection with the luminous areas, and n is an integer greater than 1;
the computing device performs the multi-channel light source parameter configuration method of any of the above.
In some embodiments, the n light emitting regions are uniformly distributed in a ring shape, and n is equal to or greater than 4.
In some embodiments, the computing device includes a host computer and a light source configurator communicatively connected to the host computer, the light source configurator being electrically connected to n of the detection circuits;
the upper computer is used for:
acquiring a first image of a camera at a starting moment in a lighting process of a target lighting area, and calculating first brightness of the target lighting area according to the first image;
acquiring a second image of the camera at a final lighting moment in the process of aiming at the light emission 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:
acquiring a first detection current of a target detection circuit connected with the target luminous area at the starting moment, and establishing a first mapping relation according to the first detection current and the first brightness;
acquiring a second detection current of the target detection circuit at the final lighting moment, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and establishing a parameter model according to the first mapping relation and the second mapping relation.
In some embodiments, the computing device further comprises a light source controller communicatively connected to the light source configurator, the light source controller communicatively connected to the host computer and electrically connected to the n light emitting areas, the light source configurator storing the parametric model to the light source controller, the light source controller adjusting the brightness of the target light emitting areas to be different within a preset time period.
A fourth aspect of the present invention provides a computer readable storage medium having stored therein a computer program executable by at least one processor to cause the at least one processor to perform the steps of the multi-channel light source parameter configuration method as described in any one of the preceding claims.
The invention has the technical effects that: the computing device correspondingly establishes a first mapping light by shooting a first brightness of a target light-emitting area at a starting moment and a second brightness of the target light-emitting area at a final moment through a camera and detecting a first detection current of the target light-emitting area at the starting moment and a second detection current of the target light-emitting area at the final moment through a target detection circuit
And the second mapping relation does not need to manually record parameters, so that automatic adjustment and correction can be realized, manual operation is reduced, and adjustment efficiency is improved. In addition, the parameter model is built through the computing equipment according to the first mapping light and the second mapping relation, so that the adjustment of the current and brightness relation of the target luminous area is more accurate and objective, brightness can be better adjusted to the expected brightness when a measured object is detected by a light source later, stability and consistency of the light source brightness are guaranteed, and detection precision is improved.
[ description of the drawings ]
0 to more clearly illustrate the technical scheme in the embodiment of the present invention, the embodiment will be described below
The drawings that need to be used are briefly introduced and it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained from them by those skilled in the art without the inventive effort, in which:
FIG. 1 is a flow chart of a method of configuring parameters of a multi-channel light source according to the present invention;
FIG. 2 is a schematic diagram of a configuration of a multi-channel light source parameter configuration device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a configuration of a multi-channel light source parameter configuration device according to another embodiment of the present invention;
fig. 4 is a schematic view of the structure of the light source of the present invention.
[ detailed description ] of the invention
0 below, the technical solution in the embodiment of the present invention will be clarified by combining the drawings in the embodiment of the present invention
It will be apparent that the embodiments described are only some, but not all, of the embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 to 4, the invention provides a multi-channel light source parameter configuration method, wherein a light source 405 includes n light emitting regions 41 and n light emitting regions 41 electrically connected in a one-to-one correspondence for detecting current of the light emitting regions 41
Each light emitting area 41 includes at least one light emitting element 411, n is an integer greater than 1, so that the light emitting areas 41 have a plurality of light emitting areas 41, so that the light emitting areas 41 can be conveniently controlled to emit light in the subsequent detection process, and the light emitting elements 411 can be LEDs or incandescent bulbs or other light emitting lamp bodies. The method is performed by a computing device, which may be a computing device comprising one or more processors, which may be Central Processing Units (CPUs), or specific integrated circuits (ASIC (Application Specific Integrated Circuit)), or one or more integrated circuits configured to implement embodiments of the present invention, without limitation. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may be different types of processors such as, without limitation, one or more CPUs and one or more ASICs.
As shown in fig. 1, the method comprises the steps of:
step S1: and acquiring a first image of the camera at the starting moment in the process of aiming at the light emission of the target light-emitting area, and calculating the first brightness of the target light-emitting area according to the first image.
Step S2: and acquiring a first detection current of a target detection circuit connected with the target luminous area at the starting moment, and establishing a first mapping relation according to the first detection current and the first brightness.
Step S3: and acquiring a second image of the camera at the final lighting time in the lighting process of the target lighting area, and calculating the second brightness of the target lighting area according to the second image.
Step S4: and acquiring a second detection current of the target detection circuit at the final lighting time, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current.
Step S5: and establishing a parameter model according to the first mapping relation and the second mapping relation.
In step S1, the brightness of the target light emitting area changes during the adjustment process so as to have different brightness at different moments, the camera correspondingly shoots a first image of the target light emitting area at the initial 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 the implementation, the camera shooting is automatic shooting, so that the operation efficiency is improved; in other embodiments, the camera may be manually operated to take a photograph.
Wherein, while the resistance of each light emitting region may vary during light emission, different brightness variations are achieved by controlling the power of the target light emitting region during tuning, which is also a fraction of the power. In some embodiments, the brightness change is achieved by controlling an input current change of the target light emitting region, for example, the input current change may be achieved by controlling a resistance value change of an external resistor connected in series with the target light emitting region, or the input current change may be achieved by controlling a voltage change of the target light emitting region. The brightness change of each light emitting area can be considered to be controlled, or the computing device can control the corresponding brightness change of each light emitting area according to the requirement, which is not limited herein.
The start-up time is a time at which the target light-emitting region starts to emit light, and in this case, the start-up time is an initial time, and corresponds to the zeroth time. The target light-emitting region may be a single light-emitting region or may be a plurality of light-emitting regions emitting light at the same time, and is not limited herein, and may be set as needed.
In some embodiments, the camera is an industrial camera to have good shooting performance and to quickly capture images at different moments in time for the target illuminant. In some embodiments, the camera is facing the light emitting side of the light source to enable more accurate capture of the light emitting image of the corresponding target light emitting area.
In some embodiments, the computing device calculates the corresponding first brightness value by calculating the pixel gray value of the first image after the first image is acquired, and the specific image brightness calculation method is the prior art and is not described in detail herein.
In step S2, the target detection circuit detects a current value flowing through the target light emitting area, and the target detection circuit sends a first detection current corresponding to the target light emitting area at the initial lighting time to the computing device, where the computing device establishes a first mapping relationship according to the first detection current and the first brightness, and the first mapping relationship is used to form a calling relationship, so that subsequent computation is convenient, and the first mapping relationship may be represented by a functional relationship, or may be represented by a data table form, or may be represented by a data set, or other representation modes, which are not limited herein, so long as it is represented that the first detection current has a correlation with the first brightness so as to facilitate the call computation, where the first detection current is the lighting current of the target light emitting area.
In some embodiments, the target detection circuit is an AD current acquisition circuit, which is known in the art and is not described in detail herein.
In step S3 and step S4, the final lighting time is mainly aimed at. In some embodiments, during the calibration process, the input current of the target light emitting area is controlled to be continuously increased, so that the first detection current is smaller than the second detection current, and the brightness of the corresponding target light emitting area is correspondingly increased, when the input current reaches a certain degree, the brightness change of the target light emitting area is smaller, so that the final lighting moment represents the moment of a termination node when the input current and the brightness change keep a fixed increment, and when the final lighting moment is exceeded, even if the input current is larger, the brightness change is not obvious.
The final lighting time can be confirmed by detecting brightness values and current values corresponding to a plurality of times, for example, a function model is built to conduct derivation, judgment is carried out according to a derivative, or the final lighting time is set according to human judgment or experience data, the final lighting time is not limited, and the final lighting time is set according to requirements.
The detection of the second brightness and the second detection current is similar to steps S1 and S2, and will not be described herein.
In step S5, the computing device establishes a parameter model according to the first mapping relationship and the second mapping relationship, so that the brightness of the target light-emitting area can be regulated and controlled correspondingly according to the parameter model, and the time is accurately regulated and controlled. Wherein the parameter model of each target light emitting area may be the same or different due to the characteristics of each target light emitting area, and is generally configured as a parameter model of a direct proportion function.
In some embodiments, the target light-emitting areas are independent light-emitting areas, and in the process of teaching, each light-emitting area is sequentially used as the target light-emitting area to be detected and configured to obtain a parameter model of each light-emitting area, so that when a light source is subsequently applied to detect a workpiece, the parameter model of each light-emitting area is adjusted to realize good illumination effect adjustment of the workpiece, and the detection result is more accurate.
In some embodiments, the computing device may be formed by an execution body, such as an upper computer. In some embodiments, the computing device may also be formed of multiple execution bodies to reduce the amount of computation by the execution bodies and increase efficiency. The number of execution subjects in the computing device is set as needed, and is not limited herein.
Through step S1 to step S5, the first brightness of the target luminous area at the initial lighting moment and the second brightness of the target luminous area at the final lighting moment are shot through the camera, the first detection current of the target luminous area at the initial lighting moment and the second detection current of the target luminous area at the final lighting moment are detected through the target detection circuit, the computing equipment correspondingly establishes the first mapping light and the second mapping relation, manual recording of parameters is not needed, automatic adjustment can be achieved, manual operation is reduced, and adjustment efficiency is improved. In addition, the parameter model is built through the computing equipment according to the first mapping light and the second mapping relation, so that the adjustment of the current and brightness relation of the target luminous area is more accurate and objective, brightness can be better adjusted to the expected brightness when a measured object is detected by a light source later, stability and consistency of the light source brightness are guaranteed, and detection precision is improved.
In some embodiments, after step S5, the method further comprises:
step S6: the parametric model is stored to a light source controller, which is electrically connected to the n light emitting areas.
In this step, for the case that the computing device includes a plurality of execution bodies, at this time, step S1 to step S5 are executed by one of the execution bodies, and the light source controller is used as the other execution body, in this case, in subsequent use, if the step S1 to step S5 do not need to be executed, the light source controller can be directly independent, and the light source can be controlled, and the light source controller can be used in a smaller size and in a portable manner, and has a smaller operation amount.
The light source controller is electrically connected with the n light emitting areas, so that the light source controller can correspondingly control each light emitting area according to the requirement, for example, control the brightness change of one light emitting area or control the brightness adjustment of each of the plurality of light emitting areas.
In some embodiments, prior to step S1, the method further comprises:
step S7: the light source controller is controlled to sequentially and incrementally adjust the input current of the target luminous areas at the same time interval, the light source controller is electrically connected with the n luminous areas, and the input currents at adjacent moments are different and equal in difference.
In this step, the same time interval is usually a shorter time interval, for example, the interval 0.1s is increased by 0.1mA, the first detection current at the initial lighting time is 5mA, the corresponding detection current at the time of 0.1s is 5.1mA, the corresponding detection current at the time of 0.2s is 5.2mA, and so on, and is not exemplified herein. The target luminous area is regulated and controlled by the light source controller so as to keep the control consistency of the target luminous area in the regulation process and the subsequent test process.
In some embodiments, the time interval may also be set to 0.2s or 0.5s or other time intervals, and the current increment may be 0.2mA or 0.5mA or other increment value, which is not limited herein, and is set as needed.
In some embodiments, to make the parametric model more accurate, the method further comprises: acquiring a plurality of intermediate images corresponding to a plurality of time intervals in the process of lighting a target lighting area by a camera, and calculating the intermediate brightness corresponding to the target lighting area according to each intermediate image;
acquiring a plurality of intermediate detection currents of the target detection circuit at a plurality of time intervals, and establishing a third mapping relation according to the intermediate detection currents and the intermediate brightness;
and establishing a parameter model according to the first mapping relation, the second mapping relation and the third mapping relation.
In some embodiments, step S3 further comprises:
step S31: acquiring third images of the camera at m adjacent moments in a preset time period in the process of aiming at the light emission of the target light emitting area, and calculating third brightness corresponding to the target light emitting area according to each third image, wherein m is an integer larger than 2;
step S32: obtaining m third detection currents of the target detection circuit at corresponding moments of m third images in a preset time period, wherein the third detection currents at the later moments are larger than the third detection currents at the previous moments, and each third detection current is larger than the first detection current;
step S33: establishing a function model according to m third brightness and m third detection currents, and judging whether the derivative variation of the function model exceeds a preset threshold value;
step S34: if the derivative variation exceeds the preset threshold, the corresponding node moment of the derivative variation exceeding the preset threshold is taken as the final lighting moment, the third image corresponding to the final lighting moment is taken as the second image, and the third brightness is taken as the second brightness.
In step S31 to step S34, whether the derivative variation of the function model exceeds the preset threshold is determined by establishing the function model, so that the final lighting time is determined more accurately, and accurate control of the light emitting area is facilitated.
In some embodiments, the preset time may be set according to the above time intervals, 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 may be other settings, for example, a time node of the target light emitting area in the light emitting process is selected randomly, or a time node is preset manually, which is not limited herein, and is set according to needs.
In some embodiments, the preset threshold may be set according to a current increment, for example, the current increment is 0.1mA, and then the corresponding preset threshold is set to 0.1, when the derivative variation of the function model does not exceed 0.1, the derivative is considered to be unchanged, when the derivative variation difference of the function model exceeds 0.1, the derivative is considered to be changed greatly, at this time, the corresponding time node of the derivative change may be considered to be the final lighting moment, and in this case, the obtained final lighting moment may be more accurate, so that the brightness of the light-emitting area may be controlled more accurately.
In some embodiments, the preset threshold may be set smaller, for example, 0.05, or other values set as needed to obtain a more accurate final lighting time.
In some embodiments, there is also provided a multi-channel light source parameter configuration method, the method including:
the camera shoots a first image at the starting moment in the process of lighting a target lighting area and sends the first image to the computing equipment;
the computing device calculates first brightness of the target luminous area according to the first image;
the detection circuit acquires current data of a target light-emitting area at the starting moment to obtain a first detection current;
the detection circuit sends the first detection current to the computing equipment, and the computing equipment establishes a first mapping relation according to the first detection current and the first brightness;
the camera shoots a second image at the final lighting moment in the lighting process of the target lighting area and sends the second image to the computing equipment;
the computing device calculates second brightness of the target luminous area according to the second image;
the detection circuit acquires current data of the target luminous area at the final lighting moment to obtain a second detection current;
the detection circuit sends a second detection current to the computing equipment, and the computing equipment establishes a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and the computing equipment establishes a parameter model according to the first mapping relation and the second mapping relation.
In some embodiments, as shown in fig. 2, a multi-channel light source parameter configuration apparatus is provided, including a computing device 10, a camera 20, a detection circuit 30 and a light source 40, where the camera 20 is communicatively connected to the computing device 10, the light source 40 includes n light emitting areas 41, the detection circuit 30 is provided with n light emitting areas 41 and is electrically connected in a one-to-one correspondence manner, and n is an integer greater than 1;
computing device 10 performs the multi-channel light source parameter configuration method described above.
In some embodiments, n light emitting areas 41 are uniformly distributed in a ring shape, n is greater than or equal to 4, so that the light emitting areas 41 can be distributed in the front-back left-right direction, so that the detection direction corresponding to the object to be detected can be irradiated in the front-back left-right direction according to the requirement, and good lighting detection is realized.
In this embodiment, as shown in fig. 4, the light emitting areas 41 are uniformly distributed in a ring shape, and are uniformly distributed along 8 directions, so that each direction of the front, rear, left and right directions is further divided into two directions, and each direction is provided with a plurality of light emitting areas 41 in a stacked manner from inside to outside, so that the object to be measured is covered more comprehensively, and the brightness of the corresponding light emitting areas 41 is controlled according to actual needs, thereby realizing good detection.
In some embodiments, as shown in fig. 3, 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 being electrically connected to n detection circuits 30;
the host computer 11 is used for:
acquiring a first image of the camera 20 at the initial lighting time in the lighting process of the target lighting area 41, and calculating the first brightness of the target lighting area 41 according to the first image;
acquiring a second image of the camera 20 at a final lighting time in the lighting process of the target lighting area 41, and calculating the second brightness of the target lighting area 41 according to the second image;
the light source configurator 12 is configured to:
acquiring a first detection current of a target detection circuit 30 connected with a target light-emitting area 41 at a starting moment, and establishing a first mapping relation according to the first detection current and first brightness by 5;
acquiring a second detection current of the target detection circuit 30 at the final lighting moment, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and establishing a parameter model according to the first mapping relation and the second mapping relation.
In some embodiments, the computing device 10 further includes a light source controller 13 communicatively coupled to the light source configurator 12, the light source controller 13 being communicatively coupled to the host computer 11 and electrically coupled to the n light emitting areas 41, the light
The source configurator 12 stores the parameter model to the light source controller 13, and the light source controller 13 adjusts the brightness of the target light emitting region 41 to be different in a preset period of time.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by at least one processor performs the steps of the multi-channel light source 5 parameter configuration method of the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the 0 computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, or a flash memory
Card (Flash Card), etc. Of course, the computer-readable storage medium may also include both an internal 5 storage unit of the computer device and an external storage device thereof. In the present embodiment, a computer-readable storage medium is generally used
The program codes of the multi-channel light source parameter configuration method in the embodiment and the like are stored in an operating system and various application software installed in the computer device. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, and they may be integrated into a single computing device, or distributed
Are distributed over a network of computing devices, and optionally may be implemented with program 5 code executable by the computing devices, such that they may be stored in storage devices for execution by the computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
And 0 or more is only a preferred embodiment of the present invention, and is not limited to the patent scope of the invention, and all equivalent structures or equivalent flow path changes made by the specification and drawings of the present invention or direct or indirect application in other related technical fields are included in the patent protection scope of the present invention.

Claims (10)

1. A method for configuring parameters of a multi-channel light source, wherein the light source includes n light emitting areas and n detection circuits electrically connected to the light emitting areas in a one-to-one correspondence for detecting 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 comprising:
acquiring a first image of a camera at a starting moment in a lighting process of a target lighting area, and calculating first brightness of the target lighting area according to the first image;
acquiring a first detection current of a target detection circuit connected with the target luminous area at the starting moment, and establishing a first mapping relation according to the first detection current and the first brightness;
acquiring a second image of the camera at a final lighting moment in the process of aiming at the light emission of the target light-emitting area, and calculating the second brightness of the target light-emitting area according to the second image;
acquiring a second detection current of the target detection circuit at the final lighting moment, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and establishing a parameter model according to the first mapping relation and the second mapping relation.
2. The method according to claim 1, wherein after the parameter model is built according to the first mapping relationship and the second mapping relationship, the method further comprises:
and storing the parameter model to a light source controller, wherein the light source controller is electrically connected with the n luminous areas.
3. The method according to claim 1, wherein the acquiring the first image of the target light-emitting area at the initial lighting time in the process of light emission of the target light-emitting area by the camera, before calculating the first brightness of the target light-emitting area according to the first image, further comprises:
the light source controllers are controlled to sequentially and incrementally adjust the input current of the target luminous areas at the same time interval, the light source controllers are electrically connected with n luminous areas, and the input currents at adjacent moments are different and equal in difference.
4. The method of claim 1, wherein obtaining a second image of the camera at a final lighting time during the lighting process of the target lighting area, and calculating a second brightness of the target lighting area according to the second image, further comprises:
acquiring third images of m adjacent moments in a preset time period in the process of the camera aiming at the light emission of the target light emitting area, and calculating third brightness corresponding to the target light emitting area according to each third image, wherein m is an integer larger than 2;
obtaining m third detection currents of the target detection circuit at corresponding moments of m third images in a preset time period, wherein the third detection currents at the later moments are larger than the third detection currents at the previous moments, and each third detection current is larger than the first detection current;
establishing a function model according to m third brightness and m third detection currents, and judging whether the derivative variation of the function model exceeds a preset threshold value;
and if the derivative variation exceeds the preset threshold, taking the corresponding node moment of the derivative variation exceeding the preset threshold as the final lighting moment, taking the third image corresponding to the final lighting moment as the second image, and taking the third brightness as the second brightness.
5. A method for configuring parameters of a multi-channel light source, wherein the light source includes n light emitting areas and n detection circuits electrically connected to the light emitting areas in a one-to-one correspondence for detecting 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 comprising:
the method comprises the steps that a camera shoots a first image at a starting moment in the process of lighting a target lighting area and sends the first image to a computing device;
the computing device calculates first brightness of the target luminous area according to the first image;
the detection circuit acquires current data of the target luminous area at the starting moment to obtain a first detection current;
the detection circuit sends the first detection current to the computing equipment, and the computing equipment establishes a first mapping relation according to the first detection current and the first brightness;
the camera shoots a second image at the final lighting moment in the lighting process of the target lighting area and sends the second image to the computing equipment;
the computing device calculates second brightness of the target luminous area according to the second image;
the detection circuit acquires current data of the target luminous area at the final lighting moment to obtain a second detection current;
the detection circuit sends the second detection current to the computing device, and the computing device establishes a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and the computing equipment establishes a parameter model according to the first mapping relation and the second mapping relation.
6. The multichannel light source parameter configuration device is characterized by comprising a computing device, a camera, a detection circuit and a light source, wherein the camera is in communication connection with the computing device, the light source comprises n luminous areas, the detection circuit is provided with n luminous areas and is in one-to-one corresponding electric connection with the luminous areas, and n is an integer larger than 1;
the computing device performs the multi-channel light source parameter configuration method of any one of claims 1-4.
7. The multi-channel light source parameter configuration device of claim 6, wherein n light emitting areas are uniformly distributed in a ring shape, and n is equal to or greater than 4.
8. The multi-channel light source parameter configuration apparatus of claim 6, wherein the computing device comprises a host computer and a light source configurator communicatively connected to the host computer, the light source configurator being electrically connected to n of the detection circuits;
the upper computer is used for:
acquiring a first image of a camera at a starting moment in a lighting process of a target lighting area, and calculating first brightness of the target lighting area according to the first image;
acquiring a second image of the camera at a final lighting moment in the process of aiming at the light emission 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:
acquiring a first detection current of a target detection circuit connected with the target luminous area at the starting moment, and establishing a first mapping relation according to the first detection current and the first brightness;
acquiring a second detection current of the target detection circuit at the final lighting moment, and establishing a second mapping relation according to the second detection current and the second brightness, wherein the first detection current is smaller than the second detection current;
and establishing a parameter model according to the first mapping relation and the second mapping relation.
9. The multi-channel light source parameter configuration apparatus of claim 8, wherein the computing device further comprises a light source controller communicatively coupled to the light source configurator, the light source controller communicatively coupled to the host computer and electrically coupled to the n light emitting zones, the light source configurator storing the parametric model to the light source controller, the light source controller adjusting the brightness of the target light emitting zones to be different over a predetermined period of time.
10. A computer-readable storage medium, having stored therein a computer program executable by at least one processor to cause the at least one processor to perform the steps of the multi-channel light source parameter configuration method of any one of claims 1-4.
CN202310030584.6A 2023-01-10 2023-01-10 Multichannel light source parameter configuration method, device and computer readable storage medium Pending CN116321605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310030584.6A CN116321605A (en) 2023-01-10 2023-01-10 Multichannel light source parameter configuration method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310030584.6A CN116321605A (en) 2023-01-10 2023-01-10 Multichannel light source parameter configuration method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116321605A true CN116321605A (en) 2023-06-23

Family

ID=86827647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310030584.6A Pending CN116321605A (en) 2023-01-10 2023-01-10 Multichannel light source parameter configuration method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116321605A (en)

Similar Documents

Publication Publication Date Title
CN110024020A (en) Display device, calibrating installation and its calibration method
CN106686319B (en) A kind of control method and its device of image exposure
US8384294B2 (en) System and method for color creation and matching
US11454867B2 (en) Method of controlling a segmented flash system
EP1701589B1 (en) Electric circuit and method for monitoring a temperature of a light emitting diode
BRPI0713293A2 (en) method for controlling a lighting system with multiple controllable light sources; and systems for controlling a lighting system and for determining a set of control commands for controlling a lighting system.
CN108234971B (en) White balance parameter determines method, white balance adjustment method and device, storage medium, terminal
CN105530436B (en) Acquisition parameters adjusting method and camera terminal
EP2841989B1 (en) Method and apparatus for generating an infrared illumination beam with a variable illumination pattern
CN104601893B (en) LED spotlight electric current sets apparatus and method, flash photographing device
CN106572310B (en) light supplement intensity control method and camera
KR20160090380A (en) Flash lighting with optimized power-distribution
CN111630449B (en) Segmented LED array with color error correction
US9532024B2 (en) Color calibration and use of multi-LED flash modules
JP2005011628A (en) Lighting device and light source adjustment method of lighting device
CN116321605A (en) Multichannel light source parameter configuration method, device and computer readable storage medium
WO2018189007A1 (en) Controlling a lighting device having at least two electric light sources
CN109041339B (en) A kind of illumination uniformity adjusting method of LED multi-path
US9781802B1 (en) Illumination correcting method and apparatus for at least one light source board
CN117278867B (en) Image sensor chip imaging system, exposure method and device thereof and storage medium
JP7378043B2 (en) Lighting systems and controls
CN114464123B (en) Gamma debugging method and gamma debugging device for display panel
JP6303745B2 (en) LED lighting power supply device, LED lighting device and dimming current adjusting method
CN117769076A (en) Method and device for adjusting brightness of lamp and lamp
JP2023183024A (en) Color adjustment led illumination device and illumination adjustment method

Legal Events

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