Waveband control method, system and medium for automatically matching wavebands of industrial lighting based on variable wavebands

By combining multi-band adjustable LED light sources with industrial cameras, the light source mode is dynamically switched to adapt to changing environments, solving the problem of unstable image quality in fixed-band lighting systems under changing environments and achieving efficient improvement in image clarity.

CN121013227BActive Publication Date: 2026-03-24HANGZHOU HUICUI INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-24
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing fixed-band illumination systems cannot adapt to the huge differences in spectral response under varying environments, resulting in unstable image quality and poor imaging effects. In particular, image quality problems frequently occur when there are large differences in the reflectivity of different materials, strong background light or environmental obstruction, or interference such as dust, water mist, and smoke in the detection area.

Method used

By setting band parameters based on multi-band adjustable LED light sources, multiple light source modes are established. Images captured by industrial cameras are preprocessed, and image indicators are analyzed to obtain ambient brightness and interference status. The light source modes are dynamically switched to match different band parameters, thus achieving automatic band matching.

Benefits of technology

It improves image clarity, achieves stable imaging results in changing environments, reduces manual intervention, and automatically completes illumination switching and power adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121013227B_ABST
    Figure CN121013227B_ABST
Patent Text Reader

Abstract

The application provides a wave band control method, system and medium for automatically matching industrial lighting based on variable wave bands, which comprises the following steps: setting wave band parameters based on a multi-wave band adjustable LED light source, establishing multiple light source modes based on the wave band parameters, and establishing different light source environments based on the multiple light source modes; obtaining a current light source mode, obtaining a shooting image under the current light source environment based on an industrial camera, and preprocessing the shooting image; analyzing image indexes based on the preprocessed image, analyzing the interference state of the image indexes based on environmental brightness, and obtaining image interference information; comparing the image interference information with set interference information to obtain an interference deviation rate; dynamically switching the light source mode based on the interference deviation rate, matching different wave band parameters; and judging whether the current wave band parameters meet shooting requirements by analyzing the definition of the image, so as to accurately switch different wave band parameters, realize wave band control of industrial lighting, and improve the shooting definition.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of illumination waveband control, in particular to a waveband control method, system and medium for automatically matching industrial illumination based on variable wavebands. BACKGROUND

[0002] In intelligent manufacturing and machine vision detection systems, factors such as spectral distribution, directivity, and light intensity uniformity of the illumination system directly determine image quality, feature extraction accuracy, and defect recognition reliability. However, in variable environmental conditions, such as the following situations, the imaging effect will be seriously affected:

[0003] 1) Large differences in reflection characteristics of different materials (such as metal, rubber, and ceramic);

[0004] 2) There is strong background light or environmental obstruction;

[0005] 3) There are dust, water mist, smoke, and other interference in the detection area;

[0006] 4) The object surface has both high reflectivity and extremely dark texture areas.

[0007] Fixed waveband illumination systems cannot adapt to the problem of large differences in spectral response in these scenarios, resulting in unstable image quality, and frequent imaging problems such as "overexposure / underexposure", "area loss", and "contrast reduction".

[0008] Traditional industrial illumination systems mostly use the following forms:

[0009] Advantages and limitations of illumination types and wavebands,

[0010] 1) White light LED ring light: low cost, strong versatility, susceptible to reflection interference, and poor penetration;

[0011] 2) Infrared LED: strong penetration of fog and water vapor, incompatible with color vision systems;

[0012] 3) Multiple light sources arranged side by side, with manual switching, multiple wavebands available, and good versatility, but switching relies on manual operation and has poor stability.

[0013] At present, there is a lack of an intelligent light source system that can automatically switch wavebands and brightness configurations according to the environment before image acquisition. SUMMARY

[0014] The purpose of the embodiments of the present application is to provide a waveband control method, system and medium for automatically matching industrial illumination based on variable wavebands, which analyzes the sharpness of the image to determine whether the current waveband parameters meet the shooting requirements, thereby accurately switching different waveband parameters, achieving waveband control of industrial illumination, and improving the shooting sharpness.

[0015] The embodiment of the present application also provides a waveband control method for automatically matching industrial lighting based on variable wavebands, comprising the following steps:

[0016] Setting waveband parameters based on the multi-waveband adjustable LED light source, establishing multiple light source modes based on the waveband parameters, and establishing different light source environments based on the multiple light source modes;

[0017] Obtaining a current light source mode, obtaining a shooting image under the current light source environment based on an industrial camera, and pre-processing the shooting image to obtain a pre-processed image;

[0018] Analyzing image indexes based on the pre-processed image, obtaining environmental brightness, analyzing the interference state of the image indexes based on the environmental brightness, and obtaining image interference information;

[0019] Comparing the image interference information with set interference information to obtain an interference deviation rate;

[0020] Dynamically switching the light source mode based on the interference deviation rate, and matching different waveband parameters.

