Automatic adjustment method and system for cotton grading detection light-filling device
By acquiring real-time optical features and textures under the cotton inspection environment, the position of the compensating illumination and its adjustment parameters are determined, solving the problems of uneven illumination and poor light source stability in cotton grading inspection. This achieves a detection environment with uniform illumination and stable light source, improving the accuracy and efficiency of inspection.
Patent Information
- Application Number
- CN202510919747.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-07-04
AI Technical Summary
Uneven light distribution and poor light source stability in cotton grading testing affect the accuracy and efficiency of the test.
By acquiring the real-time optical characteristics and texture of cotton under the detection environment, the location that needs to be compensated for and its adjustment parameters are determined. Weighted fusion is used to optimize the priority of the compensation illumination and automatically adjust the supplementary lighting device.
This achieves uniform light distribution and stable light source, improving the accuracy and efficiency of cotton grading and testing.
Smart Images

Figure CN120417155B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of cotton quality testing technology, and in particular to an automatic adjustment method and system for a cotton grading and testing supplementary lighting device. Background Technology
[0002] Cotton color grading is an important task in determining cotton quality grade. Different lighting conditions will cause cotton to exhibit different colors and visual effects. In order to ensure the accuracy and consistency of grading results, it is necessary to simulate stable, uniform lighting conditions that are close to ideal sunlight to ensure accurate judgment of cotton color, hue 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, some technical problems still exist in practical applications, such as uneven light distribution and poor stability of the light source as the detection environment changes. Summary of the Invention
[0004] To solve the above-mentioned technical problems, this disclosure provides an automatic adjustment of a cotton grading and detection supplementary lighting device, including the following steps:
[0005] The process involves acquiring real-time optical features and real-time textures of cotton to be graded under real-time illumination within a testing environment; identifying a first optical feature and a first texture that require additional compensating illumination from the real-time optical features and the real-time texture; performing weighted fusion on the first optical feature and the first texture to determine the priority of the compensating illumination; and, based on the priority, determining the locations within the testing environment where additional compensating illumination is required and their corresponding compensating illumination adjustment parameters; and automatically adjusting the supplementary lighting device based on the locations and their corresponding compensating illumination adjustment parameters.
[0006] Furthermore, the weighted fusion of the first optical feature and the first texture to determine the priority of illumination compensation includes:
[0007] Based on the real-time illumination in the detection environment, the weight matrix is optimized to determine the weight coefficients corresponding to the first optical feature and the first texture.
[0008] Based on the weighting coefficients, the first optical feature and the first texture are weighted and fused to obtain the priority of the compensation illumination.
[0009] Furthermore, determining the first optical feature and the first texture in the real-time optical feature and the real-time texture that require additional illumination compensation includes:
[0010] Obtain standard optical features and standard textures under standard illumination conditions for cotton grading and testing; compare the real-time optical features and standard optical features to determine the first optical feature that needs to be supplemented with compensated illumination; compare the real-time texture and standard texture to determine the first texture that needs to be supplemented with compensated illumination.
[0011] Furthermore, the standard optical characteristics are determined based on colorimetry;
[0012] The comparison of the real-time optical features and the standard optical features to determine the first optical feature that requires additional illumination compensation includes:
[0013] Obtain the color temperature standard range, color rendering index, and chromaticity standard 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, color rendering index, and chromaticity coordinates with the color temperature standard range, color rendering index, and chromaticity standard coordinates to determine the first optical feature that needs additional compensation illumination.
[0014] Furthermore, the standard texture is determined based on the standard range of illumination intensity and the uniformity of illumination;
[0015] The step of comparing the real-time texture and the standard texture to determine the first texture that needs additional lighting compensation includes:
[0016] Determine the standard range of illumination intensity and its illuminance uniformity; acquire 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 the illumination intensity comparison result; based on the illuminance uniformity and the illumination intensity comparison result, determine the first texture that needs to be supplemented with compensation illumination.
[0017] Furthermore, determining the locations within the detection environment requiring additional compensation illumination and their corresponding compensation illumination adjustment parameters based on the priority includes:
[0018] Obtain the surface position information of the cotton to be graded and inspected, and establish a coordinate system of the inspection environment based on the surface position information; determine the location for adding compensation lighting based on the coordinate system; input the priority and the location into a pre-constructed lighting compensation model to obtain the location in the inspection environment that needs to add compensation lighting and its corresponding compensation lighting adjustment parameters.
[0019] Furthermore, the compensation illumination adjustment parameters include one or more of the following: beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters of the supplementary lighting device.
[0020] Furthermore, the construction of the illumination compensation model includes:
[0021] Historical adjustment data is acquired, including historical priority, historical location and corresponding historical compensation illumination adjustment parameters. The historical priority and the historical location are related, and the historical priority and the historical compensation illumination adjustment parameters are related. An artificial intelligence model is trained based on the historical priority, historical location and corresponding historical compensation illumination adjustment parameters to obtain an illumination compensation model.
[0022] An automatic adjustment system for a cotton grading and testing supplemental lighting device, the system comprising:
[0023] The acquisition module is used to acquire the optical features and alternating light and dark textures of the cotton to be graded under real-time illumination in the detection environment; the determination module is used to determine the first optical feature and the first texture that require additional compensation illumination from the optical features and the texture; the first optical feature and the first texture are weighted and fused to determine the priority of the compensation illumination, and based on the priority, the location in the detection environment that requires additional compensation illumination and its corresponding compensation illumination adjustment parameters are determined; the automatic adjustment module is used to automatically adjust the supplementary lighting device according to the location and its corresponding compensation illumination adjustment parameters.
[0024] The embodiments disclosed herein have the following technical effects:
[0025] The automatic adjustment method for the cotton grading and detection supplementary lighting device disclosed herein, through the determination of the first optical features and the first texture in the real-time optical features and real-time textures that require additional illumination, can determine the morphology, light transmittance, and fiber characteristics of the cotton to be graded under real-time illumination based on the first optical features and the first texture. Furthermore, the first optical features and the first texture are weighted and fused to determine the priority of the supplementary illumination. This not only allows for the coordinated optimization of features requiring supplementary illumination, avoiding localized supplementary illumination or under-compensation, but also avoids computational redundancy from processing multiple features independently, improving the computational efficiency of determining the supplementary illumination. Generally, the computational efficiency can be improved by about 10%. Then, based on the priority, the locations within the detection environment that require additional illumination and their corresponding supplementary illumination adjustment parameters are determined. This allows for the identification of locations with uneven illumination distribution and poor light source stability from multiple perspectives. Finally, based on the locations and their corresponding supplementary illumination adjustment parameters, the supplementary lighting device is automatically adjusted. This ensures that the adjusted detection environment has a uniform illumination distribution, a stable light source, and meets the illumination requirements of current cotton image acquisition standards, thereby improving the accuracy and efficiency of cotton grading detection. Attached Figure Description
[0026] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0027] Figure 1 This is a flowchart of the automatic adjustment method for the cotton grading and detection supplementary lighting device provided in this embodiment of the invention;
[0028] Figure 2 This is a flowchart of the color adjustment method for the supplementary lighting device provided in the embodiments of this disclosure;
[0029] Figure 3 This is a spectral curve provided in an embodiment of this disclosure;
[0030] Figure 4 This is a flowchart of the method for adjusting the light intensity and illuminance uniformity of the supplementary lighting device provided in this embodiment;
[0031] Figure 5 This is a flowchart of the method for adjusting the light intensity and illuminance uniformity of the supplementary lighting device provided in this embodiment;
[0032] Figure 6 This is a schematic diagram of the automatic adjustment system of the cotton grading and testing supplementary lighting device provided in this embodiment. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are part of this invention.
[0034] Cotton color grading is a crucial step in determining cotton quality. It's based on appearance, using visual inspection to assess the color indicators of cotton samples. Different lighting conditions cause cotton to exhibit different colors and visual effects. To ensure the accuracy and consistency of grading results, it's necessary to simulate stable, uniform lighting conditions that closely approximate ideal sunlight. This allows inspectors to accurately judge the color, luster, and other grading indicators of the cotton. For example, the color and intensity of natural light vary depending on the time of day and weather, affecting the visual judgment of cotton color. Simulated daylight illumination provides a stable and repeatable lighting environment, making the grading results more reliable.
[0035] The continuous advancement of lighting technology has provided better illumination conditions for cotton grading and inspection. For example, the development of LED light source technology has enabled light sources with 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, better simulating ideal daylight conditions under moderately cloudy conditions in northern latitudes. For instance, the D75 standard light source, with a color temperature of 7500K, simulates north-facing daylight, providing an accurate illumination reference for cotton grading. However, in related technologies, inaccurate and uneven adjustment of light intensity in optical design and lighting control systems reduces the accuracy and efficiency of cotton grading and inspection.
[0036] To address the aforementioned technical issues, this disclosure provides an automatic adjustment method and system for a cotton grading and detection supplementary lighting device. Based on the optical characteristics and alternating light and dark textures under real-time illumination in the detection environment, the location requiring additional supplementary lighting and its corresponding adjustment parameters are determined. This allows for accurate adjustment of the supplementary lighting device to achieve standard illumination for cotton grading and detection in the detection area, further improving the accuracy and efficiency of cotton grading and detection.
[0037] Figure 1 This is a flowchart of the automatic adjustment method for the cotton grading and detection supplementary lighting device provided in an embodiment of the present invention. See also... Figure 1 Specifically, it includes the following steps:
[0038] In step S11, the real-time optical features and real-time texture of the cotton to be graded and tested under real-time illumination in the testing environment are obtained.
[0039] In this embodiment of the disclosure, optical features may include the light reflection characteristics of cotton, the light transmission characteristics based on illumination, etc., and texture may include the shape characteristics of cotton, etc.
[0040] For ease of description, this disclosure refers to optical features and textures with alternating light and dark areas under real-time illumination in the detection environment as real-time optical features and real-time textures.
[0041] In step S12, the first optical feature and the first texture that need to be compensated for lighting are determined in the real-time optical feature and the real-time texture.
[0042] In this embodiment of the disclosure, optical features and textures such as uneven reflection features, poor light transmission, and unclear cotton shape can be determined based on the cotton's light reflection characteristics, light transmission characteristics based on illumination, and cotton's shape characteristics.
[0043] For ease of distinction, this disclosure refers to the optical features and textures corresponding to uneven reflection characteristics, poor light transmittance, and unclear cotton morphology as the first optical feature and the first texture.
[0044] In step S13, the first optical feature and the first texture are weighted and fused to determine the priority of the compensation illumination. Based on the priority, the locations in the detection environment that require additional compensation illumination and their corresponding compensation illumination adjustment parameters are determined.
[0045] In this embodiment, the influence of the first optical feature and the first texture on cotton grading detection is determined by combining the real-time illumination in the detection environment. The influence weights of the first optical feature and the first texture on the priority of compensation illumination are then determined. Based on these influence weights and the real-time illumination in the detection environment, the weight matrix is dynamically optimized, and the weight coefficients corresponding to the first optical feature and the first texture in the weight matrix are determined. Furthermore, the first optical feature and the first texture are weighted and fused according to the determined weight coefficients to determine the priority of compensation illumination.
[0046] Taking the first optical feature, which includes chromaticity (A) and illumination intensity (B), and the first texture (C), as an example, the determined weighting coefficients are represented by W1, W2, and W3, and the priority of determining the compensation illumination is explained.
[0047] Lighting compensation priority = W1A + W2B + W3C
[0048] Therefore, based on the determined priority, the specific locations corresponding to uneven cotton reflection characteristics, poor light transmittance, and unclear cotton morphology can be determined one by one, as well as the compensation lighting required for each location, thereby further determining the compensation lighting adjustment parameters corresponding to each location.
[0049] This disclosure determines the priority by weighted fusion of the first optical feature and the first texture, and fuses multiple feature dimensions into a single compensation priority value to obtain the priority order of the compensation illumination. Compared with the compensation illumination determined by relying only on a single feature, it avoids the computational redundancy of processing multiple features independently and improves the computational efficiency of determining the compensation illumination. Generally, the computational efficiency can be improved by about 10%.
[0050] In step S14, the supplementary lighting device is automatically adjusted according to the location and its corresponding compensation lighting adjustment parameters.
[0051] In this embodiment, the supplementary lighting device is a matrix of multiple LEDs arranged in a certain pattern, and each LED can automatically adjust the angle of its emitted beam. It should be noted that each LED can independently adjust the angle of its emitted beam, or they can be combined into multiple groups to adjust the angle of the emitted beam in each group.
[0052] The supplementary lighting device disclosed herein has a small hole in the middle for an image acquisition device. The shape of the small hole can be adjusted according to the image acquisition device to match it. The supplementary lighting device performs illumination compensation based on the adjusted supplementary lighting device, thereby acquiring an image of the cotton.
[0053] In this embodiment, the compensation illumination adjustment parameter can be one or more of the following: beam angle adjustment parameter, brightness adjustment parameter, and light source distribution adjustment parameter of the supplementary lighting device. Thus, each bead lamp included in the supplementary lighting device is adjusted according to the compensation illumination adjustment parameter and its corresponding position.
[0054] This disclosure identifies the first optical feature and the first texture that require additional compensating illumination in the optical features and textures. Based on these first optical features and textures, the morphology, light transmittance, and fiber characteristics of the cotton to be graded under real-time illumination can be determined. Furthermore, based on the first optical features and textures, the locations within the detection environment requiring additional compensating illumination and their corresponding compensating illumination adjustment parameters can be determined. This allows for the identification of locations with uneven illumination distribution and poor light source stability from multiple perspectives. Finally, based on the locations and their corresponding compensating illumination adjustment parameters, the supplementary lighting device is automatically adjusted. The adjusted supplementary lighting device provides uniform illumination distribution and stable light source, and its detection environment meets the current standard illumination requirements for acquiring cotton images. This further enables images acquired based on the supplementary lighting device of this disclosure to intuitively present various information such as the cotton's color, impurities, and fiber morphology. Therefore, the detection of cotton grading based on the images is more accurate, and the efficiency of cotton grading detection is improved.
[0055] Figure 2 This is a flowchart of the method for determining compensated illumination provided in an embodiment of this disclosure. See also... Figure 2 Specifically, it includes the following steps:
[0056] In step S21, standard optical features and standard textures are obtained under standard illumination conditions for cotton grading and testing.
[0057] In this embodiment of the disclosure, standard illumination conditions for cotton grading and testing are obtained. These standard illumination conditions can be determined based on the regulations governing illumination conditions for cotton grading and testing, as well as the color characteristics, luster characteristics, and testing environment of the cotton to be graded.
[0058] In this disclosure, standard lighting conditions may include one or more of the following: chromaticity, illuminance intensity, and illuminance uniformity.
[0059] Further determine the standard optical characteristics and standard texture of the cotton to be graded and tested under standard lighting conditions.
[0060] In step S22, the real-time optical features and the standard optical features are compared to determine the first optical feature that needs to be supplemented with additional illumination compensation.
[0061] In step S23, the real-time texture and the standard texture are compared to determine the first texture that needs to be supplemented with lighting compensation.
[0062] In this embodiment, real-time optical features and standard optical features under real-time illumination are compared and analyzed to identify a first optical feature with uneven reflection and poor light transmittance. Real-time textures with alternating light and dark areas under real-time illumination are compared and analyzed with standard textures to identify a first texture with unclear cotton morphology. Therefore, the first optical feature and the first texture are identified as optical features and textures requiring additional lighting compensation.
[0063] As in the above embodiments, standard optical features can also be determined based on chromaticity. For chromaticity requirements, please refer to the following embodiments.
[0064] Obtain the color temperature standard range, color rendering index, and chromaticity standard coordinates related to 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, color rendering index, and chromaticity coordinates with the color temperature standard range, color rendering index, and chromaticity standard coordinates to determine the first optical feature that requires additional compensation illumination.
[0065] In this embodiment of the disclosure, chromaticity can be determined by color temperature, color rendering index, and chromaticity coordinates, wherein the color temperature can also be limited by spectral distribution power. Spectral distribution power can be found in [reference needed]. Figure 3 , Figure 3 This is a spectral curve provided in an embodiment of this disclosure. For example, when the spectral analysis results show that the spectral characteristics of cotton deviate from the standard value, the supplementary lighting device automatically adjusts the spectral distribution of the light, 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 grading judgment.
[0066] In this disclosure, color temperature can be understood as the absolute temperature of a complete radiator when the chromaticity of the light source is the same as that of the complete radiator at a certain temperature. Its standard range for color temperature can be (7500±200) K.
[0067] The color rendering index (CRI) can be understood as a measure of the color rendering ability of a light source, and its standard CRI is generally no less than 92. The CRI is used to measure the ability of a light source to reproduce the true colors of an object; the higher the CRI, the more accurate the color grading.
[0068] Colorimetric coordinates help to accurately represent the color of cotton, enabling graders to accurately judge and grade the color of cotton under standard lighting conditions. The x-coordinate value is 0.313±0.005, and the y-coordinate value is 0.337±0.005.
[0069] In this embodiment, the real-time color temperature, color rendering index (CRI), and chromaticity coordinates of real-time illumination are analyzed. These coordinates are then compared with standard color temperature ranges, standard CRIs, and standard chromaticity coordinates to determine the compensation chromaticity for the compensation illumination. This ensures the accurate representation of cotton color in the image and allows for more precise color level determination. For example, normally mature white cotton, if its chromaticity is yellowish, might be classified as lightly stained cotton or lightly yellowed cotton, thus lowering its grade.
[0070] In this disclosure, the standard texture is determined based on the standard range of illumination intensity and the uniformity of illumination. Figure 4 This is a flowchart of another method for determining compensated illumination provided in this embodiment of the disclosure. See also... Figure 4 Specifically, it includes the following steps:
[0071] In step S41, the standard range of light intensity and its illuminance uniformity are determined.
[0072] In this embodiment of the disclosure, illuminance can also be referred to as illumination, which can be understood as the luminous flux of visible light per unit area. The standard range of illuminance can be (1100±100) lx.
[0073] Illuminance uniformity is the ratio of the minimum illuminance to the average illuminance on a surface, and its illuminance uniformity is not less than 0.8.
[0074] In step S42, the real-time illumination intensity of the detection area is obtained, and the real-time illumination intensity is compared with the standard range of illumination intensity to determine the illumination intensity comparison result.
[0075] In step S43, based on the comparison results of the illuminance uniformity and the light intensity, a first texture that needs to be supplemented with additional lighting compensation is determined.
[0076] In this embodiment, a light intensity sensor can be installed in the supplementary lighting device in the cotton grading detection area to detect the ambient light intensity in real time. The sensor converts the light signal into an electrical signal and compares it with a preset light intensity standard range to determine the light intensity comparison result. Further, based on the light intensity comparison result and the set illuminance uniformity, a first texture requiring additional compensating lighting within the detection area is determined.
[0077] For example, when the ambient light intensity is lower than the standard value, the supplementary lighting device automatically turns on and gradually increases the brightness until the light intensity detected by the sensor reaches the standard value; when the ambient light intensity is higher than the standard value, the supplementary lighting device automatically reduces the brightness or turns off. For instance, a controller can be used to precisely adjust the drive current of the supplementary lighting device based on the signal fed back from the sensor, thereby achieving stable control of the light intensity.
[0078] In this disclosure, after determining the first optical features and the first texture of the compensating illumination, the compensating illumination adjustment parameters for adjusting the supplementary lighting device can be further determined according to a predetermined illumination compensation model.
[0079] In this embodiment, surface position information of the cotton to be graded is obtained, and a coordinate system of the detection environment is established based on the surface position information. The location for adding compensating illumination is determined based on the coordinate system; the priority and location are input into a pre-constructed illumination compensation model to obtain compensation illumination adjustment parameters.
[0080] In this disclosure, a weighted fusion preprocessing operation of the first optical feature and the first texture feature is used to obtain the priority of the compensation illumination. The determined priority and its location are input into the illumination compensation model, so that the illumination compensation model can directly calculate the compensation illumination adjustment parameters at the location that needs to be compensated illumination according to the priority. This reduces the computational load of the model and improves its computational efficiency, thereby reducing the error of the model calculation to a certain extent. This results in uniform illumination and stable light source in the cotton grading detection environment after illumination compensation, making the detection of cotton grading more accurate.
[0081] The compensation illumination adjustment parameters include one or more of the following: beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters of the supplementary lighting device.
[0082] In this disclosure, the construction of the illumination compensation model can be found in the following embodiments.
[0083] Figure 5 This is a flowchart of a method for constructing an illumination compensation model provided in an embodiment of this disclosure. See also... Figure 5 Specifically, it includes the following steps:
[0084] In step S51, historical adjustment data is acquired.
[0085] The historical adjustment data includes historical priority, historical location, and corresponding historical compensation illumination adjustment parameters.
[0086] The historical priority corresponds to the historical position, and the priority corresponds to the historical compensation illumination adjustment parameter.
[0087] Furthermore, based on the historical priority and location of the compensation illumination, the priority corresponding to the location of the compensation illumination can be determined. Thus, based on the correspondence between the historical priority of the compensation illumination and the historical compensation illumination adjustment parameters, the historical compensation illumination adjustment parameters corresponding to the location of the compensation illumination can be determined.
[0088] In step S52, an artificial intelligence model is trained based on the historical priority, historical location and its corresponding historical compensation illumination adjustment parameters to obtain an illumination compensation model.
[0089] In this disclosure, the historical adjustment data may also include verification adjustment data. The accuracy of the illumination compensation model is verified and adjusted by the verification adjustment data, so that the illumination compensation model can output compensation adjustment parameters more accurately according to the input compensation illumination.
[0090] Furthermore, this disclosure inputs priority and position into the illumination compensation model to obtain beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters for adjusting the supplementary lighting device.
[0091] Furthermore, the supplementary lighting device automatically adjusts the intensity, color temperature, and / or spectral distribution of the light based on the beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters of the supplementary lighting device. For example, if the standard color card is detected to be too yellow, 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 cotton color closer to the true state.
[0092] In this disclosure, influencing factors such as real-time temperature and humidity of the detection environment can also be considered. Furthermore, based on real-time temperature, humidity, and illumination, a compensation illumination is determined, and the supplementary lighting device is automatically adjusted according to the corresponding compensation adjustment parameters to reduce the impact of environmental factors such as temperature and humidity on the appearance, color, and visual effect of cotton, thereby further improving the accuracy and effectiveness of cotton grading detection.
[0093] For example, in high-humidity environments, standard color charts may appear darker. In such cases, the supplemental lighting device can appropriately increase the light intensity or raise the color temperature to compensate for the impact of humidity on the visual appearance of cotton colors. This adaptive adjustment method ensures a stable and accurate lighting environment for cotton grading detection under various environmental conditions.
[0094] Based on Figure 1 Using the same principle as the method shown, this disclosure also provides an automatic adjustment system for a cotton grading and detection supplementary lighting device. Figure 6 This is a schematic diagram of the automatic adjustment system of the cotton grading and detection supplementary lighting device provided in this embodiment. See also... Figure 6 The automatic adjustment system 600 of the cotton grading and testing supplemental lighting device may include:
[0095] The acquisition module 601 is used to acquire the real-time optical features and real-time textures of the cotton to be graded under real-time illumination in the detection environment; the determination module 602 is used to determine the first optical feature and the first texture that need to be supplemented with compensation illumination from the real-time optical features and the real-time texture; the first optical feature and the first texture are weighted and fused to determine the priority of the compensation illumination, and the location in the detection environment that needs to be supplemented with compensation illumination and its corresponding compensation illumination adjustment parameters are determined according to the priority; the automatic adjustment module 603 is used to automatically adjust the supplementary lighting device according to the location and its corresponding compensation illumination adjustment parameters.
[0096] In this disclosure, the determining module 602 is used to optimize the weight matrix based on the real-time illumination in the detection environment, determine the weight coefficients corresponding to the first optical feature and the first texture, and perform weighted fusion on the first optical feature and the first texture according to the weight coefficients to obtain the priority of the compensation illumination.
[0097] In this disclosure, the determining module 602 is used to acquire standard optical features and standard textures under standard illumination conditions for cotton grading detection; compare the real-time optical features and standard optical features to determine a first optical feature that needs to be supplemented with compensating illumination; and compare the real-time texture and standard texture to determine a first texture that needs to be supplemented with compensating illumination.
[0098] In this disclosure, the standard optical characteristics include chromaticity;
[0099] The determining module 602 is used to obtain the color temperature standard range, color rendering index, and chromaticity standard 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, color rendering index, and chromaticity coordinates with the color temperature standard range, color rendering index, and chromaticity standard coordinates to determine the first optical feature that needs to be supplemented with compensation illumination.
[0100] In this disclosure, the standard texture is determined based on a standard range of illumination intensity and illuminance uniformity;
[0101] The determining module 602 is used to determine the standard range of light intensity and its illuminance uniformity; acquire 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; and determine the first texture that needs to be supplemented with compensation light based on the illuminance uniformity and the light intensity comparison result.
[0102] In this disclosure, the determining module 602 is used to acquire surface position information of the cotton to be graded and inspected, and establish a coordinate system of the inspection environment based on the surface position information; determine the position for adding compensating illumination based on the coordinate system; and input the priority and the position into a pre-constructed illumination compensation model to obtain compensation illumination adjustment parameters.
[0103] In this disclosure, the compensation illumination adjustment parameters include one or more of the following: beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters of the supplementary lighting device.
[0104] In this disclosure, the determining module 602 is further configured to acquire historical adjustment data, which includes historical priority, historical position and corresponding historical compensation illumination adjustment parameters. The historical priority and the historical position are related, and the historical priority and the historical compensation illumination adjustment parameters are related. An artificial intelligence model is trained based on the historical priority, historical position and corresponding historical compensation illumination adjustment parameters to obtain an illumination compensation model.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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. An automatic adjustment method for a cotton grading and detection supplementary lighting device, characterized in that, Includes the following steps: Acquire the real-time optical features and real-time texture of light and dark alternation of cotton to be graded and inspected under real-time illumination in the inspection environment; Determine the first optical feature and the first texture that require additional lighting compensation in the real-time optical features and the real-time texture; Specifically, it includes: Obtain standard optical features and standard textures under standard illumination conditions for cotton grading and testing; wherein the standard textures are determined based on the standard range of illumination intensity and illuminance uniformity. By comparing the real-time optical features with the standard optical features, the first optical feature that requires additional illumination compensation is determined. By comparing the real-time texture and the standard texture, a first texture that needs to be supplemented with lighting compensation is determined; specifically, this includes: determining the standard range of illumination intensity and its illuminance uniformity; acquiring 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; and determining the first texture that needs to be supplemented with lighting compensation based on the illuminance uniformity and the illumination intensity comparison result. Assign weights to the first optical feature and the first texture on the priority of compensation illumination, and dynamically optimize the weight matrix by combining the weights and the real-time illumination in the detection environment. Based on the dynamically optimized weight matrix, the first optical feature and the first texture are weighted and fused to determine the priority of the compensation illumination. Based on the priority, the locations in the detection environment that need to be supplemented with compensation illumination and their corresponding compensation illumination adjustment parameters are determined. This includes determining the locations within the testing environment where additional compensation lighting is needed and their corresponding compensation lighting adjustment parameters, including: Obtain the surface position information of the cotton to be graded and inspected, and establish a coordinate system for the inspection environment based on the surface position information; The location for adding compensated lighting is determined based on the coordinate system. The priority and the position are input into a pre-built illumination compensation model to obtain the illumination compensation adjustment parameters corresponding to the coordinate points; The supplementary lighting device is automatically adjusted based on the coordinate points and their corresponding compensation lighting adjustment parameters.
2. The automatic adjustment method for the cotton grading and detection supplementary lighting device according to claim 1, characterized in that, The step of weightedly fusing the first optical feature and the first texture according to the dynamically optimized weight matrix to determine the priority of illumination compensation includes: Based on the weight matrix, determine the weight coefficients corresponding to the first optical feature and the first texture; Based on the weighting coefficients, the first optical feature and the first texture are weighted and fused to obtain the priority of the compensation illumination.
3. The automatic adjustment method for the cotton grading and detection supplementary lighting device according to claim 1, characterized in that, The standard optical characteristics are determined based on colorimetry; The comparison of the real-time optical features and the standard optical features to determine the first optical feature that requires additional illumination compensation includes: Obtain the color temperature standard range, color rendering index, and colorimetric standard coordinates related to the 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, color rendering index, and chromaticity coordinates with the standard color temperature range, the standard color rendering index, and the standard chromaticity coordinates to determine the first optical feature that needs additional compensation illumination.
4. The automatic adjustment method for the cotton grading and detection supplementary lighting device according to claim 1, characterized in that, The compensation illumination adjustment parameters include one or more of the following: beam angle adjustment parameters, brightness adjustment parameters, and light source distribution adjustment parameters of the supplementary lighting device.
5. The automatic adjustment method for the cotton grading and detection supplementary lighting device according to claim 1, characterized in that, The construction of the illumination compensation model includes: Acquire historical adjustment data, which includes historical priority, historical location and its corresponding historical compensation illumination adjustment parameters. The historical priority and the historical location are related, and the historical priority and the historical compensation illumination adjustment parameters are related. An artificial intelligence model is trained based on the priority, historical location, and corresponding historical compensation illumination adjustment parameters to obtain an illumination compensation model.
6. An automatic adjustment system for a cotton grading and detection supplemental lighting device, characterized in that, The system is used to execute the automatic adjustment method of the cotton grading and detection supplementary lighting device according to any one of claims 1-5, the system comprising: The acquisition module is used to acquire the real-time optical features and real-time texture of light and dark alternation of cotton to be graded and inspected under real-time illumination in the inspection environment. A determination module is used to determine the first optical feature and the first texture that need to be supplemented with compensation illumination in the real-time optical features and the real-time texture; assign influence weights to the first optical feature and the first texture on the priority of compensation illumination, and dynamically optimize the weight matrix by combining the influence weights and the real-time illumination in the detection environment; perform weighted fusion on the first optical feature and the first texture according to the dynamically optimized weight matrix to determine the priority of compensation illumination, and determine the location in the detection environment that needs to be supplemented with compensation illumination and its corresponding compensation illumination adjustment parameters according to the priority; An automatic adjustment module is used to automatically adjust the supplementary lighting device according to the location and its corresponding compensation lighting adjustment parameters.
Citation Information
Patent Citations
Image automatic light supplement adjusting method and adjusting system
CN119052439A
Visual inspection method based on fabric physical structure simulation
CN119648636A
Illumination control device for cotton grading chamber
CN216700382U