Automatic adjusting method and system for cotton grading detection light supplementing device
By acquiring the real-time optical features and textures of the cotton detection environment, determining the priority of compensating light and automatically adjusting the fill light device, the problems of uneven light and unstable light source in cotton grading detection are solved, and more efficient and accurate detection is achieved.
Patent Information
- Application Number
- CN202510919747.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-07-04
AI Technical Summary
In cotton grading detection, the uneven light distribution and poor light source stability affect the detection accuracy and efficiency.
By obtaining the real-time optical characteristics and texture of cotton in the detection environment, determining the characteristics and textures that need to be compensated for light, performing weighted fusion to determine priority, and automatically adjusting the position and parameters of the fill light device according to the priority to achieve uniform and stable light.
The accuracy and efficiency of cotton grading detection are improved, the light distribution is uniform, the light source is stable, the detection standards are met, and the calculation efficiency is increased by 10%.
Smart Images

Figure CN120417155A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cotton quality detection, and in particular to an automatic adjustment method and system for a light-filling device for cotton grading detection. Background Art
[0002] Cotton color grading is an important task in determining the quality grade of cotton. Different lighting conditions will cause cotton to present different colors and visual effects. In order to ensure the accuracy and consistency of the grading results, it is necessary to simulate stable, uniform and close to ideal daylight lighting conditions to ensure accurate judgment of cotton color, color characteristics and other grading indicators.
[0003] With the continuous development of science and technology, new lighting and control technologies have provided support for the research and development of lighting devices. However, in actual application, some technical problems still exist, such as uneven light distribution and poor light source stability as the detection environment changes. Summary of the Invention
[0004] In order to solve the above technical problems, the present disclosure provides an automatic adjustment of a cotton grading detection light-filling device, comprising the following steps: The method comprises obtaining real-time optical features and a real-time texture of alternating light and dark of cotton to be graded and inspected under real-time illumination in an inspection environment; determining a first optical feature and a first texture in the real-time optical features and the real-time texture that require additional compensatory lighting; performing weighted fusion on the first optical feature and the first texture to determine a priority of the compensatory lighting, and determining, based on the priority, positions in the inspection environment that require additional compensatory lighting and corresponding compensation lighting adjustment parameters; and automatically adjusting a fill light device based on the positions and the corresponding compensation lighting adjustment parameters.
[0005] Furthermore, performing weighted fusion on the first optical feature and the first texture to determine the priority of compensating illumination includes: Optimizing a weight matrix based on the real-time illumination in the detection environment to determine weight coefficients corresponding to the first optical feature and the first texture; The first optical feature and the first texture are weightedly fused according to the weight coefficient to obtain a priority of compensating illumination.
[0006] Furthermore, the determining of the first optical feature and the first texture in the real-time optical feature and the real-time texture that require additional compensatory lighting includes: Acquire standard optical features and standard textures under standard lighting conditions for cotton grading detection; compare the real-time optical features with the standard optical features to determine a first optical feature requiring additional compensatory lighting; and compare the real-time texture with the standard texture to determine a first texture requiring additional compensatory lighting.
[0007] Further, the standard optical features are determined based on chromaticity; Comparing the real-time optical features with the standard optical features to determine the first optical features that require additional compensatory illumination includes: Obtaining the standard color temperature range, color rendering standard index, and chromaticity standard coordinates related to the chromaticity; analyzing the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time optical features, and comparing the real-time color temperature, the color rendering index, and the chromaticity coordinates with the standard color temperature range, the color rendering standard index, and the chromaticity standard coordinates to determine the first optical features that require additional compensatory illumination.
[0008] Further, the standard texture is determined based on the standard range of illumination intensity and illumination uniformity; Comparing the real-time texture with the standard texture to determine the first texture that requires additional compensatory illumination includes: Determining the standard range of illumination intensity and its illumination uniformity; obtaining the real-time illumination intensity of the detection area, and comparing the real-time illumination intensity with the standard range of illumination intensity to determine the illumination intensity comparison result; based on the illumination uniformity and the illumination intensity comparison result, determining the first texture that requires additional compensatory illumination.
[0009] Further, determining the positions in the detection environment that require additional compensatory illumination and their corresponding compensatory illumination adjustment parameters according to the priority includes: Obtaining the surface position information of the cotton to be classified and detected, and establishing a coordinate system for the detection environment based on the surface position information; determining the positions for additional compensatory illumination based on the coordinate system; inputting the priority and the positions into a pre-constructed illumination compensation model to obtain the positions in the detection environment that require additional compensatory illumination and their corresponding compensatory illumination adjustment parameters.
[0010] Further, the compensatory illumination adjustment parameters include one or more of the beam angle adjustment parameter, brightness adjustment parameter for adjusting the supplementary lighting device, and the light source distribution adjustment parameter of the supplementary lighting device.
[0011] Further, the construction of the illumination compensation model includes: Obtaining historical adjustment data, where the historical adjustment data includes historical priorities, historical positions, and their corresponding historical compensatory illumination adjustment parameters, the historical priorities have a corresponding relationship with the historical positions, and the historical priorities have a corresponding relationship with the historical compensatory illumination adjustment parameters; training an artificial intelligence model based on the historical priorities, historical positions, and their corresponding historical compensatory illumination adjustment parameters to obtain the illumination compensation model.
[0012] An automatic adjustment system for a supplementary lighting device for cotton classification and detection, the system includes: An acquisition module for acquiring the optical characteristics and light and dark alternating textures of the cotton to be classified and detected under real-time illumination in the detection environment; a determination module for determining a first optical characteristic and a first texture that require additional compensation illumination among the optical characteristics and the textures; performing weighted fusion on the first optical characteristic and the first texture to determine the priority of the compensation illumination, and based on the priority, determining the position in the detection environment that requires additional compensation illumination and its corresponding compensation illumination adjustment parameters; an automatic adjustment module for automatically adjusting the light supplement device according to the position and its corresponding compensation illumination adjustment parameters.
[0013] The embodiments of the present disclosure have the following technical effects: The automatic adjustment method for the light supplement device for cotton classification detection provided by the present disclosure can, by determining the first optical characteristic and the first texture that require additional compensation illumination in the real-time optical characteristics and real-time textures, determine the morphology, light transmittance, and fiber and other characteristics of the cotton to be classified and detected under real-time illumination according to the first optical characteristic and the first texture; further perform weighted fusion on the first optical characteristic and the first texture to determine the priority of the compensation illumination, which can not only synergistically optimize the characteristics that need to be supplemented with light, avoid the phenomenon of local light supplement or under-compensation, but also avoid the computational redundancy of independent processing of multiple characteristics, improving the computational efficiency of determining the compensation illumination. Generally, the computational efficiency can be increased by about 10%. Then, based on the priority, determine the position in the detection environment that requires additional compensation illumination and its corresponding compensation illumination adjustment parameters, so as to determine the positions with uneven light distribution and poor light source stability from multiple aspects. Finally, automatically adjust the light supplement device according to the position and its corresponding compensation illumination adjustment parameters. The adjusted detection environment has uniform light distribution, stable light source, and its detection environment meets the light requirements of the current cotton image acquisition standard, thereby improving the accuracy and efficiency of cotton classification detection. Description of the Drawings
[0014] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0015] Figure 1 It is a flowchart of the automatic adjustment method for the light supplement device for cotton classification detection provided by the embodiments of the present invention; Figure 2 It is a flowchart of the chromaticity adjustment method for the light supplement device provided by the embodiments of the present disclosure; Figure 3 It is a spectral curve graph provided by the embodiments of the present disclosure; Figure 4 It is a flowchart of a method for adjusting the light intensity and illuminance uniformity of a supplementary lighting device provided by an embodiment of the present disclosure; Figure 5 It is a flowchart of a method for adjusting the light intensity and illuminance uniformity of a supplementary lighting device provided by an embodiment of the present disclosure; Figure 6 It is a schematic diagram of an automatic adjustment system for a cotton grading detection supplementary lighting device provided by an embodiment of the present disclosure. Detailed implementation manners
[0016] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be described clearly and completely below. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
[0017] Cotton color grade classification is an important task for determining the quality grade of cotton, which is completed by visually inspecting the color indicators of cotton samples based on appearance. Different lighting conditions will make cotton present different colors and visual effects. To ensure the accuracy and consistency of the grading results, it is necessary to simulate stable, uniform and near-ideal daylight lighting conditions to ensure that inspectors can accurately judge grading indicators such as the color and color characteristics of cotton. For example, at different times and in different weather conditions, the color and intensity of natural light will change, which will affect the visual judgment of cotton color. Simulating daylight illumination can provide a stable and repeatable lighting environment, making the grading results more reliable.
[0018] The continuous progress of lighting technology has provided better lighting conditions for cotton grading detection. For example, the development of LED light source technology has made the light source have higher luminous efficiency, more stable performance and a spectral distribution closer to natural light. LED light sources can achieve precise color temperature control and color adjustment, and can better simulate the ideal daylight conditions under moderately cloudy conditions in the northern latitude region. For example, the D75 standard light source has a color temperature of 7500K and simulates north daylight, providing an accurate lighting reference for cotton grading. However, in related technologies, the adjustment of the light intensity of the optical design and lighting control system is inaccurate and unevenly distributed, thus reducing the accuracy and efficiency of cotton grading detection.
[0019] Based on the above technical problems, the present disclosure provides an automatic adjustment method and system for a cotton grading detection supplementary lighting device. According to the optical characteristics and light and dark alternating textures under the real-time illumination of the detection environment, the positions that need to increase the compensation lighting and their corresponding compensation lighting adjustment parameters are determined, so as to accurately adjust the compensation device to achieve the standard lighting for cotton grading detection in the detection area, and further improve the accuracy and efficiency of cotton grading detection.
[0020] Figure 1 is the flowchart of the automatic adjustment method for the cotton grading detection supplementary lighting device provided by the embodiment of the present invention. Refer to Figure 1 , which specifically includes the following steps: In step S11, obtain the real-time optical characteristics and the real-time texture with light and dark intervals of the cotton to be graded and detected under the real-time illumination in the detection environment.
[0021] In the embodiment of the present disclosure, the optical characteristics may include the reflection characteristics of cotton to light, the light transmission characteristics based on illumination, etc., and the texture may include the shape characteristics of cotton, etc.
[0022] For the convenience of description in the present disclosure, the optical characteristics and the texture with light and dark intervals under the real-time illumination in the detection environment are referred to as real-time optical characteristics and real-time texture.
[0023] In step S12, determine the first optical characteristics and the first texture that need to increase the compensation illumination among the real-time optical characteristics and the real-time texture.
[0024] In the embodiment of the present disclosure, the corresponding optical characteristics and texture such as uneven reflection characteristics, poor light transmission, and unclear cotton shape can be determined according to the reflection characteristics of cotton to light, the light transmission characteristics based on illumination, and the shape characteristics of cotton, etc.
[0025] For the convenience of distinction in the present disclosure, the corresponding optical characteristics and texture such as uneven reflection characteristics, poor light transmission, and unclear cotton shape are referred to as the first optical characteristics and the first texture.
[0026] In step S13, perform weighted fusion on the first optical characteristics and the first texture, determine the priority of the compensation illumination, and according to the priority, determine the position in the detection environment where the compensation illumination needs to be increased and its corresponding compensation illumination adjustment parameters.
[0027] In the embodiment of the present disclosure, combine the real-time illumination in the detection environment to determine the influence degree of the first optical characteristics and the first texture on the cotton grading detection, determine the influence weights of the first optical characteristics and the first texture on the priority of the compensation illumination allocation, thereby dynamically optimize the weight matrix according to the influence weights and the real-time illumination in the detection environment, and determine the weight coefficients corresponding to the first optical characteristics and the first texture in the weight matrix. Further perform weighted fusion on the first optical characteristics and the first texture according to the determined weight coefficients to determine the priority of the compensation illumination.
[0028] Taking the first optical characteristics including chromaticity (A) and illumination intensity (B), and the first texture (C) as an example, the determined weight coefficients are represented by W1, W2, and W3 to illustrate the determination of the priority of the compensation illumination.
[0029] Priority of compensating illumination = W1A + W2B + W3C Therefore, according to the determined priority, the specific positions corresponding to the uneven cotton reflection characteristics, poor light transmittance, and unclear cotton morphology, as well as the compensating illumination required for the positions, can be determined one by one, so as to further determine the compensating illumination adjustment parameters corresponding to each position.
[0030] The priority determined by weighted fusion of the first optical feature and the first texture in the present disclosure fuses multiple feature dimensions into a single compensating priority value, obtaining the priority order of compensating illumination. Compared with the compensating illumination determined only relying on a single feature, it avoids the computational redundancy of independent processing of multiple features and improves the computational efficiency of determining compensating illumination. Generally, the computational efficiency can be increased by about 10%.
[0031] In step S14, according to the position and its corresponding compensating illumination adjustment parameters, the light supplementing device is automatically adjusted.
[0032] In the embodiment of the present disclosure, the light supplementing device is a bead lamp matrix composed of multiple bead lamps arranged in a certain pattern, and each bead lamp can automatically adjust the angle of the emitted light beam. It should be noted that each bead lamp can independently adjust the angle of the emitted light beam, or can be combined into multiple groups to adjust the angles of the light beams emitted by the bead lamps in each group.
[0033] In the present disclosure, there is a small hole for the image acquisition device in the middle of the light supplementing device, and the shape of the small hole can be adjusted according to the image acquisition device to make it conform to the image acquisition device. According to the adjusted light supplementing device, light compensation is performed, so as to acquire images of cotton.
[0034] In the embodiment of the present disclosure, the compensating illumination adjustment parameters can be one or more of the light beam angle adjustment parameter, the brightness adjustment parameter, and the light source distribution adjustment parameter of the light supplementing device. Therefore, according to the compensating illumination adjustment parameters and their positions, each bead lamp included in the light supplementing device is adjusted correspondingly.
[0035] By determining the first optical feature and the first texture that require additional compensated illumination among the optical features and textures through the present disclosure, the morphology, light transmittance, and fiber characteristics of cotton under real-time illumination to be classified and detected can be determined based on the first optical feature and the first texture; further, based on the first optical feature and the first texture, the positions within the detection environment that require additional compensated illumination and their corresponding compensated illumination adjustment parameters can be determined, thereby enabling the determination of positions with uneven light distribution and poor light source stability from multiple aspects. Finally, based on the positions and their corresponding compensated illumination adjustment parameters, the light supplement device is automatically adjusted. After adjustment, the light supplement device has uniform light distribution, stable light source, and its detection environment meets the light requirements of the current cotton image acquisition standard. Further, the images acquired by the light supplement device based on the present disclosure can intuitively present various information such as the color, impurities, and fiber morphology of cotton, thereby enabling more accurate detection of cotton classification based on the images and improving the efficiency of cotton classification detection.
[0036] Figure 2 It is a flowchart of the method for determining compensated illumination provided by an embodiment of the present disclosure. Refer to Figure 2 , and specifically includes the following steps: In step S21, obtain the standard optical feature and the standard texture under the standard illumination conditions for cotton classification detection.
[0037] In an embodiment of the present disclosure, obtain the standard illumination conditions for cotton classification detection. The standard illumination conditions can be determined according to the regulations of the illumination conditions for cotton classification detection, as well as the color characteristics, color and luster characteristics of the cotton to be classified and detected, and the detection environment.
[0038] In the present disclosure, the standard illumination conditions may include one or more of chromaticity, illumination intensity, illumination uniformity, etc.
[0039] Further determine the standard optical feature and the standard texture of the cotton to be classified and detected under the standard illumination conditions.
[0040] In step S22, compare the real-time optical feature and the standard optical feature to determine the first optical feature that requires additional compensated illumination.
[0041] In step S23, compare the real-time texture and the standard texture to determine the first texture that requires additional compensated illumination.
[0042] In an embodiment of the present disclosure, compare and analyze the real-time optical feature and the standard optical feature under real-time illumination to determine the first optical feature with uneven reflection characteristics and poor light transmittance. Compare and analyze the real-time texture with alternating light and dark areas and the standard texture under real-time illumination to determine the first texture with unclear cotton morphology, thereby determining the first optical feature and the first texture as the optical feature and texture that require additional compensated illumination.
[0043] In the above embodiments, the standard optical features can also be determined based on chromaticity. For the requirements of chromaticity, refer to the following embodiments.
[0044] Obtain the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates related to chromaticity. Analyze the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time optical features, and compare the real-time color temperature, the color rendering index, and the chromaticity coordinates with the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates to determine the first optical feature that requires additional compensation lighting.
[0045] In the embodiments of the present disclosure, chromaticity can be determined by color temperature, color rendering index, and chromaticity coordinates, where the color temperature can also be restricted by the spectral distribution power. The spectral distribution power can be referred to Figure 3 , Figure 3 is the spectral curve graph provided by the embodiments of the present disclosure. For example, when the spectral analysis result shows that there is a deviation between the spectral characteristics of cotton and the standard value, the supplementary lighting device automatically adjusts the spectral distribution of the lighting, increasing or decreasing the light intensity of certain specific wavelengths, so that the spectrum reflected by the cotton is closer to the spectrum corresponding to the standard grade, thereby accurately presenting the color and characteristics of the cotton and assisting in the grading judgment.
[0046] In the present disclosure, the color temperature can be understood as the absolute temperature of a full radiator when the color quality of the light source is the same as that of a full radiator at a certain temperature. The standard range of its color temperature can be (7500 ± 200) K.
[0047] The color rendering index can be understood as a measure of the color rendering property of a light source, and its standard color rendering index is generally not less than 92. The color rendering index is used to measure the ability of a light source to restore the true color of an object. The higher the color rendering index, the more accurate the color grading.
[0048] The chromaticity coordinates help to accurately present the color of the cotton, enabling the grader to accurately judge and grade the color of the cotton under standard lighting conditions. Among them, the x coordinate value is 0.313 ± 0.005, and the y coordinate value is 0.337 ± 0.005.
[0049] In the embodiments of the present disclosure, analyze the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time lighting, and compare the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time lighting with the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates to determine the compensation chromaticity of the compensation lighting, so as to ensure the presentation of the color of the cotton in the image and enable a more accurate determination of the color level. For example, for normally mature white cotton, if the chromaticity is yellowish, it may be judged as slightly stained cotton or light yellow dyed cotton, thereby reducing its grade.
[0050] In the present disclosure, the standard texture is determined based on the standard range of light intensity and the illuminance uniformity. Figure 4It is a flowchart of another method for determining compensation illumination provided by an embodiment of the present disclosure. Refer to Figure 4 , and specifically includes the following steps: In step S41, determine the standard range of illumination intensity and its uniformity of illuminance.
[0051] In the embodiment of the present disclosure, the illumination intensity can also be referred to as illuminance, which can be understood as the luminous flux of visible light that can be received per unit area. The standard range of its illumination intensity can be (1100±100) lx.
[0052] The uniformity of illuminance is the ratio of the minimum illuminance to the average illuminance on the surface, and its uniformity of illuminance is not less than 0.8.
[0053] In step S42, obtain the real-time illumination intensity of the detection area, compare the real-time illumination intensity with the standard range of illumination intensity, and determine the illumination intensity comparison result.
[0054] In step S43, according to the uniformity of illuminance and the illumination intensity comparison result, determine the first texture that needs to increase compensation illumination.
[0055] In the embodiment of the present disclosure, an illumination intensity sensor can be installed in the light compensation device in the cotton grading detection area to detect the ambient illumination intensity in real time. The sensor converts the optical signal into an electrical signal, compares it with the preset standard range of illumination intensity, and determines the illumination intensity comparison result. Further, according to the illumination intensity comparison result and the set uniformity of illuminance, determine the first texture that needs to increase compensation illumination in the detection area.
[0056] Exemplarily, when the ambient illumination intensity is lower than the standard value, the light compensation device is automatically turned on and the brightness is gradually increased until the illumination intensity detected by the sensor reaches the standard value; when the ambient illumination intensity is higher than the standard value, the light compensation device automatically reduces the brightness or turns off. For example, a controller can be used to precisely adjust the drive current of the light compensation device according to the signal feedback by the sensor, so as to achieve stable control of the illumination intensity.
[0057] In the present disclosure, after determining the first optical feature and the first texture of the compensation illumination, further, according to the pre-determined illumination compensation model, determine the compensation illumination adjustment parameter for adjusting the light compensation device.
[0058] In the embodiment of the present disclosure, obtain the surface position information of the cotton to be graded and detected, and establish a coordinate system of the detection environment based on the surface position information. Determine the position where the compensation illumination is increased based on the coordinate system; input the priority and the position into the pre-constructed illumination compensation model to obtain the compensation illumination adjustment parameter.
[0059] In the present disclosure, through a preprocessing operation of weighted fusion of the first optical feature and the first texture feature, the priority of compensating for illumination is obtained. The determined priority and its position are input into the illumination compensation model, so that the illumination compensation model can directly calculate the compensation illumination adjustment parameters at the positions where illumination needs to be compensated according to the priority, reducing the model calculation amount while improving the calculation efficiency of the model, thereby reducing the error of model calculation to a certain extent, making the illumination of the cotton grading detection environment uniform after compensating for illumination, the light source stable, and the detection of cotton grading more accurate.
[0060] Among them, the compensation illumination adjustment parameters include one or more of the beam angle adjustment parameter for adjusting the light supplement device, the brightness adjustment parameter, and the light source distribution adjustment parameter of the light supplement device.
[0061] In the present disclosure, the construction of the illumination compensation model can be referred to the following embodiments.
[0062] Figure 5 It is a flowchart of the method for constructing an illumination compensation model provided by an embodiment of the present disclosure. Refer to Figure 5 Specifically, it includes the following steps: In step S51, historical adjustment data is obtained.
[0063] The historical adjustment data includes historical priorities, historical positions, and their corresponding historical compensation illumination adjustment parameters.
[0064] Among them, the historical priority has a corresponding relationship with the historical position, and the priority has a corresponding relationship with the historical compensation illumination adjustment parameter.
[0065] Furthermore, according to the historical priority of compensating for illumination and the position of compensating for illumination, the priority corresponding to the position of compensating for illumination can be determined, and thus, according to the corresponding relationship between the historical priority of compensating for illumination and the historical compensation illumination adjustment parameter, the historical compensation illumination adjustment parameter corresponding to the position of compensating for illumination can be determined.
[0066] In step S52, an artificial intelligence model is trained based on the historical priority, historical position, and their corresponding historical compensation illumination adjustment parameters to obtain an illumination compensation model.
[0067] In the present disclosure, the historical adjustment data may further include verification adjustment data, and the accuracy of the illumination compensation model is verified and adjusted through the verification adjustment data, so that the obtained illumination compensation model can more accurately output the compensation adjustment parameters according to the input compensation illumination.
[0068] Furthermore, in the present disclosure, the priority and position are input into the illumination compensation model to obtain the beam angle adjustment parameter, brightness adjustment parameter for adjusting the light supplement device, and the light source distribution adjustment parameter of the light supplement device.
[0069] Furthermore, the supplementary lighting device will automatically adjust the intensity, color temperature, and / or spectral distribution of the light according to the beam angle adjustment parameter, the brightness adjustment parameter, and the light source distribution adjustment parameter of the supplementary lighting device. For example, if it is detected that the color of the standard color card is yellowish, it is determined that the color temperature of the light is too low, and the supplementary lighting device will automatically increase the color temperature to make the color of the cotton closer to the real state.
[0070] In the present disclosure, influencing factors such as the real-time temperature and real-time humidity of the detection environment can also be considered. Further, according to the real-time temperature, real-time humidity, and real-time light, the compensated light is determined, and thus the supplementary lighting device is automatically adjusted according to the corresponding compensation adjustment parameter to reduce the influence of environmental factors such as temperature and humidity on the appearance color and visual effect of the cotton, and further improve the accuracy and effect of the cotton grading detection.
[0071] Exemplarily, in an environment with high humidity, the standard color card may appear dark in color. At this time, the supplementary lighting device can appropriately increase the light intensity or raise the color temperature to compensate for the influence of humidity on the visual effect of the cotton color. Through this adaptive adjustment method, a stable and accurate lighting environment for cotton grading detection can be maintained under different environmental conditions.
[0072] Based on the same principle as the method shown in Figure 1 The present disclosure also provides an automatic adjustment system for a supplementary lighting device for cotton grading detection, Figure 6 which is a schematic diagram of the automatic adjustment system for the supplementary lighting device for cotton grading detection provided by the embodiment of the present disclosure. Refer to Figure 6 The automatic adjustment system 600 for the supplementary lighting device for cotton grading detection may include: An acquisition module 601, configured to acquire the real-time optical characteristics and the real-time texture with light and dark intervals of the cotton to be graded and detected under the real-time light in the detection environment; a determination module 602, configured to determine a first optical characteristic and a first texture that need to increase compensated light in the real-time optical characteristics and the real-time texture; perform weighted fusion on the first optical characteristic and the first texture to determine the priority of the compensated light, and according to the priority, determine the position in the detection environment that needs to increase compensated light and its corresponding compensated light adjustment parameter; an automatic adjustment module 603, configured to automatically adjust the supplementary lighting device according to the position and its corresponding compensated light adjustment parameter.
[0073] In the present disclosure, the determination module 602 is configured to optimize the weight matrix based on the real-time light in the detection environment, determine the weight coefficients corresponding to the first optical characteristic and the first texture; and perform weighted fusion on the first optical characteristic and the first texture according to the weight coefficients to obtain the priority of the compensated light.
[0074] In the present disclosure, the determining module 602 is configured to obtain a standard optical feature and a standard texture under standard illumination conditions for cotton grading detection; compare the real-time optical feature with the standard optical feature to determine a first optical feature that requires additional compensatory illumination; compare the real-time texture with the standard texture to determine a first texture that requires additional compensatory illumination.
[0075] In the present disclosure, the standard optical feature includes chromaticity; The determining module 602 is configured to obtain a standard range of color temperature, a standard color rendering index, and standard chromaticity coordinates related to the chromaticity; analyze the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time optical feature, and compare the real-time color temperature, the color rendering index, and the chromaticity coordinates with the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates to determine a first optical feature that requires additional compensatory illumination.
[0076] In the present disclosure, the standard texture is determined based on a standard range of illumination intensity and illumination uniformity; The determining module 602 is configured to determine a standard range of illumination intensity and its illumination uniformity; obtain the real-time illumination intensity of the detection area, and compare the real-time illumination intensity with the standard range of illumination intensity to determine an illumination intensity comparison result; determine a first texture that requires additional compensatory illumination based on the illumination uniformity and the illumination intensity comparison result.
[0077] In the present disclosure, the determining module 602 is configured to obtain surface position information of the cotton to be graded and detected, and establish a coordinate system of the detection environment based on the surface position information; determine the position for adding compensatory illumination based on the coordinate system; input the priority and the position into a pre-constructed illumination compensation model to obtain compensatory illumination adjustment parameters.
[0078] In the present disclosure, the compensatory illumination adjustment parameters include one or more of a beam angle adjustment parameter for adjusting a light supplement device, a brightness adjustment parameter, and a light source distribution adjustment parameter of the light supplement device.
[0079] In the present disclosure, the determining module 602 is further configured to obtain historical adjustment data, where the historical adjustment data includes a historical priority, a historical position, and their corresponding historical compensatory illumination adjustment parameters, the historical priority has a corresponding relationship with the historical position, and the historical priority has a corresponding relationship with the historical compensatory illumination adjustment parameters; train an artificial intelligence model based on the historical priority, the historical position, and their corresponding historical compensatory illumination adjustment parameters to obtain an illumination compensation model.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically adjusting a light-filling device for cotton grading detection, characterized in that: It includes the following steps: Obtain the real-time optical characteristics and the real-time texture with alternating light and dark of the cotton to be classified and detected under the real-time illumination in the detection environment; Determine the first optical characteristics and the first texture that need to increase the compensation illumination among the real-time optical characteristics and the real-time texture; Allocate the influence weights of the first optical characteristics and the first texture on the priority of the compensation illumination, and dynamically optimize the weight matrix by combining the influence weights and the real-time illumination in the detection environment; According to the dynamically optimized weight matrix, perform weighted fusion on the first optical characteristics and the first texture, determine the priority of the compensation illumination, and determine the position in the detection environment that needs to increase the compensation illumination and its corresponding compensation illumination adjustment parameters according to the priority; Automatically adjust the light supplement device according to the position and its corresponding compensation illumination adjustment parameters; 2. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 1, wherein, The performing weighted fusion on the first optical characteristics and the first texture according to the dynamically optimized weight matrix to determine the priority of the compensation illumination includes: Determine the weight coefficients corresponding to the first optical characteristics and the first texture according to the weight matrix; Perform weighted fusion on the first optical characteristics and the first texture according to the weight coefficients to obtain the priority of the compensation illumination; 3. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 1, characterized in that The determining the first optical characteristics and the first texture that need to increase the compensation illumination among the real-time optical characteristics and the real-time texture includes: Obtain the standard optical characteristics and the standard texture under the standard illumination conditions for cotton grading detection; Compare the real-time optical characteristics with the standard optical characteristics to determine the first optical characteristics that need to increase the compensation illumination; Compare the real-time texture with the standard texture to determine the first texture that need to increase the compensation illumination; 4. The automatic adjustment method for the light-filling device for cotton grading detection according to claim 3, characterized in that: The standard optical characteristics are determined based on chromaticity; The comparing the real-time optical characteristics with the standard optical characteristics to determine the first optical characteristics that need to increase the compensation illumination includes: Obtain the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates related to the chromaticity; Analyze the real-time color temperature, color rendering index, and chromaticity coordinates of the real-time optical characteristics, and compare the real-time color temperature, the color rendering index, and the chromaticity coordinates with the standard range of color temperature, the standard color rendering index, and the standard chromaticity coordinates to determine the first optical characteristics that need to increase the compensation illumination; 5. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 3, characterized in that, The standard texture is determined based on the standard range of light intensity and the illuminance uniformity; The comparing the real-time texture with the standard texture to determine the first texture that need to increase the compensation illumination includes: Determine the standard range of light intensity and its illuminance uniformity; Obtain the real-time light intensity of the detection area, and compare the real-time light intensity with the standard range of light intensity to determine the light intensity comparison result; Determine the first texture that need to increase the compensation illumination according to the illuminance uniformity and the light intensity comparison result; 6. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 1, characterized in that The determining the position in the detection environment that needs to increase the compensation illumination and its corresponding compensation illumination adjustment parameters according to the priority includes: Obtain the surface position information of the cotton to be classified and detected, and establish a coordinate system of the detection environment based on the surface position information; Determine the position to increase the compensation illumination based on the coordinate system; Input the priority and the position into a pre-constructed light compensation model to obtain compensation light adjustment parameters.
7. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 6, characterized in that, The compensation light adjustment parameters include one or more of the beam angle adjustment parameter, the brightness adjustment parameter for adjusting the supplementary light device, and the light source distribution adjustment parameter of the supplementary light device.
8. The automatic adjustment method of the cotton grading detection supplementary lighting device according to claim 6, characterized in that The construction of the light compensation model includes: Obtain historical adjustment data, where the historical adjustment data includes historical priorities, historical positions, and their corresponding historical compensation light adjustment parameters. There is a corresponding relationship between the historical priorities and the historical positions, and there is a corresponding relationship between the historical priorities and the historical compensation light adjustment parameters; Train an artificial intelligence model based on the priority, historical position, and their corresponding historical compensation light adjustment parameters to obtain a light compensation model.
9. An automatic adjustment system for a supplementary lighting device for cotton grading detection, characterized in that, The system includes: An acquisition module for acquiring the real-time optical characteristics and the real-time texture with light and dark intervals of the cotton to be classified and detected under the real-time light in the detection environment; A determination module for determining the first optical characteristics and the first texture that need to increase the compensation light in the real-time optical characteristics and the real-time texture; allocating the influence weights of the first optical characteristics and the first texture on the priority of the compensation light, combining the influence weights and the real-time light in the detection environment, and dynamically optimizing the weight matrix; according to the dynamically optimized weight matrix, performing weighted fusion on the first optical characteristics and the first texture to determine the priority of the compensation light, and according to the priority, determining the position that needs to increase the compensation light in the detection environment and its corresponding compensation light adjustment parameters; An automatic adjustment module for automatically adjusting the supplementary light device according to the position and its corresponding compensation light adjustment parameters.
Citation Information
Patent Citations
Brightness compensation method of LED light source
CN117545123A
Screening and grading system and method for fresh cut Chinese herbaceous peony flowers based on image recognition
CN118968117A
Image automatic light supplement adjusting method and adjusting system
CN119052439A
Visual inspection method based on fabric physical structure simulation
CN119648636A
Adaptive angle adjusting method and system for code scanning camera and electronic equipment
CN119788969A