[0021] Optionally, in the waveband control method for automatically matching industrial lighting based on variable wavebands, the waveband parameters are set based on the multi-waveband adjustable LED light source, the multiple light source modes are established based on the waveband parameters, and the different light source environments are established based on the multiple light source modes, and the method specifically comprises the following steps:

[0022] Obtaining a wavelength range, generating different waveband types based on the wavelength range, and the waveband types include ultraviolet waveband, visible light waveband and near-infrared waveband;

[0023] The wavelength range of the ultraviolet waveband is 200-400 nm, the wavelength range of the visible light waveband is 400-780 nm, and the wavelength range of the near-infrared waveband is 780-1700 nm;

[0024] Matching different waveband parameters based on different wavelength ranges, and the waveband parameters include wavelength, half-peak width and light intensity;

[0025] Establishing a single-waveband pure light color mode based on a single waveband parameter;

[0026] Establishing a mixed light mode based on a proportion parameter set based on two waveband parameters;

[0027] Establishing different light source environments based on the single-waveband pure light color mode and the mixed light mode.

[0028] Optionally, in the waveband control method for automatically matching industrial lighting based on variable wavebands, the current light source mode is obtained, the shooting image under the current light source environment is obtained based on the industrial camera, the shooting image is pre-processed to obtain the pre-processed image, and the method specifically comprises the following steps:

[0029] Set the internal and external parameters of the industrial camera, acquire an image based on the industrial camera, and obtain a photographed image;

[0030] Perform gray value processing on the photographed image to obtain a gray image and extract image features;

[0031] Perform analysis on the image features based on a median filter and a Gaussian filter algorithm, eliminate salt and pepper noise and Gaussian noise in the gray image, and obtain a noise-free image;

[0032] Analyze pixel values of the noise-free image and correct the pixel values based on a pixel threshold;

[0033] Perform pixel enhancement processing on the corrected noise-free image to obtain a preprocessed image.

[0034] Optionally, in the waveband control method for automatically matching industrial lighting based on variable wavebands, the image index is analyzed based on the preprocessed image to obtain an ambient brightness, the interference state of the image index is analyzed based on the ambient brightness, and image interference information is obtained, specifically including:

[0035] The image definition, brightness balance value, and edge contrast are analyzed based on the preprocessed image;

[0036] The image index is analyzed based on the image definition, brightness balance value, and edge contrast;

[0037] The ambient brightness at different time nodes is obtained, and the ambient brightness at different time nodes and the brightness balance value are compared to analyze the interference state of the image index at different time nodes;

[0038] The interference state at different time nodes is subjected to mean value processing to obtain an interference mean value, and the image interference information is generated based on the interference mean value.

[0039] Optionally, in the waveband control method for automatically matching industrial lighting based on variable wavebands, the image interference information is compared with set interference information to obtain an interference deviation rate, specifically including:

[0040] The image interference information is obtained, and the image interference information is compared with the set interference information to obtain an interference difference value;

[0041] A first interference threshold and a second interference threshold are set, and the first interference threshold is smaller than the second interference threshold;

[0042] The interference difference value is compared with the first interference threshold and the second interference threshold;

[0043] If the interference difference value is greater than the first interference threshold and smaller than the second interference threshold, a first deviation rate is generated;

[0044] If the several interference difference values are greater than or equal to the second interference threshold value, a second deviation rate is generated;

[0045] The interference deviation rate is generated based on the first deviation rate and the second deviation rate.

[0046] Optionally, in the waveband control method for automatically matching industrial lighting based on variable wavebands, the light source mode is dynamically switched based on the interference deviation rate, and different waveband parameters are matched, specifically including:

[0047] The interference deviation rate is obtained, and the interference deviation rate is compared with a set interference deviation rate threshold value to obtain deviation rate difference information;

[0048] The deviation rate difference information is compared with set difference information;

[0049] If the deviation rate difference information is greater than the set difference information, the first waveband parameter is matched;

[0050] If the deviation rate difference information is less than or equal to the set difference information, the second waveband parameter is matched.

[0051] In a second aspect, the embodiments of the present application provide a waveband control system for automatically matching industrial lighting based on variable wavebands, which comprises a memory and a processor, the memory comprising a program of a waveband control method for automatically matching industrial lighting based on variable wavebands, and the program of the waveband control method for automatically matching industrial lighting based on variable wavebands is executed by the processor to implement the following steps:

[0052] Waveband parameters are set based on a multi-waveband adjustable LED light source, a plurality of light source modes are established based on the waveband parameters, and different light source environments are established based on the plurality of light source modes;

[0053] A current light source mode is obtained, a shooting image is obtained based on an industrial camera in a current light source environment, the shooting image is preprocessed to obtain a preprocessed image;

[0054] Image indicators are analyzed based on the preprocessed image, environment brightness is obtained, the interference state of the image indicators is analyzed based on the environment brightness, and image interference information is obtained;

[0055] The image interference information is compared with set interference information to obtain an interference deviation rate;

[0056] The light source mode is dynamically switched based on the interference deviation rate, and different waveband parameters are matched.

