A high-precision and high-efficiency spectral confocal displacement measurement method
Through the combination of high-deep color photosensitive elements and HSI color models, the problem of insufficient axial resolution in spectral confocal technology is solved, and efficient and low-cost spectral confocal displacement measurement is achieved, which is suitable for the surface reflectivity of various materials. Test.
Patent Information
- Application Number
- CN202311747326.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-12-18
AI Technical Summary
The existing spectral confocal technology has shortcomings in axial resolution, and the system structure is complex and costly, making it difficult to meet the needs of large-scale development.
Use high-deep color photosensitive elements instead of the spectrometer, and reflect the incident light into multiple monochromatic light through spectroscopy prism and dispersion lens group to form a color image, and use the HSI color model to convert the tone parameter H value to achieve high-precision axial direction. In-depth information acquisition.
It improves the axial resolution of spectral confocal displacement measurement, reduces system cost, enhances stability to the external environment, and is suitable for the acquisition of spectral feedback data of the surface reflectance of various materials.
Smart Images

Figure CN117781885B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical measurement, and more specifically to a high-precision and high-efficiency spectral confocal displacement measurement method. Background Art
[0002] Traditional laser confocal technology uses point illumination and point reception, and uses scanning technology to perform morphological analysis on the object to be measured. It has clear imaging and three-dimensional recognition capabilities. However, this method has problems such as insufficient acquisition efficiency, relatively narrow measurement range, and complex processing process. Spectral confocal technology uses dispersion phenomenon and confocal technology, does not require axial scanning, and has the characteristics of tomographic imaging. The current existing wavelength detection method usually uses a spectrometer to separate complex light into monochromatic light to form a spectrum for reception and processing. The spectrometer is sensitive to changes in the external environment. At the same time, when measuring the morphological information of larger aperture components, there are still problems such as low acquisition and solution efficiency, complex system structure, and high cost, which limit its scale development and do not meet current development needs.
[0003] In the prior art, a method is proposed to focus monochromatic light of different wavelengths onto the surface of the object to be measured, and to receive the reflected monochromatic light through a color camera to obtain a color image. This method converts the color information RGB value of each pixel in the color image into the hue parameter H of the HSI color model, and establishes a mapping relationship between the H value and the axial depth, thereby realizing the surface morphology detection of the object to be measured. However, the system axial resolution of this method is affected by the system spectral resolution, that is, it is limited by the minimum color resolution of the HSI color model, which leads to the problem of insufficient system axial measurement accuracy. Summary of the invention
[0004] The embodiment of the present invention provides a high-precision and high-efficiency spectral confocal displacement measurement method, which can quickly complete the spectral information solution and solve the problem of low axial resolution in the prior art.
[0005] The embodiment of the present invention provides a high-precision and high-efficiency spectral confocal displacement measurement method, comprising:
[0006] Setting the bit depth parameter of the color photosensitive element so that the incident light from the light source assembly is reflected by the object to be measured through the beam splitter prism and the dispersion lens group into a plurality of first monochromatic reflected lights;
[0007] Allowing a plurality of first monochromatic reflected lights to pass through a dispersion lens group, a beam splitter prism, and a first pinhole to form second monochromatic reflected lights and enter the color photosensitive element, and forming a color image based on the second monochromatic reflected lights;
[0008] An RGB color value corresponding to the bit depth parameter is obtained according to the color image, a hue parameter H value is obtained according to a conversion relationship between the RGB color value and the HSI model, and axial depth information of the object to be measured is obtained according to the hue parameter H value.
[0009] Preferably, the bit depth parameter of the color photosensitive element is proportional to the RGB color value corresponding to the color image;
[0010] The bit depth parameter of the color photosensitive element is proportional to the minimum color resolution;
[0011] The bit depth parameter of the color photosensitive element is proportional to the spectral resolution;
[0012] The minimum color resolution is proportional to the spectral resolution.
[0013] Preferably, the axial resolution of the spectral confocal displacement measurement device is determined by the following formula:
[0014]
[0015] Wherein, Δd represents the depth measurement range of the spectral confocal displacement measuring device, Δλ represents the working band range of the wide spectrum light source included in the spectral confocal displacement measuring device, and λ all Represents the visible spectrum band range, H all Indicates the range of the hue parameter H, ΔH bit It represents the minimum color resolution, and δd represents the axial resolution.
[0016] Preferably, the wide spectrum light source has a range of 460nm-660nm and an axial dispersion of 1.58mm.
[0017] Preferably, the color photosensitive element is a color camera; or a color sensor.
[0018] An embodiment of the present invention provides a high-precision and high-efficiency spectral confocal displacement measurement method, which includes: setting a bit depth parameter of a color photosensitive element so that incident light from a light source component is reflected by an object to be measured as a plurality of first monochromatic reflected lights through a dichroic prism and a dispersion lens group; the plurality of first monochromatic reflected lights are formed into second monochromatic reflected lights through a dispersion lens group, a dichroic prism, and a first pinhole and enter the color photosensitive element, and a color image is formed based on the second monochromatic reflected lights; an RGB color value corresponding to the bit depth parameter is obtained according to the color image, a hue parameter H value is obtained according to a conversion relationship between the RGB color value and an HSI model, and axial depth information of the object to be measured is obtained according to the hue parameter H value. This method uses a high-bit-depth color photosensitive element instead of a spectrometer, and applies chromatogram decoding to a spectral confocal measurement system, which can rapidly complete the spectral information solution while still stably improving the system's axial resolution; it has the same accuracy as a traditional spectrometer, while having a higher level of integration and a lower cost; it is more efficient in solving the returned spectral information than a traditional spectrometer; furthermore, this method is not easily affected by the external environment and has strong stability; furthermore, this method has a wide range of material adaptability, and can effectively obtain spectral feedback data for the surface reflectivity of various materials; it is suitable for solving and processing spectral signals returned in various forms of points, lines, and surfaces, and has a certain degree of versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of a chromatogram decoding method provided by an embodiment of the present invention;
[0021] Figure 2 It is a schematic diagram of the structure of a spectral confocal system provided in the prior art;
[0022] Figure 3 A schematic flow chart of a high-precision and high-efficiency spectral confocal displacement measurement method provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of the structure of a spectral confocal system provided in Embodiment 1 of the present invention;
[0024] Figure 5 A schematic diagram of a calibration curve of an axial depth-hue parameter H value mapping relationship provided in an embodiment of the present invention;
[0025] Among them, 1 is a wide-spectrum light source, 2 is a converging lens, 3 is a second pinhole, 4 is a beam splitter, 5 is a dispersion lens group, 6 is an object to be measured, 7 is a first pinhole, 8 is a spectrometer, 9 is a color photosensitive element, and 10 is a translation stage. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In the embodiments of the present invention, the technical terms involved are as follows:
[0028] Bit depth: refers to the bit depth required for each pixel when recording the color of a digital image. A "bit" is the smallest unit in a computer memory, which is used to record the color value of each pixel. The richer the color of the image, the more "bits" it has. Common bit depths include 8-bit, 10-bit, and 12-bit; 8 bits can display a total of 256 3 Colors, 10 means a total of 1024 can be displayed 3 12 bits can display a total of 4093 colors 3 colors.
[0029] RGB color value: It is a color encoding method, which consists of the brightness values of the three color channels of red, green, and blue. The value range of RGB color value is 0-255, representing different shades of color.
[0030] HSI color model: Hue, saturation, and intensity are used to describe color. Hue H is used to define the frequency of the color, saturation S is used to define the depth of the color, and intensity I is used to represent the intensity or brightness of the color. The angular range of hue H is [0, 2π], where the angle of pure red is 0, the angle of pure green is 2π / 3, and the angle of pure blue is 4π / 3.
[0031] The high-precision and high-efficiency spectral confocal displacement measurement method provided by the embodiment of the present invention is based on the spectral confocal measurement principle, and uses the correspondence between wavelength and color to determine the wavelength information focused on the surface of the object to be measured. At the same time, combined with the bit depth characteristics of the high-bit-depth color photosensitive element, the returned spectral signal is resolved through chromatogram decoding, thereby obtaining the axial depth information. Figure 1 Shown is a chromatogram decoding scheme.
[0032] Figure 2 Schematic diagram of the spectral confocal system structure provided in the prior art, such as Figure 2 As shown, a wide spectrum light source 1 emits continuous and uniform visible light waves, which pass through a converging lens 2 and then through a second pinhole 3. The light passes through a dichroic prism 4 and enters a dispersion lens group 5. The dispersion lens group 5 uses a combination of lenses of different materials to cause the complex light to be axially dispersed to the object to be measured 6. Light of different wavelengths is focused at different axial heights by the dispersion lens group, forming continuous monochromatic light confocal lines with different distances to the dispersion lens group 5 on the optical axis, thereby establishing a corresponding relationship between wavelength and distance. According to the principle of reversible optical path, the light returns to the dispersion lens group 5 after being reflected by the surface of the object to be measured, and is reflected and focused to the first pinhole 7 by the dichroic prism 4. The first pinhole 7 filters out the reflected light beam in the target wavelength range and enters the spectrometer 8.
[0033] Figure 3 A schematic flow chart of a high-precision and high-efficiency spectral confocal displacement measurement method provided by an embodiment of the present invention, Figure 4 The schematic diagram of the spectral confocal system structure provided in the first embodiment of the present invention; Figures 3-4 Taking as an example, the high-precision and high-efficiency spectral confocal displacement measurement method provided by an embodiment of the present invention is described in detail.
[0034] The high-precision and high-efficiency spectral confocal displacement measurement method provided by the embodiment of the present invention is based on Figure 4 The spectral confocal displacement measurement device shown in FIG. Figure 4 As shown, the spectral confocal displacement measurement device is Figure 2 The biggest difference in the spectral confocal system structure provided is that Figure 2 On the basis of the spectral confocal system structure, a color camera is selected as the color photosensitive element 9 to replace the spectrometer 8.
[0035] like Figure 4 As shown, a high-precision and high-efficiency spectral confocal displacement measurement method provided by an embodiment of the present invention mainly includes the following steps:
[0036] Step 101, setting the bit depth parameters of the color photosensitive element so that the incident light from the light source assembly passes through the beam splitter prism and the dispersion lens group and is reflected by the object to be measured into a plurality of first monochromatic reflected lights;
[0037] Step 102, making a plurality of first monochromatic reflected lights pass through a dispersion lens group, a beam splitter prism, and a first pinhole to form second monochromatic reflected lights and enter the color photosensitive element, and forming a color image based on the second monochromatic reflected lights;
[0038] Step 103, obtaining an RGB color value corresponding to the bit depth parameter according to the color image, obtaining a hue parameter H value according to a conversion relationship between the RGB color value and the HSI model, and obtaining axial depth information of the object to be measured according to the hue parameter H value.
[0039] In step 101, the bit depth parameter of the color photosensitive element needs to be determined. In practical applications, the bit depth parameter of the color photosensitive element can be adjusted according to actual requirements, for example, it can be adjusted to at least any one of 8 bits, 10 bits, and 12 bits.
[0040] It should be noted that, in the embodiment of the present invention, the axial resolution of the spectral confocal displacement measurement device can be determined by the following formula:
[0041]
[0042] Wherein, Δd represents the depth measurement range of the spectral confocal displacement measuring device, Δλ represents the working band range of the wide spectrum light source included in the spectral confocal displacement measuring device, and λ all Represents the visible spectrum band range, H all Indicates the range of the hue parameter H, ΔH bit It represents the minimum color resolution, and δd represents the axial resolution.
[0043] In practical applications, the range of the wide spectrum light source is 460nm-660nm, and the axial dispersion is 1.58mm. The visible spectrum band usually ranges from 380nm to 780nm.
[0044] It should be noted that, in practical applications, the size of the bit depth determines the color richness of the image. The greater the bit depth, the more colors the image can display and the richer the colors. Correspondingly, the greater the bit depth of a pixel, the more colors it can express. In the embodiment of the present invention, the image bit depth is applied to the spectral confocal measurement system by using the RGB and HSI color model conversion, and the color photosensitive element is used instead of the spectrometer to decode the corresponding displacement information. The hue parameter H value in the HSI color model represents the single wavelength color information, and the subdivision degree of the hue parameter H value is the minimum color resolution ΔH of the HSI color model. bit , minimum color resolution ΔH bit It represents the achievable spectral resolution δλ and determines the axial resolution δd of the spectral confocal displacement measurement device.
[0045] It should be noted that the above spectral resolution can be expressed by the following formula (2):
[0046]
[0047] In the embodiment of the present invention, the color photosensitive element may be a color camera; the color photosensitive element may also be a color sensor.
[0048] In step 103, since the bit depth is related to the color richness of the image, once the bit depth parameter of the color photosensitive element is determined, the color richness of the color image formed by the color photosensitive element can be determined. In the embodiment of the present invention, the color image formed by the color photosensitive element based on the second monochromatic reflected light carrying the surface defect information of the object to be tested is richer in color, and the corresponding RGB value range is larger.
[0049] When the object to be tested is within the measurement range, the light beam of a specific wavelength focused on the surface of the object to be tested will reach the color photosensitive element through the first pinhole with maximum energy, while a large number of other out-of-focus light waves will be blocked by the first pinhole. Light of different wavelengths has different colors, so when monochromatic light of a specific wavelength passes through the first pinhole, the color photosensitive element will also present the corresponding color RGB value, and the axial depth information of the detection light spot in the object to be tested can be determined based on the different colors.
[0050] In the embodiment of the present invention, the bit depth parameter of the color photosensitive element is proportional to the RGB color value corresponding to the color image. Further, according to formula (1), the bit depth parameter of the color photosensitive element is proportional to the minimum color resolution, and the bit depth parameter of the color photosensitive element is proportional to the spectral resolution. Furthermore, the minimum color resolution is proportional to the spectral resolution.
[0051] For example, taking any monochromatic light in the visible light range as an example, when the bit depth of the color photosensitive element is 8 bits, the RGB value of the color image obtained by the color photosensitive element is (0, 11, 255); when the bit depth of the color photosensitive element is 10 bits, the RGB value of the color image obtained by the color photosensitive element is (0, 44, 1020); when the bit depth of the color photosensitive element is 12 bits, the RGB value of the color image obtained by the color photosensitive element is (0, 176, 4080); further, if the minimum change unit of the bit depth of the color photosensitive element is 1, the RGB value of the corresponding color image is substituted into formula (1), and the theoretical axial resolution value of the spectral confocal displacement measurement device can be obtained.
[0052] In an embodiment of the present invention, a plane reflector is used as the object to be tested to calibrate the system within the measurement range of the system axial depth-hue parameter H value mapping relationship, and a corresponding calibration curve is obtained; when multiple first monochromatic reflected lights with surface defect information of the object to be tested that meet the confocal condition pass through the first pinhole to form a second monochromatic reflected light, which is then received by the color photosensitive element, the processor converts the color image including RGB information received by the photosensitive element into the hue parameter H value according to the color model conversion, and further based on the axial depth-hue parameter H value correspondence relationship of the confocal system, the axial depth information can be obtained; combined with the motion control scanning of the displacement stage, the defects at different positions are reconstructed in three dimensions using chromatogram decoding, and the length, width and depth information of the surface defects of the object to be tested can be obtained, so as to realize efficient detection of surface defects. The color photosensitive element has an adjustable bit depth.
[0053] Table 1 shows the minimum color resolution, spectral resolution and axial resolution that can be achieved by the spectral confocal displacement measurement device under different bit depths provided by the embodiment of the present invention.
[0054] Table 1
[0055]
[0056] Embodiment 1
[0057] According to the method provided by the embodiment of the present invention, when a color camera with a bit depth parameter of 8 bits is used, it is approximately equivalent to a traditional spectrometer with a spectral resolution of 0.1666nm. When a color camera with a bit depth parameter of 12 bits is sampled, the resolution of the color camera with a bit depth parameter of 8 bits can be increased by about 16 times, verifying that the hue parameter H is subdivided by a high-bit-depth color photosensitive element, and the spectral resolution is improved, thereby achieving the purpose of improving the axial resolution by chromatogram decoding.
[0058] Embodiment 2
[0059] The difference from the first embodiment is that Figure 4 Based on the spectral confocal system structure provided, a color sensor is used to replace the color camera. In practical applications, in addition to ensuring the accuracy of the color conversion algorithm in the actual measurement process, decoding the spectral data must also obtain accurate surface depth information of the object to be measured, so as to obtain an accurate mapping relationship.
[0060] Take the plane reflector as the object to be tested. When the displacement platform is within the measurement range of the detection system, the color sensor receives a light spot with a specific color. By moving the displacement platform left and right, the wavelength of the light focused on the surface of the plane reflector will change, and the RGB value of the color of the light spot received by the color sensor will also change accordingly. The movement of the displacement platform is recorded as position information and corresponding RGB data, and the processed data information is placed in a unified coordinate system. Through the conversion relationship between the RGB color value and the HSI model, the corresponding relationship between the axial depth and the hue parameter H value is obtained. According to the calibration curve, the axial depth information corresponding to the H value within the measurement range can be obtained, as shown in the following figure: Figure 5 shown.
[0061] In this embodiment, the model of the color camera is MER-131-210U3C. Further, the color camera in the embodiment can also be replaced with a color sensor of model JY-C.
[0062] In summary, the embodiment of the present invention provides a high-precision and high-efficiency spectral confocal displacement measurement method, which includes: setting the bit depth parameter of the color photosensitive element, so that the incident light from the light source assembly is reflected by the object to be measured as a plurality of first monochromatic reflected lights through the dichroic prism and the dispersion lens group; the plurality of first monochromatic reflected lights are formed into second monochromatic reflected lights through the dispersion lens group, the dichroic prism, and the first pinhole and enter the color photosensitive element, and a color image is formed based on the second monochromatic reflected light; the RGB color value corresponding to the bit depth parameter is obtained according to the color image, the hue parameter H value is obtained according to the conversion relationship between the RGB color value and the HSI model, and the axial depth information of the object to be measured is obtained according to the hue parameter H value. When the monochromatic reflected light returning with the surface defect information of the object to be measured that meets the confocal condition passes through the first pinhole to form the second monochromatic reflected light, and then is received by the color photosensitive element, the processor converts the color image including RGB information received by the photosensitive element into the hue parameter H value according to the color model conversion, and further based on the overall calibration curve of the axial depth-hue parameter H value within the measurement range of the confocal system, the axial depth information can be obtained. Combined with the motion control scanning of the translation stage, chromatogram decoding is used to perform three-dimensional reconstruction of defects at different positions, thereby obtaining the length, width and depth information of the surface defects of the object to be measured. This method uses a high-bit depth color photosensitive element instead of a spectrometer and applies chromatogram decoding to the spectral confocal measurement system, which can quickly complete the spectral information solution while still stably improving the axial resolution of the system.
[0063] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0064] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A high-precision and high-efficiency spectral confocal displacement measurement method, characterized in that: include: Setting the bit depth parameters of the color photosensitive element so that the incident light from the light source assembly passes through the beam splitter prism and the dispersion lens group and is reflected by the object to be measured into a plurality of first monochromatic reflected lights; Allowing a plurality of first monochromatic reflected lights to pass through a dispersion lens group, a beam splitter prism, and a first pinhole to form second monochromatic reflected lights, which then enter the color photosensitive element, and forming a color image based on the second monochromatic reflected lights; Obtaining an RGB color value corresponding to the bit depth parameter according to the color image, obtaining a hue parameter H value according to a conversion relationship between the RGB color value and an HSI model, and obtaining axial depth information of the object to be measured according to the hue parameter H value; Wherein, the bit depth parameter of the color photosensitive element is proportional to the RGB color value corresponding to the color image; The bit depth parameter of the color photosensitive element is proportional to the minimum color resolution; The bit depth parameter of the color photosensitive element is proportional to the spectral resolution; The minimum color resolution is proportional to the spectral resolution; The axial resolution of the spectral confocal displacement measurement device is determined by the following formula: Wherein, Δd represents the depth measurement range of the spectral confocal displacement measuring device, Δλ represents the working wavelength range of the wide spectrum light source included in the spectral confocal displacement measuring device, and λ all Indicates the visible spectrum band range, H all Indicates the range of the hue parameter H value, ΔH bit It represents the minimum color resolution, and δd represents the axial resolution.
2. The method according to claim 1, wherein The wide spectrum light source has a range of 460nm-660nm and an axial dispersion of 1.58mm.
3. The method according to claim 1, wherein The color photosensitive element is a color camera; or a color sensor.
