A method, system and readable storage medium for measuring and positioning a spectral-composite color-brightness meter
By generating a light spot in a spectral composite colorimeter and performing image analysis, the position offset and diameter difference parameters are calculated and adjusted, thus solving the problem of measurement point offset during transportation of the spectral composite colorimeter and achieving efficient and accurate measurement positioning.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU JINGZHIDA INTELLIGENT EQUIP TECH CO LTD
- Filing Date
- 2026-04-14
- Publication Date
- 2026-06-12
AI Technical Summary
Spectral composite colorimeters are susceptible to vibration during transportation, which can cause the measurement point to shift and affect the accuracy of the measurement results. Furthermore, existing positioning methods are cumbersome and cannot determine the specific size of the measurement point.
By placing a plane mirror below the lens, a light spot is generated and image analysis is performed to calculate the pixel-level diameter and center position coordinates of the light spot. Combined with the lens magnification, this is converted into the physical diameter, and the position offset and diameter difference parameters are calculated to adjust the measurement positioning of the colorimeter.
It simplifies the measurement and positioning process, improves measurement accuracy and precision, ensures consistency in the position and size of measurement points, and reduces errors.
Smart Images

Figure CN122192504A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of spectral composite colorimeters, and more particularly to methods, apparatus, and readable storage media for measuring and positioning spectral composite colorimeters. Background Technology
[0002] The spectral composite colorimeter is an important instrument in the field of colorimetric measurement. It works by guiding a portion of the light into the imaging module for color measurement, while the other portion passes through a lens beam splitter and a fiber optic coupler to the spectrometer. This allows the instrument to simultaneously measure the colorimetric coordinates of a target point, enabling real-time calibration of the imaging module's measurements. It can also measure key spectral information such as the dominant wavelength and half-width at half-maximum (WWHM) of the target point. However, vibrations during transport can cause measurement point shifts, directly affecting the accuracy of the results. Addressing this issue is crucial for the accuracy of online calibration of the spectral composite colorimeter. Furthermore, after assembly, the exact position of the spectrometer's measurement points is unknown, making it essential to determine the location and size of these points to improve detection accuracy.
[0003] In methods for locating measurement points on a spectrometer, a common approach is to continuously adjust the instrument's position until the brightness measured by the spectrometer reaches its maximum value; this position is then considered the actual measurement point. This method requires multiple adjustments and tests, is cumbersome, and the final result may not be accurate enough, nor can it determine the exact size of the measurement point.
[0004] Another method utilizes a spectral measurement device and precise positioning technology to generate a light spot on the object under test by guiding light through an optical fiber. Based on the principle of optical reversibility, the actual measurement point can be directly determined. Then, by rotating the spectral measurement device, the point receiving the strongest spectral energy is found, achieving accurate positioning at the vertical angle. Although this method can determine the measurement point, it requires a complex, custom-designed mechanism and, similarly, cannot determine the exact size of the measurement point. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a method for measuring and locating a spectral composite colorimeter.
[0006] The technical solution provided in this application is described below:
[0007] The first aspect of this application provides a method for measuring and locating a spectral composite colorimeter, comprising: A method for measuring and locating a spectral composite colorimeter, characterized by comprising: A light spot is captured by the imaging module of the colorimeter in a first environment; wherein the first environment is a plane mirror placed below the lens of the colorimeter, the surface of the plane mirror is located at the working distance of the lens, and the plane mirror is perpendicular to the lens; a point light is connected to one end of the coupler fiber optic interface of the colorimeter, the point light is turned on so that the point light is projected onto the plane mirror to generate a light spot, and the imaging module of the colorimeter is started to capture the image; The image containing the light spot is analyzed, and the pixel-level diameter and center coordinates of the light spot are generated. The adjustment parameter package is obtained by comparing the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter. The colorimeter is repositioned and measured according to the adjusted parameter package.
[0008] Optionally, the step of analyzing the image with the recorded light spot and generating the pixel-level diameter and center position coordinates of the light spot further includes: The image containing the light spots is binarized. The pixel-level diameter and center coordinates of the light spot are obtained by calculating based on the result of the binarization process.
[0009] Optionally, the binarization process further includes: Separate the light spot from the background in the image containing the light spot; In the step of calculating based on the result of the binarization process, the calculation method is as follows: By fitting the outline of the light spot as a circle, the center position coordinates (x, y) and pixel-level area of the light spot are calculated.
[0010] Optionally, after the step of fitting the outline of the light spot as a circle and calculating the center position coordinates (x, y) and pixel-level area of the light spot, the measurement and positioning method further includes: The pixel-level diameter of the light spot is calculated based on the pixel-level area. The formula for converting the pixel-level area into the pixel-level diameter of the light spot is defined as follows: ; Where d is the pixel-level diameter of the light spot; Area is the pixel-level area of the circle fitted by the outline of the light spot separated by the image processing tool; By combining the lens magnification of the colorimeter, the pixel-level diameter of the light spot is converted into a physical diameter; The formula for converting to physical diameter is defined as follows: ; Where D is the physical diameter of the light spot; d is the pixel-level diameter of the light spot; and β is the lens magnification.
[0011] Optionally, in the step of obtaining the adjustment parameter package after comparing the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter, the adjustment parameter package includes position offset and diameter difference parameters, and this step further includes: Calculate the positional offset between the center coordinates of the measurement point on the object under test and the center coordinates of the light spot; Calculate the diameter difference parameter between the physical diameter of the current measurement point of the colorimeter and the physical diameter of the light spot; And, the step of repositioning the colorimeter according to the adjustment parameter package further includes: Based on the position offset, the position of the measurement point of the object to be measured and the position of the light spot are measured and positioned for the first time according to coordinates; Based on the diameter difference parameter, adjust the measurement parameters of the colorimeter so that the physical diameter of the current measurement point of the colorimeter is consistent with the physical diameter of the light spot, thus completing the second measurement positioning.
[0012] Optionally, prior to the step of calculating the diameter difference parameter between the physical diameter of the current measurement point of the colorimeter and the physical diameter of the light spot, the measurement positioning method further includes: The physical diameter of the current measurement point of the colorimeter is calculated based on the lens magnification β of the imaging module and the pixel size. The formula for calculating the physical diameter of the current measurement point of the colorimeter is defined as follows: ; in, The physical diameter of the current measurement point of the colorimeter; β is the current measured pixel diameter of the colorimeter; β is the lens magnification.
[0013] Optionally, the step of performing a first measurement and positioning of the measurement point position of the object to be measured and the position of the light spot according to the position offset further includes: The position offset is converted into the physical displacement required to drive the colorimeter or the support platform used in conjunction with it through the calibration parameters of the imaging module; Based on the physical displacement, adjust the center position coordinates of the measurement point of the object to be measured to be consistent with the center position coordinates of the light spot; The formula for calculating the position offset is:
[0014] in, ; ; The coordinates of the center position of the light spot are calculated after fitting the outline of the light spot into a circle through image processing; The coordinates are the center position coordinates of the measurement point of the object to be measured.
[0015] A second aspect of this application provides a system for measuring and locating a spectral composite colorimeter, used to implement the method described in any one of the first aspects, characterized in that the system comprises: An imaging module is used to acquire a light spot captured by the colorimeter in a first environment; wherein the first environment is a plane mirror placed below the lens of the colorimeter, the surface of the plane mirror being located at the working distance of the lens, and the plane mirror being perpendicular to the lens; The image processing and analysis module is used to analyze the image with recorded light spots and generate the pixel-level diameter and center position coordinates of the light spots; The comparison module is used to compare the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter to obtain the adjustment parameter package; The adjustment module is used to reposition the colorimeter according to the adjustment parameter package.
[0016] Optionally, the adjustment parameter package includes position offset and diameter difference parameters, and the adjustment module further includes: The first adjustment module is used to perform a first measurement and positioning of the measurement point position of the object to be measured and the position of the light spot according to the coordinates based on the position offset. The second adjustment module is used to adjust the measurement parameters of the colorimeter according to the diameter difference parameter, so that the physical diameter of the current measurement point of the colorimeter is consistent with the physical diameter of the light spot, thereby completing the second measurement positioning.
[0017] A third aspect of this application provides a computer-readable storage medium on which a program is stored, which, when executed on a computer, performs the methods of the first aspect and any one of the first aspects.
[0018] As can be seen from the above technical solutions, this application has the following beneficial effects: This application employs the principle of optical path reversibility. By inserting or aligning a high-spot light into or onto one end of the optical fiber in the coupler, and placing a plane mirror under a lens with a beam splitter, the light spot is focused and the working distance of the imaging module is moved, making the light spot in the image of the imaging module clear and allowing the measurement point to be presented more intuitively. This solves the problem of low efficiency in traditional spectral measurement methods that require manual or machine adjustment of the test point. By analyzing the size and position of the light spot in the image, the position of the measurement point of the test object and the measurement size matching that point can be accurately located for the spectral composite colorimeter. This overcomes the shortcomings of the existing technology, such as complex optical path composition and high processing and assembly difficulty, and improves measurement accuracy. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A schematic diagram illustrating an embodiment of a method for measuring and positioning a spectral composite colorimeter provided in this application; Figure 2 A schematic diagram illustrating an embodiment provided in this application, which analyzes an image containing a light spot and generates the pixel-level diameter and center coordinates of the light spot; Figure 3 This is a schematic diagram of an embodiment following the steps of fitting the outline of a light spot as a circle and calculating the center position coordinates and pixel-level area of the light spot, as provided in this application. Figure 4 This application provides an embodiment of an example of obtaining an adjustment parameter package by comparing the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter, and then repositioning the colorimeter according to the adjustment parameter package; Figure 5 A schematic diagram of an embodiment provided for this application prior to the step of calculating the diameter difference parameter between the current measured diameter of the measurement point and the physical diameter of the light spot in a spectrophotometer; Figure 6 This is a schematic diagram of an embodiment of the step of performing the first measurement and positioning of the measurement point position of the object to be measured and the position of the light spot according to the coordinates based on the position offset, as provided in this application. Figure 7 A schematic diagram of a system for measuring and positioning a spectral composite colorimeter provided in this application; Figure 8A schematic diagram of the standby state of the colorimeter provided in this application; Figure 9 A schematic diagram of the process of taking pictures in the first environment for the colorimeter provided in this application. Detailed Implementation
[0021] Please see Figure 1 , Figure 8 and Figure 9 This application first provides an embodiment of a method for measuring and locating a spectral composite colorimeter, the embodiment including: S101. Obtain the light spot captured by the imaging module of the colorimeter in the first environment; wherein the first environment is that a plane mirror is placed below the lens of the colorimeter, the surface of the plane mirror is located at the working distance of the lens, the plane mirror is perpendicular to the lens, the point light is connected to one end of the coupler fiber interface of the colorimeter, the point light is turned on so that the point light is projected onto the plane mirror to generate a light spot, and the imaging module of the colorimeter is started to take pictures. A high-brightness point light source is connected to the spectrometer fiber optic coupler interface of the spectrometer-type composite colorimeter. The light source is placed at the spectrometer entrance, and the light propagates in the opposite direction to normal measurements. The light first enters the beam splitter prism, and after splitting, a portion of the light propagates along the path to the imaging module lens and eventually exits from the lens. Below the lens, a plane mirror is placed perpendicular to the optical axis, and its position is adjusted so that its surface is at the optimal working distance of the lens to ensure the clarity of the subsequent image. The light emitted from the lens is reflected when it hits the surface of this plane mirror, and the reflected light returns to the lens along the same path. At this time, a light spot generated by the point light source is formed on the surface of the plane mirror. The light returning to the lens passes through the beam splitter prism, and a portion of it is imaged onto the imaging module sensor. The colorimeter's imaging module is activated, and the working distance of the lens is adjusted to ensure that the light spot in the captured image is in the clearest state. This image containing the clear light spot is then captured and saved. It should be noted that, based on the principle of optical path reversibility, the position and shape of this light spot in the imaging module image precisely correspond to the source area of the light received by the spectrometer in normal measurement mode. Therefore, the center of the light spot determines the position of the spectrometer measurement point, and the outline of the light spot determines the size of the measurement point, transforming the originally invisible spectrometer measurement point into visible and quantifiable image information of the imaging module.
[0022] S102. Analyze the image containing the light spot and generate the pixel-level diameter and center coordinates of the light spot; The image containing the light spot is analyzed using a module with image processing and analysis capabilities to extract its key geometric features. First, the acquired image with the light spot is preprocessed, such as by grayscale conversion and filtering to improve image quality and facilitate subsequent processing. Next, image segmentation techniques are used to effectively separate the light spot region from the image background, thereby identifying the light spot's contour information. Based on the obtained light spot contour, the pixel-level diameter of the light spot in the image and the coordinates of its center position are calculated using geometric features. The pixel-level diameter reflects the size of the light spot on the imaging plane, while the center position coordinates define the specific location of the light spot within the imaging plane. Thus, the visual light spot information is transformed into precisely quantifiable digital parameters, providing a data foundation for subsequent offset calculations and repositioning.
[0023] S103. The adjustment parameter package is obtained by comparing the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter. The current measurement parameters from the colorimeter (known parameters that can be pre-defined by the colorimeter, i.e., the parameters used for the current measurement, such as the position and size of the measurement point) are integrated with the spot geometric parameters obtained through image analysis. An adjustment parameter package for subsequent positioning and calibration is generated through calculation. This package includes at least one type of adjustment parameter, such as spatial adjustment parameters or size adjustment parameters. First, the center coordinates (x1, y1) of the measurement point of the object under test in the colorimeter's field of view and the physical diameter of the current measurement point of the colorimeter are obtained. Under normal circumstances, the measurement point of the spectral composite colorimeter used to measure the object under test is basically consistent with the measurement point of the spectrometer. However, due to factors such as vibration, assembly accuracy errors, or prolonged use, the measurement point of the colorimeter on the object under test and the measurement point of the spectrometer may not be well aligned, thus affecting the accuracy of the final measurement results. Then, from the analysis results of step S102, the center pixel coordinates (x, y) and pixel-level diameter of the spot are obtained. The positional offset is obtained by calculating the deviation between the center coordinates of the light spot and the center coordinates of the measurement point on the object under test. , The offset of this position. It is a pixel-level vector representing the direction and distance of moving the center of the measurement point of the object under test from the current position coordinates (x1, y1) to the center position coordinates (x, y) of the light spot. Regarding the size calibration of the colorimeter measurement point, given that the measurement point is essentially circular, the pixel-level diameter d of the light spot is used as the basic data to adjust the physical diameter of the current measurement point of the colorimeter, so as to adjust the size of the colorimeter's measurement point to match the size of the spectrometer's measurement point (i.e., the light spot). The parameter that plays an adjustment role in this process is the diameter difference parameter. Therefore, the position offset... Together with the diameter difference parameter, they constitute the adjustment parameter package used for calibrating the measurement points, providing a clear basis for subsequent steps.
[0024] S104. Re-measure and reposition the spectrophotometer according to the adjustment parameter package.
[0025] In this embodiment, a light spot is generated by placing a plane mirror below the lens and projecting a point light source. After the imaging module takes a picture, the position of the light spot can be directly observed in the image without repeatedly adjusting the instrument position. Compared with traditional methods that require multiple adjustments of the test point to find the maximum brightness, this method significantly simplifies the operation process and greatly improves calibration efficiency. By analyzing the image to calculate the center position coordinates and physical diameter of the light spot, as well as the center position coordinates of the measurement point of the object under test and the physical diameter of the current measurement point of the colorimeter, the offset between the same parameters can be obtained. Then, the colorimeter is repositioned based on the offset of position and size, thereby overcoming the defect of the prior art that can only locate the point but cannot determine the size. By using the principle of optical path reversibility, the correspondence between the instrument measurement point and the actual measurement point is determined, solving the problem that the test point position is difficult to intuitively present during the measurement process of the spectrophotometer composite colorimeter.
[0026] Please see Figure 2 , Figure 2 An embodiment provided in this application analyzes an image containing a light spot and generates the pixel-level diameter and center coordinates of the light spot. This embodiment includes: S201. Binarize the image containing the light spot. S202. Calculate the pixel-level diameter and center coordinates of the light spot based on the binarization result.
[0027] Optionally, the binarization process involves separating the light spot from the background in the image containing the light spot. In the step of calculating based on the results of binarization, the calculation method is as follows: By fitting the outline of the light spot as a circle, the center position coordinates (x, y) and pixel-level area of the light spot are calculated.
[0028] In an image, the light spot and the background have different grayscale characteristics. Binarization, by setting a threshold, divides the grayscale values of pixels in the image into two categories: one corresponding to the light spot and the other to the background. After binarization, the outline of the light spot is fitted to be circular. This is because, in an ideal scenario, the light spot formed by point light after reflection should be circular. Appropriate image processing algorithms are used to find and fit the circular outline of the light spot. Based on the fitted circular outline, the center coordinates (x, y) of the light spot are calculated. The center coordinates represent the position information of the light spot in the image and are crucial for determining the location of the measurement point. Simultaneously, the pixel-level area of the light spot is calculated, i.e., the number of pixels contained in the fitted circle. The pixel-level area reflects the size of the light spot in the image. The calculated pixel-level area can be further used to deduce the pixel-level diameter of the light spot, thus obtaining key information such as the pixel-level diameter and image coordinates of the light spot.
[0029] In this embodiment, the light spot is binarized using an image processing and analysis module, effectively separating the light spot from the background and avoiding interference from background information in the analysis of light spot features, thus making the analysis of the light spot more accurate. The light spot contour is fitted as a circle, and the center coordinates and pixel-level area are calculated, fully utilizing the characteristic that the light spot is ideally circular. The geometry-based fitting and calculation method has high accuracy, accurately determining the center coordinates and pixel-level area of the light spot in the image, providing reliable data for subsequent derivation of parameters such as pixel-level diameter.
[0030] Please see Figure 3 , Figure 3 An embodiment provided in this application, following the steps of fitting the outline of a light spot as a circle and calculating the center coordinates and pixel-level area of the light spot, includes: S301. Calculate the pixel-level diameter of the light spot based on the pixel-level area; The formula for converting pixel-level area to pixel-level spot diameter is defined as follows: ; Where d is the pixel-level diameter of the light spot; Area is the pixel-level area of the circle fitted by the outline of the light spot; S302, combined with the lens magnification of the colorimeter, converts the pixel-level diameter of the light spot into the physical diameter; The formula for converting to physical diameter is defined as follows: ; Where D is the physical diameter of the light spot; d is the pixel-level diameter of the light spot; and β is the lens magnification.
[0031] First, a circular fit is performed on the outline of the light spot. In reality, the light spot formed by point light reflection and other processes is ideally circular. Appropriate image processing algorithms are used to find the circle that best fits the light spot outline. After fitting the circular outline, the center coordinates (x, y) of the fitted circle are calculated. These center coordinates determine the position of the light spot in the image. Next, the pixel-level area of the light spot is calculated. The pixel-level area represents the number of pixels contained in the fitted circle and reflects the size of the light spot on the image plane. Based on the calculated pixel-level area, a conversion formula is used to calculate the pixel-level diameter of the light spot. Furthermore, to convert the pixel-level diameter into actual physical size, a conversion is performed using the lens magnification of a colorimeter. Therefore, the pixel dimensions in the image are converted into actual physical dimensions, thus obtaining the true size of the light spot.
[0032] In this embodiment, the center coordinates and pixel-level area of the light spot in the image are calculated by fitting the light spot contour to a circle, and then the pixel-level diameter of the light spot is calculated. The geometry-based analysis method provided by this embodiment can fully utilize the morphological characteristics of the light spot, reducing errors caused by irregular spot shapes or image noise, thereby accurately determining the position and size of the light spot in the image and providing reliable data for subsequent measurement and positioning. By combining the lens magnification of the spectrophotometer, the pixel-level diameter of the light spot is converted into a physical diameter. The calculation process fully considers the characteristic parameters of the colorimeter itself, ensuring that the converted physical diameter accurately reflects the size of the light spot in actual space, improving the accuracy of the measurement results. The image-based processing technology provided in this embodiment has a relatively fixed and standardized operation process. It only requires acquiring the light spot and then performing contour fitting, parameter calculation, and diameter conversion according to predetermined steps. Compared to some traditional calibration methods that rely on manual experience and complex mechanical adjustments, this embodiment is simpler and faster, reducing the technical requirements for operators.
[0033] Please see Figure 4 , Figure 4 This application provides an embodiment of a method for obtaining an adjustment parameter package by comparing the center position coordinates of the measurement point of the object under test and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter, and then repositioning the colorimeter according to the adjustment parameter package. In this embodiment, the adjustment parameter package includes a position offset and a diameter difference parameter. In this embodiment, the measurement positioning method includes: S401. Calculate the positional offset between the center position coordinates of the measurement point of the colorimeter and the center position coordinates of the light spot; S402. Based on the position offset, perform the first measurement and positioning of the measurement point position and the spot position according to the coordinates; S403. Calculate the diameter difference parameter between the current physical measurement diameter of the colorimeter and the physical diameter of the light spot; S404. Based on the diameter difference parameter, adjust the measurement parameters of the colorimeter to make the current measurement diameter of the colorimeter consistent with the physical diameter of the light spot, and complete the second measurement positioning.
[0034] First, the center coordinates of the measurement point of the object under test (DUT) measured by the colorimeter are directly compared with the center coordinates of the light spot, which reflects the actual measurement point position of the spectrometer, obtained through image processing. The center coordinates of the DUT measurement point reflect the current position of the measurement point as perceived by the colorimeter. The current measurement diameter of the colorimeter is the size parameter of the current measurement point, and the pixel-level diameter and center coordinates of the light spot are the image-level feature information of the actual light spot obtained through light spot analysis. The offset between the center coordinates (x1, y1) of the DUT measurement point and the center coordinates (x, y) of the light spot is obtained through a specific calculation formula. Here, (x, y) are the coordinates of the light spot center, representing the accurate position of the actual light spot in the image. By calculating the offset between the two coordinates, the degree of deviation between the current measurement point center position of the object under test and the actual light spot center position can be determined, i.e., the position offset. Based on this, the positioning of the object under test is adjusted according to the calculated position offset. The position of the measurement point of the object to be measured is adjusted for the first time according to the coordinates, so that the center position coordinates of the measurement point of the object to be measured are aligned with the center position coordinates of the light spot.
[0035] After completing the first measurement and positioning, the physical diameter of the current measurement point, which is pre-set within the colorimeter, is compared with the physical diameter obtained by converting the pixel-level diameter of the light spot to obtain a diameter difference parameter. Based on this parameter, the measurement parameters of the colorimeter are adjusted so that the physical diameter of the current measurement point is consistent with the physical diameter D of the light spot. This allows the colorimeter to be recalibrated to an accurate measurement position and state, ensuring accurate and reliable measurement. Of course, this invention is not limited to the steps described in this embodiment. For step S403, it can be performed before step S402, i.e., after obtaining the adjustment parameter package, the first and second measurement and positioning operations are performed on the colorimeter one by one.
[0036] In this embodiment, by directly comparing and calculating the coordinates of the center position of the measurement point of the object under test with the coordinates of the center position of the light spot generated by the reverse light path and the reflection of the plane mirror, which represents the actual measurement point position, the position offset can be obtained accurately and quantitatively. This eliminates the need for the tedious traditional method of repeatedly probing and searching for the maximum brightness value, allowing for a direct and efficient first measurement and positioning of the spatial position of the measurement point. This simplifies the operation process and significantly improves calibration efficiency. Furthermore, by incorporating the diameter parameter into the calibration system, the diameter difference parameter is obtained by comparing the physical diameter of the current measurement point pre-set within the colorimeter with the physical diameter obtained by converting the pixel-level diameter of the light spot. Based on this, a second measurement and positioning of the colorimeter's measurement parameters is performed. This solves the problem of position inaccuracy while overcoming the fundamental deficiency of existing technologies in determining and calibrating the specific size of the measurement point. Through the aforementioned steps, on the one hand, the problem of measurement point offset caused by factors such as transportation and environmental changes is effectively solved, ensuring that the colorimeter is always measuring in an accurate position, thus improving the accuracy and reliability of the measurement; on the other hand, the physical diameter of the current measurement point of the colorimeter is made consistent with the physical diameter of the light spot, ensuring the consistency of measurement parameters, improving the accuracy of the measurement, and reducing the measurement error caused by diameter mismatch.
[0037] Please see Figure 5 , Figure 5 An embodiment provided for this application, prior to the step of calculating the diameter difference parameter between the physical diameter of the current measurement point of the colorimeter and the physical diameter of the light spot, includes: S501. Calculate the physical diameter of the current measurement point of the luminance meter based on the lens magnification β of the imaging module and the pixel size. The formula for calculating the current physical diameter of the measurement point is defined as follows: ; in, The physical diameter of the current measurement point of the colorimeter; β is the pixel-level diameter of the current measurement point of the colorimeter; β is the lens magnification.
[0038] As described in the previous embodiment, the pixel-level area of the light spot can be obtained by first combining the pixel size of the imaging module. Then, the pixel-level diameter d of the light spot can be calculated based on the pixel-level area. Finally, by combining the lens magnification β, the pixel-level diameter d of the light spot can be converted into the physical diameter D, thus obtaining the standard value of the physical diameter representing the true size of the actual sampling area of the spectrometer. When the imaging module collects the light spot, it records the light spot information in units of pixels, while the actual measurement requires the physical size. Since the imaging module has a certain detection accuracy, it is necessary to reasonably convert the pixel-level diameter according to this accuracy to obtain more accurate basic data of the physical diameter. Combining the internal setting function of the colorimeter, the pixel-level diameter of the current measurement point of the colorimeter can be directly obtained, and the current measured physical diameter of the measurement point can be calculated according to the lens magnification β of the imaging module. The pixel size of the imaging module is the actual physical size of each pixel on the imaging module sensor, while the lens magnification reflects the degree of magnification of the object imaged onto the imaging module sensor by the lens. Through the conversion formula, the pixel size of the colorimeter measurement point in the image is established with the actual physical size. The difference between the physical diameter D of the light spot and the physical diameter of the current measurement point on the colorimeter is used as the diameter difference parameter to guide calibration. Based on the diameter difference parameter, the measurement software parameters of the colorimeter are adjusted to make the physical diameter of the current measurement point on the colorimeter consistent with the physical diameter D of the light spot.
[0039] In this embodiment, the pixel-level diameter d of the light spot is accurately converted into the physical diameter D of the light spot by combining it with the lens magnification β, i.e., D = d × β, establishing a precise dimensional benchmark from the image to the physical world. Directly based on imaging geometric calibration parameters, the calculated physical diameter more closely approximates reality, providing a precise dimensional basis for the calibration of the colorimeter, thereby effectively improving measurement accuracy. Performing a first-stage position positioning and a second-stage point size calibration on the measurement points of the colorimeter ensures that the measurement points of the colorimeter accurately match reality in both spatial position and physical size. After calibration, the colorimeter can more accurately acquire color and brightness information in subsequent measurements, reducing measurement errors.
[0040] Please see Figure 6 , Figure 6 This application provides an embodiment of a step for performing a first measurement and positioning of the measurement point position of the object under test and the position of the light spot according to coordinates based on the positional offset. In this embodiment, the measurement and positioning method includes: S601. The position offset is converted into the physical displacement required to drive the colorimeter or the carrier platform used in conjunction with it through the calibration parameters of the imaging module. S602. Based on the physical displacement, adjust the center position coordinates of the measurement point of the object to be measured to be consistent with the center position coordinates of the light spot; The formula for calculating the position offset is:
[0041] in, ; ; The coordinates of the center position of the light spot are calculated after fitting the light spot contour to a circle through image processing; The coordinates are the center position coordinates of the measurement point on the object to be measured.
[0042] In this embodiment, the deviation (position offset) between the measured point position of the object under test and the actual measured position under the colorimeter is directly extracted and quantified from the spot image. The calibration parameters of the imaging module are then used to convert this image coordinate deviation into a precise physical displacement command. This transforms the previously experience-based, trial-and-error-based, coarse alignment process into a data-driven, one-step precise positioning operation. This significantly simplifies the operation process, greatly improves calibration efficiency, and ensures that the measured point of the object under test can be reliably positioned at the center of the spot, fundamentally eliminating errors caused by positional deviations and laying a benchmark for subsequent high-precision colorimetric and spectral measurements.
[0043] By injecting a point light source backward from the fiber optic coupler of the spectrometer and placing a vertical plane mirror below the lens, the point light propagates backward through the optical system and is reflected by the mirror, thus generating a clear and visible spot image in the field of view of the imaging module. This spot directly corresponds to the actual measurement area of the spectrometer. Automated image processing and analysis are performed on the acquired spot image, including binarization, contour extraction, and circle fitting, to accurately calculate the center position coordinates and pixel-level diameter of the spot. Furthermore, based on the lens magnification β, the pixel-level diameter is converted into a physical diameter for calibration, thereby obtaining a spatial and dimensional reference characterizing the true state of the measurement point. The center position coordinates of the measurement point of the object under test and the physical diameter of the current measurement point of the colorimeter are compared with the aforementioned center position coordinates and physical diameter of the spot used for calibration, respectively. Quantified position offset and diameter difference parameters are calculated using formulas. Finally, a two-step calibration is performed based on these parameters: First, based on the calculated position offset... The spatial alignment of the measurement point center of the test object with the light spot center can be achieved through physical movement of the colorimeter or other methods, such as using a test object support platform. The second step involves adjusting the measurement parameters of the colorimeter based on the diameter difference parameter, ensuring that the physical diameter of the current measurement point matches the physical diameter of the light spot. This is achieved by correcting the colorimeter's position and size to perfectly match the actual measurement point of the test object (i.e., the measurement point corresponding to the spectrometer's measurement point and its light spot size). Based on this, high-precision, visualized, and systematic calibration of the spectral composite colorimeter is realized.
[0044] Please see Figure 7 This application provides a system for measuring and locating a spectral composite colorimeter, used to implement any of the aforementioned methods. The system includes: Imaging module 701 is used to acquire light spots captured by a colorimeter in a first environment; wherein, the first environment is a plane mirror placed below the lens of the colorimeter, the surface of the plane mirror being located at the working distance of the lens, and the plane mirror being perpendicular to the lens; The image processing and analysis module 702 is used to analyze the image with recorded light spots and generate the pixel-level diameter and center position coordinates of the light spots; The comparison module 703 is used to compare the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter to obtain the adjustment parameter package. The adjustment module 704 is used to reposition the colorimeter according to the adjustment parameter package.
[0045] Furthermore, for example, in one embodiment, if the adjustment parameter package includes position offset and diameter difference parameters, then the system further includes: The first adjustment module 7041 is used to perform the first measurement and positioning of the measurement point position of the object to be measured and the position of the light spot according to the coordinates based on the position offset. The second adjustment module 7042 is used to adjust the measurement parameters of the colorimeter according to the diameter difference parameter, so that the physical diameter of the current measurement point of the colorimeter is consistent with the physical diameter of the light spot, thus completing the second measurement positioning.
[0046] Furthermore, to implement any of the other method embodiments described above, this system can also be implemented by setting specific functional modules. The purpose of each specific functional module corresponds to the relevant descriptions in the aforementioned method embodiments, and therefore will not be repeated here.
[0047] This application also relates to a computer-readable storage medium on which a program is stored, which, when run on a computer, causes the computer to perform any of the methods described above.
[0048] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0049] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0050] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0051] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0052] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for measuring and locating a spectral composite colorimeter, characterized in that, include: A light spot is captured by the imaging module of the colorimeter in a first environment; wherein the first environment is a plane mirror placed below the lens of the colorimeter, the surface of the plane mirror is located at the working distance of the lens, and the plane mirror is perpendicular to the lens; a point light is connected to one end of the coupler fiber optic interface of the colorimeter, the point light is turned on so that the point light is projected onto the plane mirror to generate a light spot, and the imaging module of the colorimeter is started to capture the image; The image containing the light spot is analyzed, and the pixel-level diameter and center coordinates of the light spot are generated. The adjustment parameter package is obtained by comparing the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter. The colorimeter is repositioned and measured according to the adjusted parameter package.
2. The method for measuring and locating a spectral composite colorimeter according to claim 1, characterized in that, The step of analyzing the image containing the light spot and generating the pixel-level diameter and center coordinates of the light spot further includes: The image containing the light spots is binarized. The pixel-level diameter and center coordinates of the light spot are obtained by calculating based on the result of the binarization process.
3. The method for measuring and locating a spectral composite colorimeter according to claim 2, characterized in that, The binarization process further includes: Separate the light spot from the background in the image containing the light spot; In the step of calculating based on the result of the binarization process, the calculation method is as follows: By fitting the outline of the light spot as a circle, the center position coordinates (x, y) and pixel-level area of the light spot are calculated.
4. The method for measuring and locating a spectral composite colorimeter according to claim 3, characterized in that, After the steps of fitting the outline of the light spot as a circle and calculating the center position coordinates (x, y) and pixel-level area of the light spot, the measurement and positioning method further includes: The pixel-level diameter of the light spot is calculated based on the pixel-level area. The formula for converting the pixel-level area into the pixel-level diameter of the light spot is defined as follows: ; Where d is the pixel-level diameter of the light spot; Area is the pixel-level area of the circle fitted by the outline of the light spot; By combining the lens magnification of the colorimeter, the pixel-level diameter of the light spot is converted into a physical diameter; The formula for converting to physical diameter is defined as follows: ; Where D is the physical diameter of the light spot; d is the pixel-level diameter of the light spot; and β is the lens magnification.
5. The method for measuring and locating a spectral composite colorimeter according to claim 1, characterized in that, In the step of obtaining an adjustment parameter package by comparing the center position coordinates of the measurement point of the object under test and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter, the adjustment parameter package includes position offset and diameter difference parameters, and this step further includes: Calculate the positional offset between the center coordinates of the measurement point on the object under test and the center coordinates of the light spot; Calculate the diameter difference parameter between the physical diameter of the current measurement point of the colorimeter and the physical diameter of the light spot; And, the step of repositioning the colorimeter according to the adjustment parameter package further includes: Based on the position offset, the position of the measurement point of the object to be measured and the position of the light spot are measured and positioned for the first time according to coordinates; Based on the diameter difference parameter, adjust the measurement parameters of the colorimeter so that the physical diameter of the current measurement point of the colorimeter is consistent with the physical diameter of the light spot, thus completing the second measurement positioning.
6. The method for measuring and locating a spectral composite colorimeter according to claim 5, characterized in that, Prior to the step of calculating the diameter difference parameter between the physical diameter of the current measurement point of the colorimeter and the physical diameter of the light spot, the measurement positioning method further includes: The physical diameter of the current measurement point of the colorimeter is calculated based on the lens magnification β of the imaging module and the pixel size. The formula for calculating the physical diameter of the current measurement point of the colorimeter is defined as follows: ; in, The physical diameter of the current measurement point of the colorimeter; β is the current measured pixel diameter of the colorimeter; β is the lens magnification.
7. The method for measuring and locating a spectral composite colorimeter according to claim 6, characterized in that, The step of performing the first coordinate measurement and positioning of the measurement point of the object to be measured and the position of the light spot according to the position offset further includes: The position offset is converted into the physical displacement required to drive the colorimeter or the support platform used in conjunction with it through the calibration parameters of the imaging module; Based on the physical displacement, adjust the center position coordinates of the measurement point of the object to be measured to be consistent with the center position coordinates of the light spot; The formula for calculating the position offset is: in, ; ; The coordinates of the center position of the light spot are calculated after fitting the outline of the light spot into a circle through image processing; The coordinates are the center position coordinates of the measurement point of the object to be measured.
8. A system for measuring and locating a spectral composite colorimeter, used to implement the method described in any one of claims 1 to 7, characterized in that, The system includes: An imaging module is used to acquire a light spot captured by the colorimeter in a first environment; wherein the first environment is a plane mirror placed below the lens of the colorimeter, the surface of the plane mirror being located at the working distance of the lens, and the plane mirror being perpendicular to the lens; The image processing and analysis module is used to analyze the image with recorded light spots and generate the pixel-level diameter and center position coordinates of the light spots; The comparison module is used to compare the center position coordinates of the measurement point of the object to be measured and the physical diameter of the current measurement point of the colorimeter with the center position coordinates of the light spot and the physical diameter converted from its pixel-level diameter to obtain the adjustment parameter package; The adjustment module is used to reposition the colorimeter according to the adjustment parameter package. The system for measuring and positioning a spectral composite colorimeter according to claim 8, characterized in that the adjustment parameter package includes position offset and diameter difference parameters, and the adjustment module further includes: The first adjustment module is used to perform a first measurement and positioning of the measurement point position of the object to be measured and the position of the light spot according to the coordinates based on the position offset. The second adjustment module is used to adjust the measurement parameters of the colorimeter according to the diameter difference parameter, so that the physical diameter of the current measurement point of the colorimeter is consistent with the physical diameter of the light spot, thereby completing the second measurement positioning.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains a program that, when executed on a computer, performs the method as described in any one of claims 1 to 7.