[0057] Optionally, in the waveband control system for automatically matching industrial lighting based on variable wavebands, the waveband parameters are set based on a multi-waveband adjustable LED light source, the plurality of light source modes are established based on the waveband parameters, and the different light source environments are established based on the plurality of light source modes, specifically including:

[0058] acquire a wavelength range, generate different wavelength band types based on the wavelength range, the wavelength types including an ultraviolet wavelength band, a visible light wavelength band, and a near-infrared wavelength band;

[0059] the wavelength range of the ultraviolet wavelength band is 200-400 nm; the wavelength range of the visible light wavelength band is 400-780 nm; and the wavelength range of the near-infrared wavelength band is 780-1700 nm;

[0060] match different wavelength band parameters based on different wavelength ranges, the wavelength band parameters including wavelength, half-peak width, and light intensity;

[0061] establish a single-wavelength pure light color mode based on a single wavelength band parameter;

[0062] establish a mixed light mode based on a proportion parameter of two wavelength band parameters;

[0063] establish different light source environments based on the single-wavelength pure light color mode and the mixed light mode.

[0064] Optionally, in the wavelength band control system for automatically matching industrial lighting based on variable wavelength bands provided in the embodiments of the present application, a current light source mode is acquired, a shooting image is acquired by an industrial camera under a current light source environment, and the shooting image is preprocessed to obtain a preprocessed image, and the preprocessing specifically includes:

[0065] setting an internal parameter and an external parameter of the industrial camera, acquiring an image by the industrial camera to obtain the shooting image;

[0066] performing a gray value processing on the shooting image to obtain a gray scale image and extracting image features;

[0067] analyzing the image features based on a median filter algorithm and a Gaussian filter algorithm, eliminating salt and pepper noise and Gaussian noise in the gray scale image to obtain a noise-free image;

[0068] analyzing pixel values of the noise-free image and correcting the pixel values based on a pixel threshold value;

[0069] performing a pixel enhancement processing on the corrected noise-free image to obtain the preprocessed image.

[0070] In a third aspect, the embodiments of the present application further provide a computer readable storage medium, wherein a wavelength band control method program for automatically matching industrial lighting based on variable wavelength bands is included in the computer readable storage medium, and the wavelength band control method program for automatically matching industrial lighting based on variable wavelength bands is executed by a processor to implement the steps of the wavelength band control method for automatically matching industrial lighting based on variable wavelength bands as described in any one of the above aspects.

[0071] From the above, the waveband control method, system and medium for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application are provided. The waveband parameters are set based on the multi-waveband adjustable LED light source, a plurality of light source modes are established based on the waveband parameters, and different light source environments are established based on the plurality of light source modes. The current light source mode is obtained, the shooting image is obtained based on the industrial camera in the current light source environment, the shooting image is preprocessed to obtain a preprocessed image, the image index is analyzed based on the preprocessed image, the environment brightness is obtained, the interference state of the image index is analyzed based on the environment brightness, and the image interference information is obtained. The image interference information is compared with the set interference information to obtain the interference deviation rate. The light source mode is dynamically switched based on the interference deviation rate, and different waveband parameters are matched. Whether the current waveband parameter meets the shooting requirement is determined by analyzing the definition of the image, so that the different waveband parameters are accurately switched, the waveband control of the industrial lighting is realized, and the shooting definition is improved. BRIEF DESCRIPTION OF DRAWINGS

[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0073] Figure 1 The flowchart of the waveband control method for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application is provided.

[0074] Figure 2 The light source environment establishment method flowchart of the waveband control method for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application is provided.

[0075] Figure 3 The shooting image processing method flowchart of the waveband control method for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application is provided.

[0076] Figure 4 The image comparison schematic diagram under different illuminations of the waveband control method for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application is provided.

[0077] Figure 5 The block diagram of the waveband control system for automatically matching industrial lighting based on variable wavebands provided by the embodiments of the present application is provided. DETAILED DESCRIPTION

[0078] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0079] It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0080] Please refer to Figure 1 , Figure 1 is a flowchart of a waveband control method for automatically matching industrial lighting based on variable wavebands in some embodiments of the present application. The waveband control method for automatically matching industrial lighting based on variable wavebands is used in a terminal device. The waveband control method for automatically matching industrial lighting based on variable wavebands includes the following steps:

[0081] S101, setting a waveband parameter based on a multi-waveband adjustable LED light source, establishing a plurality of light source modes based on the waveband parameter, and establishing different light source environments based on the plurality of light source modes;

[0082] S102, acquiring a current light source mode, acquiring a shooting image under a current light source environment based on an industrial camera, and pre-processing the shooting image to obtain a pre-processed image;

[0083] S103, analyzing an image index based on the pre-processed image, acquiring an environment brightness, analyzing a disturbance state of the image index based on the environment brightness, and obtaining image disturbance information;

[0084] S104, comparing the image disturbance information with set disturbance information to obtain a disturbance deviation rate;

[0085] S105, dynamically switching a light source mode based on the disturbance deviation rate, and matching different waveband parameters.

[0086] It should be noted that the present application matches appropriate lighting wavebands for different materials and environments, and realizes image brightness / contrast balance.

[0087] Switch to infrared mode in fog, water vapor and other interference environment to enhance the penetration; Switch to narrowband visible light in texture detail recognition task to improve clarity; No need for human intervention, automatic completion of lighting switching and power regulation.

[0088] Ambient brightness analysis: whether the environment exists water mist / light interference is judged by ambient brightness sensor reading E:

[0089] ,

[0090] The gray mean value is represented by The image clarity (texture entropy) is represented by

[0091] In the formula, D represents the comprehensive interference judgment coefficient, which is used to comprehensively evaluate the index of the current image environment quality. The higher the value of D, the greater the current environmental interference, which is usually due to the influence of fog, smoke, water vapor and the like. The definition formula of the comprehensive interference judgment coefficient is as follows:

[0092] ,

[0093] : Gray quality index, reflecting the image brightness balance;

[0094] : Image clarity entropy, that is, the texture information entropy of the image;

[0095] : Current ambient brightness sensor reading;

[0096] , , The weighted coefficients of the corresponding indexes are respectively

[0097] The gray quality item weight is represented by The clarity entropy item weight is represented by The ambient brightness item weight is represented by The texture entropy reference value of the ideal clear image is represented by The current ambient brightness sensor reading is represented by The reference ambient brightness threshold is represented by

[0098] If Switch to infrared lighting mode; otherwise, use visible light mode;

[0099] The switching threshold is represented by, which is a pre-set judgment limit for deciding whether to switch from visible light illumination to infrared illumination;

[0100] Waveband decision and output include:

[0101] According to the decision value, update the output instruction to the controller:

[0102] D>0.7: start infrared array + turn off white light;

[0103] 0.3<D≤0.7: turn on at the same time, use low-power mixed lighting;

[0104] D≤0.3D: turn on white light, infrared off;

[0105] And dynamically adjust the PWM duty cycle P according to the image brightness:

[0106] ,

[0107] Wherein is the upper limit of the expected brightness.

[0108] Please refer to Figure 2 , Figure 2 is a light source environment establishment method flowchart of a waveband control method based on variable waveband automatic matching of industrial lighting in some embodiments of the application. According to the embodiments of the application, waveband parameters are set based on a multi-waveband adjustable LED light source, a plurality of light source modes are established based on the waveband parameters, and different light source environments are established based on the plurality of light source modes, which specifically includes:

[0109] S201, acquiring a wavelength range, generating different waveband types based on the wavelength range, the wavelength type including ultraviolet waveband, visible light waveband and near-infrared waveband;

[0110] The wavelength range of the ultraviolet waveband is 200-400nm; the wavelength range of the visible light waveband is 400-780nm; the wavelength range of the near-infrared waveband is 780-1700nm;

[0111] S202, matching different waveband parameters based on different wavelength ranges, the waveband parameters including wavelength, half peak width and light intensity;

[0112] S203, establishing a single waveband pure light color mode based on a single waveband parameter;

[0113] S204, setting a proportion parameter to establish a mixed light mode based on two waveband parameters;

[0114] S205, establishing different light source environments based on the single waveband pure light color mode and the mixed light mode.

[0115] It should be noted that by combining a single waveband parameter and two waveband parameters, a plurality of light source environments are formed, and infrared lighting and visible light lighting environments are obtained, as shown in Figure 4 The image comparison diagram of infrared lighting and visible light lighting.

[0116] Please refer to Figure 3 , Figure 3 is a shooting image processing method flow chart based on a variable waveband automatic matching industrial lighting waveband control method in some embodiments of the application. According to the embodiment of the application, the current light source mode is obtained, the shooting image is obtained based on the industrial camera in the current light source environment, the shooting image is preprocessed to obtain a pretreated image, and the specific steps include:

[0117] S301, set the internal and external parameters of the industrial camera, acquire the image based on the industrial camera, and obtain a shooting image;

[0118] S302, perform gray value processing on the shooting image to obtain a gray image, and extract image features;

[0119] S303, analyze the image features based on the median filter and Gaussian filter algorithm, eliminate the salt and pepper noise and Gaussian noise in the gray image, and obtain a noise-free image;

[0120] S304, analyze the pixel value of the noise-free image, and correct the pixel value based on a pixel threshold;

[0121] S305, perform pixel enhancement processing on the corrected noise-free image to obtain a pretreated image.

[0122] It should be noted that the gray level and texture quality calculation

[0123] After acquiring the image, the following two types of indicators are analyzed:

[0124] The gray mean calculation formula is as follows:

[0125] ,

[0126] In the formula, represents the gray mean, represents the number of effective pixels, represents the pixel index, represents the gray value of the i-th pixel.

[0127] The image definition (texture entropy) is as follows:

[0128] ;

[0129] Where is the i-th gray level probability of the image, is the number of gray levels, represents the image texture information entropy.

[0130] ​​According to the embodiment of the present application, the image index is analyzed based on the preprocessed image, the ambient brightness is acquired, the interference state of the image index is analyzed based on the ambient brightness, and the image interference information is obtained, specifically including:

[0131] The image definition, the brightness balance value and the edge contrast are analyzed based on the preprocessed image.

[0132] The image index is analyzed based on the image definition, the brightness balance value and the edge contrast.

[0133] The ambient brightness at different time nodes is acquired, the ambient brightness at different time nodes is compared with the brightness balance value, and the interference state of the image index at different time nodes is analyzed.

[0134] The interference mean value is obtained by mean value processing based on the interference state at different time nodes, and the image interference information is generated based on the interference mean value.

[0135] It should be noted that the image index is accurately analyzed by analyzing the image definition, the brightness and the edge contrast, and the interference state of the image index is accurately analyzed, and the image interference information is obtained.

[0136] According to the embodiment of the present application, the image interference information is compared with the set interference information, and the interference deviation rate is obtained, specifically including:

[0137] The image interference information is acquired, and the image interference information is compared with the set interference information to obtain the interference difference value.

[0138] The first interference threshold and the second interference threshold are set, and the first interference threshold is smaller than the second interference threshold.

[0139] The interference difference value is compared with the first interference threshold and the second interference threshold.

[0140] If the interference difference value is greater than the first interference threshold and smaller than the second interference threshold, the first deviation rate is generated.

[0141] If the interference difference value is greater than or equal to the second interference threshold, the second deviation rate is generated.

[0142] The interference deviation rate is generated based on the first deviation rate and the second deviation rate.

[0143] It should be noted that the image interference information is analyzed by setting different interference thresholds, so that the image interference deviation rate is accurately analyzed, and the image abnormal information is analyzed.

[0144] According to the embodiment of the present application, the light source mode is dynamically switched based on the interference deviation rate, and different wave band parameters are matched, specifically including:

[0145] Obtain the interference deviation rate, compare the interference deviation rate with the set interference deviation rate threshold, and obtain the deviation rate difference information;

[0146] Compare the deviation rate difference information with the set difference information;

[0147] If the deviation rate difference information is greater than the set difference information, match the first waveband parameter;

[0148] If the deviation rate difference information is less than or equal to the set difference information, match the second waveband parameter.

[0149] It should be noted that by setting the difference information, the deviation rate difference information is compared, and different waveband parameters are matched according to different comparison results, thereby improving the light source matching degree.

[0150] In a second aspect, the embodiments of the present application provide a waveband control system for automatically matching industrial lighting based on variable wavebands, which comprises a memory and a processor, the memory comprising a program of a waveband control method for automatically matching industrial lighting based on variable wavebands, and the program of the waveband control method for automatically matching industrial lighting based on variable wavebands is executed by the processor to implement the following steps:

[0151] Set waveband parameters based on a multi-waveband adjustable LED light source, establish multiple light source modes based on the waveband parameters, and establish different light source environments based on the multiple light source modes;

[0152] Obtain a current light source mode, obtain a shooting image in the current light source environment based on an industrial camera, pre-process the shooting image to obtain a pre-processed image;

[0153] Analyze image indicators based on the pre-processed image, obtain environmental brightness, analyze the interference state of the image indicators based on the environmental brightness, and obtain image interference information;

[0154] Compare the image interference information with the set interference information to obtain an interference deviation rate;

[0155] Dynamically switch the light source mode based on the interference deviation rate, and match different waveband parameters.

[0156] It should be noted that, as shown in Figure 5 The system composition structure comprises the following components:

[0157] The infrared LED lighting array assembly 1 is arranged around the imaging field of view of the vision camera, the main wavelength is set to 850nm or 940nm, has good smoke and water vapor penetration ability, and is suitable for high humidity environments or shielding interference scenes.

[0158] Narrow-band visible white light illumination array assembly 2, using high-brightness, low-dispersion angle LED lamp beads, the center wavelength is set to 530~580nm, the bandwidth is narrower than 30nm, has strong edge enhancement ability and dispersion suppression characteristics, suitable for detail detection and color consistency high requirement scene.

[0159] Waveband control and switching module 3 has two-way PWM or constant current output capability, can independently or cooperatively drive infrared and visible light illumination units according to system determination logic, and supports power automatic adjustment.

[0160] Environment perception module 4 integrates brightness sensor, infrared reflectivity detector, temperature and humidity sensor or haze sensing device, which is used to judge the brightness state, water vapor concentration or background interference level of the current detection area.

[0161] Image feedback analysis unit 5 cooperates with visual system image processing algorithm to evaluate current image definition, brightness balance, edge contrast and other indicators, and feeds back the analysis results to the control module for waveband selection decision.

[0162] Control logic module 6 receives data from image processing and environment perception, automatically determines the current suitable illumination waveband according to the preset switching threshold, and executes the waveband switching instruction to realize fast response (response time <10ms), and supports the following illumination modes:

[0163] Visible light independent illumination (detail enhancement priority);

[0164] Infrared light independent illumination (penetration fog barrier priority);

[0165] Infrared + visible light mixed illumination (automatic light compensation for uneven brightness area).

[0166] According to the embodiment of the application, the waveband parameters are set based on the multi-waveband adjustable LED light source, the multiple light source modes are established based on the waveband parameters, and the different light source environments are established based on the multiple light source modes, which specifically includes:

[0167] Obtain the wavelength range, generate different waveband types based on the wavelength range, and the wavelength types include ultraviolet waveband, visible light waveband and near-infrared waveband;

[0168] The wavelength range of the ultraviolet waveband is 200-400nm; the wavelength range of the visible light waveband is 400-780nm; and the wavelength range of the near-infrared waveband is 780-1700nm;

[0169] Match different waveband parameters based on different wavelength ranges, and the waveband parameters include wavelength, half peak width and light intensity;

[0170] Establish a single waveband pure light color mode based on a single waveband parameter;

[0171] a proportion parameter is established based on the two waveband parameters to set a mixed light mode;

[0172] different light source environments are established based on the single waveband pure light color mode and the mixed light mode.

[0173] It should be noted that a plurality of light source environments are formed by combining the single waveband parameter and the two waveband parameters, and infrared illumination and visible light illumination environments are obtained, as shown in the following table. Figure 4 The following table shows the image comparison of infrared illumination and visible light illumination.

[0174] According to the embodiment of the present application, the current light source mode is obtained, the shooting image is obtained based on the industrial camera in the current light source environment, and the shooting image is preprocessed to obtain a preprocessed image, specifically including:

[0175] The internal and external parameters of the industrial camera are set, the shooting image is obtained based on the industrial camera, and the shooting image is obtained;

[0176] The shooting image is subjected to gray value processing to obtain a gray image, and the image features are extracted;

[0177] The image features are analyzed based on the median filter and Gaussian filter algorithms, the salt and pepper noise and Gaussian noise in the gray image are removed, and a noise-free image is obtained;

[0178] The pixel values of the noise-free image are analyzed, and the pixel values are corrected based on a pixel threshold;

[0179] The corrected noise-free image is subjected to pixel enhancement processing to obtain a preprocessed image.

[0180] It should be noted that the gray value and texture quality are calculated

[0181] After the image is collected, the following two types of indicators are analyzed:

[0182] The gray value mean calculation formula is as follows:

[0183] ,

[0184] In the formula, represents the gray value mean, represents the number of effective pixels, represents the pixel index, represents the gray value of the i-th pixel.

[0185] The image definition (texture entropy) is calculated as follows:

[0186] ;

[0187] wherein is the i-th pixel of the image. ​Gray scale probability, for gray scale number, Indicates the image texture information entropy.

[0188] According to the embodiment of the present application, the image index is analyzed based on the preprocessed image, the environmental brightness is obtained, the interference state of the image index is analyzed based on the environmental brightness, and the image interference information is obtained, specifically including:

[0189] The image definition, brightness balance value and edge contrast are analyzed based on the preprocessed image;

[0190] The image index is analyzed based on the image definition, brightness balance value and edge contrast;

[0191] The environmental brightness at different time nodes is obtained, the environmental brightness at different time nodes is compared with the brightness balance value, and the interference state of the image index at different time nodes is analyzed;

[0192] The interference mean value is obtained by mean value processing based on the interference state at different time nodes, and the image interference information is generated based on the interference mean value.

[0193] It should be noted that the image index is accurately analyzed by analyzing the image definition, brightness and edge contrast, and the interference state of the image index is accurately analyzed to obtain the image interference information.

[0194] According to the embodiment of the present application, the image interference information is compared with the set interference information to obtain the interference deviation rate, specifically including:

[0195] The image interference information is obtained, and the image interference information is compared with the set interference information to obtain the interference difference value;

[0196] The first interference threshold and the second interference threshold are set, and the first interference threshold is smaller than the second interference threshold;

[0197] The interference difference value is compared with the first interference threshold and the second interference threshold;

[0198] If the interference difference value is greater than the first interference threshold and smaller than the second interference threshold, a first deviation rate is generated;

[0199] If the interference difference value is greater than or equal to the second interference threshold, a second deviation rate is generated;

[0200] The interference deviation rate is generated based on the first deviation rate and the second deviation rate.

[0201] It should be noted that the image interference information is analyzed by setting different interference thresholds, so that the image interference deviation rate is accurately analyzed, and the image abnormal information is analyzed.

[0202] According to the embodiment of the present application, the light source mode is dynamically switched based on the interference deviation rate, and different wave band parameters are matched, specifically including:

[0203] The interference deviation rate is obtained, and the interference deviation rate is compared with a set interference deviation rate threshold to obtain deviation rate difference information;

[0204] The deviation rate difference information is compared with set difference information;

[0205] If the deviation rate difference information is greater than the set difference information, the first wave band parameter is matched;

[0206] If the deviation rate difference information is less than or equal to the set difference information, the second wave band parameter is matched.

[0207] It should be noted that by setting the difference information, the deviation rate difference information is compared, and different wave band parameters are matched according to different comparison results, thereby improving the light source matching degree.

[0208] The third aspect of the present application provides a computer readable storage medium, and the readable storage medium includes a wave band control method program for automatically matching industrial lighting based on variable wave bands, and the wave band control method program for automatically matching industrial lighting based on variable wave bands is executed by a processor to realize the steps of the wave band control method for automatically matching industrial lighting based on variable wave bands according to any one of the above.

[0209] The present application discloses a wave band control method, system and medium for automatically matching industrial lighting based on variable wave bands, which sets wave band parameters based on a multi-wave band adjustable LED light source, establishes multiple light source modes based on the wave band parameters, and establishes different light source environments based on the multiple light source modes; obtains a current light source mode, obtains a shooting image under the current light source environment based on an industrial camera, pre-processes the shooting image to obtain a pre-processed image; analyzes image indexes based on the pre-processed image, obtains environmental brightness, analyzes the interference state of the image indexes based on the environmental brightness to obtain image interference information; compares the image interference information with set interference information to obtain an interference deviation rate; dynamically switches the light source mode based on the interference deviation rate, and matches different wave band parameters; determines whether the current wave band parameter meets the shooting requirement by analyzing the definition of the image, so as to accurately switch different wave band parameters, realize the wave band control of industrial lighting, and improve the shooting definition.

[0210] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are merely exemplary. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0211] The units described as separate components above can or can not be physically separate, and the components shown as units can or can not be physical units; they can be located in one place or distributed on multiple network units; and part or all of the units can be selected as needed to achieve the purposes of the embodiments.

[0212] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; and the integrated unit can be implemented in the form of hardware or hardware plus software functional units.

[0213] Those of ordinary skill in the art can understand that all or part of the steps of the above-described method embodiments can be completed by a program instructing related hardware, and the aforementioned program can be stored in a readable storage medium, and when the program is executed, the steps of the method embodiments are executed; and the aforementioned storage medium includes mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic discs or optical discs, and various media that can store program codes.

[0214] Alternatively, the integrated units of the present application, if implemented in the form of software functional modules and sold or used as independent products, can also be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The aforementioned storage medium includes mobile storage devices, ROMs, RAMs, magnetic discs or optical discs, and various media that can store program codes.

Claims

1. A band control method for industrial lighting based on variable band automatic matching, characterized in that, include: Based on the multi-band adjustable LED light source, set the band parameters, establish multiple light source modes based on the band parameters, and establish different light source environments based on the multiple light source modes; Obtain the current light source mode, capture images based on the industrial camera under the current light source environment, preprocess the captured images to obtain a preprocessed image; Based on the preprocessed image analysis, image metrics are obtained to acquire ambient brightness. Then, based on the ambient brightness, the interference status of these image metrics is analyzed to obtain image interference information. Specifically, this includes obtaining the image's grayscale mean. Image clarity Calculate the comprehensive interference judgment coefficient based on the ambient brightness sensor reading E. The formula is as follows: ; In the formula, This indicates the weight of the grayscale quality item. This represents the weight of the sharpness entropy term. Indicates the weight of the ambient brightness item. The texture entropy reference value represents an ideally sharp image. This indicates the current ambient light sensor reading. Indicates the reference ambient brightness threshold; The image interference information is compared with the set interference information to obtain the interference deviation rate; The system dynamically switches the light source mode based on the interference deviation rate and matches different band parameters. Specifically, this includes: obtaining the interference deviation rate; comparing the interference deviation rate with a set interference deviation rate threshold to obtain deviation rate difference information; comparing the deviation rate difference information with a set difference information; if the deviation rate difference information is greater than the set difference information, then matching the first band parameter; if the deviation rate difference information is less than or equal to the set difference information, then matching the second band parameter.

2. The band control method for industrial lighting based on variable band automatic matching according to claim 1, characterized in that, Based on multi-band adjustable LED light sources, band parameters are set; based on these band parameters, multiple light source modes are established; and based on these multiple light source modes, different light source environments are created. Specifically, this includes: Obtain the wavelength range and generate different band types based on the wavelength range, including ultraviolet band, visible light band and near-infrared band; The wavelength range of the ultraviolet band is 200-400nm; the wavelength range of the visible light band is 400-780nm; and the wavelength range of the near-infrared band is 780-1700nm. Different band parameters are matched based on different wavelength ranges, and the band parameters include wavelength, full width at half maximum (FWHM), and light intensity. Establish a single-band pure light color mode based on single-band parameters; A hybrid optical mode is established by setting proportional parameters based on two band parameters; Different light source environments are established based on single-band pure light color mode and mixed light mode.

3. The band control method for industrial lighting based on variable band automatic matching according to claim 2, characterized in that, Obtain the current light source mode. Based on the image captured by the industrial camera under the current light source environment, preprocess the captured image to obtain a preprocessed image, specifically including: Set the internal and external parameters of the industrial camera, and obtain the captured image based on the image acquired by the industrial camera; The captured image is converted to grayscale to obtain a grayscale image, and image features are extracted. Image features are analyzed based on median filtering and Gaussian filtering algorithms to remove salt-and-pepper noise and Gaussian noise from grayscale images, resulting in noise-free images. Analyze the pixel values ​​of a noise-free image and correct the pixel values ​​based on a pixel threshold; The corrected noise-free image is then subjected to pixel enhancement processing to obtain a preprocessed image.

4. The band control method for industrial lighting based on variable band automatic matching according to claim 3, characterized in that, The image interference information is compared with the set interference information to obtain the interference deviation rate, which specifically includes: Obtain image interference information, compare the image interference information with the set interference information, and obtain the interference difference value; Set a first interference threshold and a second interference threshold, wherein the first interference threshold is less than the second interference threshold; Compare the interference difference with the first interference threshold and the second interference threshold; If the interference difference is greater than the first interference threshold and less than the second interference threshold, then the first deviation rate is generated; If the interference difference is greater than or equal to the second interference threshold, then a second deviation rate is generated; An interference deviation rate is generated based on the first deviation rate and the second deviation rate.

5. A band control system for industrial lighting based on variable band automatic matching, characterized in that, The system includes a memory and a processor. The memory contains a program for a band control method based on variable band automatic matching of industrial lighting. When the program for the band control method based on variable band automatic matching of industrial lighting is executed by the processor, it performs the following steps: Based on the multi-band adjustable LED light source, set the band parameters, establish multiple light source modes based on the band parameters, and establish different light source environments based on the multiple light source modes; Obtain the current light source mode, capture images based on the industrial camera under the current light source environment, preprocess the captured images to obtain a preprocessed image; Based on the preprocessed image analysis, image metrics are obtained to acquire ambient brightness. Then, based on the ambient brightness, the interference status of these image metrics is analyzed to obtain image interference information. Specifically, this includes obtaining the image's grayscale mean. Image clarity Calculate the comprehensive interference judgment coefficient based on the ambient brightness sensor reading E. The formula is as follows: ; In the formula, This indicates the weight of the grayscale quality item. This represents the weight of the sharpness entropy term. Indicates the weight of the ambient brightness item. The texture entropy reference value represents an ideally sharp image. This indicates the current ambient light sensor reading. Indicates the reference ambient brightness threshold; The image interference information is compared with the set interference information to obtain the interference deviation rate; The system dynamically switches the light source mode based on the interference deviation rate and matches different band parameters. Specifically, this includes: obtaining the interference deviation rate; comparing the interference deviation rate with a set interference deviation rate threshold to obtain deviation rate difference information; comparing the deviation rate difference information with a set difference information; if the deviation rate difference information is greater than the set difference information, then matching the first band parameter; if the deviation rate difference information is less than or equal to the set difference information, then matching the second band parameter.

6. The band control system for industrial lighting based on variable band automatic matching according to claim 5, characterized in that, Based on multi-band adjustable LED light sources, band parameters are set; based on these band parameters, multiple light source modes are established; and based on these multiple light source modes, different light source environments are created. Specifically, this includes: Obtain the wavelength range and generate different band types based on the wavelength range, including ultraviolet band, visible light band and near-infrared band; The wavelength range of the ultraviolet band is 200-400nm; the wavelength range of the visible light band is 400-780nm; and the wavelength range of the near-infrared band is 780-1700nm. Different band parameters are matched based on different wavelength ranges, and the band parameters include wavelength, full width at half maximum (FWHM), and light intensity. Establish a single-band pure light color mode based on single-band parameters; A hybrid optical mode is established by setting proportional parameters based on two band parameters; Different light source environments are established based on single-band pure light color mode and mixed light mode.

7. The band control system for industrial lighting based on variable band automatic matching according to claim 6, characterized in that, Obtain the current light source mode. Based on the image captured by the industrial camera under the current light source environment, preprocess the captured image to obtain a preprocessed image, specifically including: Set the internal and external parameters of the industrial camera, and obtain the captured image based on the image acquired by the industrial camera; The captured image is converted to grayscale to obtain a grayscale image, and image features are extracted. Image features are analyzed based on median filtering and Gaussian filtering algorithms to remove salt-and-pepper noise and Gaussian noise from grayscale images, resulting in noise-free images. Analyze the pixel values ​​of a noise-free image and correct the pixel values ​​based on a pixel threshold; The corrected noise-free image is then subjected to pixel enhancement processing to obtain a preprocessed image.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a band control method program for automatically matching industrial lighting with variable bands. When the band control method program for automatically matching industrial lighting with variable bands is executed by a processor, it implements the steps of the band control method for automatically matching industrial lighting with variable bands as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Shooting illumination adjusting method and shooting illumination adjusting system

    CN114283271A