Photometric stereo reconstruction method and system based on ring-shaped LED light source
By acquiring multi-polarization images through rotating a ring-shaped LED light source and fitting the minimum fitting intensity, the problems of highlights and local saturation in traditional photometric stereo methods are solved, and high-precision 3D reconstruction of highly reflective objects is achieved.
Patent Information
- Application Number
- CN202611669053.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional photometric stereo methods are prone to specular highlights and local saturation in the measurement of highly reflective objects, leading to errors in normal estimation and missing reconstructions, and lacking redundant information in the same direction to suppress specular contamination.
A ring-shaped LED light source is used to rotate around the camera's optical axis to acquire multiple polarization images under different polarization states. The minimum fitting intensity is then fitted using Stokes' theorem to construct a high-light suppression intensity stack for photometric stereo surface normal reconstruction.
It effectively reduces the impact of specular highlights and local saturation on the reconstruction of the photometric stereo normal, thus improving the accuracy of three-dimensional measurement under high reflectivity conditions.
Smart Images

Figure CN123160797A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of three-dimensional measurement technology, and in particular to a photometric stereo reconstruction method and system based on a ring LED light source. Background Technology
[0002] Photometric stereo vision is a 3D measurement method that estimates the surface normal of an object using a fixed camera and multiple images with known illumination directions. Traditional photometric stereo methods typically assume that the object surface approximately satisfies the Lambertian reflection model, meaning that image intensity is mainly determined by the illumination direction, surface normal, and surface albedo. Under this model, linear equations can be established and the surface normal can be solved using images with multi-directional illumination.
[0003] However, in measurements of highly reflective objects such as metals, glossy plastics, ceramic glazes, and painted surfaces, specular highlights and local saturation are easily observed on the object's surface. In these cases, the observed intensity contains significant non-Lambertian specular components, and pixel clipping may even occur, causing the intensity model of the traditional photometric stereo to be destroyed, which in turn leads to normal estimation errors, local distortions, or missing reconstructions.
[0004] Traditional photometric stereo systems can calibrate the LED illumination direction using reflection points on a calibration sphere, thus obtaining the illumination matrix. However, illumination direction calibration mainly addresses the geometric problem of "where the light comes from," and cannot solve the problem of modeling the intensity of specular pixels on the surface of the actual object being measured. When an image under a certain illumination direction is contaminated by specular highlights or local saturation, traditional methods typically only have one intensity observation in that direction, lacking redundant information in the same direction to distinguish or suppress specular contamination.
[0005] Existing methods can improve the reconstruction performance of non-Lambertian surfaces through specular detection, outlier removal, robust optimization, reflection modeling, or learning methods, but these methods mostly focus on algorithmic processing after image acquisition. For photometric stereo measurements under high reflectivity conditions, if the observation structure of each preset illumination direction can be changed at the illumination acquisition end to include not only single intensity information but also multi-polarization information in the same direction, a new observational basis for specular suppression before reconstruction can be provided. Summary of the Invention
[0006] This disclosure provides a photometric stereo reconstruction method and system based on a ring-shaped LED light source to solve the problems existing in the background art. The technical solution is as follows: In a first aspect, embodiments of this disclosure provide a photometric stereo reconstruction method based on a ring-shaped LED light source, including: S10. Acquire multiple polarization images under different polarization states in each of the multiple preset illumination directions, and acquire the rotation position of the ring LED light source and the polarization direction of the linear polarizer corresponding to the LED in different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LEDs in different polarization states are moved to the preset illumination direction in sequence, and only the LEDs located in the preset illumination direction are lit when acquiring polarization images each time. The ring LED light source includes multiple LEDs distributed along the circumference and linear polarizers set on the light output path of each LED. The linear polarizers are arranged periodically according to at least four polarization states. S20. Determine the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer. S30. Based on the global polarization axis angle, the intensity value of each pixel in the multiple polarization images is fitted using the Stokes formula to obtain the minimum fitted intensity corresponding to each pixel under the preset illumination direction. S40. The minimum fitting intensities corresponding to each preset illumination direction are combined into a high light suppression intensity stack, and the high light suppression intensity stack is used to reconstruct the photometric three-dimensional surface normal.
[0007] Optionally, the number of the plurality of LEDs is 4M, where M is an integer greater than or equal to 3; the linear polarizers are arranged in a cyclical manner according to four polarization directions: 0°, 45°, 90° and 135°.
[0008] Optionally, the multiple polarization images include images corresponding to four polarization states: 0°, 45°, 90°, and 135°.
[0009] Optionally, the global polarization axis angle is the sum of the mechanical rotation angle of the rotation position and the local mounting angle of the polarization direction of the linear polarizer.
[0010] Optionally, the Stokes formula is: , In the formula, The global polarization axis angle is represented as At that time, the intensity value of pixels in the polarized image captured by the camera, , and These are the fitting coefficients. This is the global polarization axis angle.
[0011] Optionally, the minimum fitting strength is expressed as: , In the formula, This represents the minimum fitting strength.
[0012] Optionally, the photometric stereo surface normal reconstruction is performed using the aforementioned specular suppression intensity stack, including: Based on each preset illumination direction and the high light suppression intensity stack, a photometric stereo linear equation is established, and the surface normal vector with albedo is solved. The surface normal vector with albedo is normalized to obtain the unit surface normal.
[0013] Secondly, a photometric stereo reconstruction system based on a ring-shaped LED light source is also provided, including: The polarization image acquisition module acquires multiple polarization images under different polarization states in each of multiple preset illumination directions. It acquires the rotational position of the ring LED light source and the polarization direction of the linear polarizer corresponding to the LEDs under different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LEDs under different polarization states are moved sequentially to the preset illumination direction. Only the LEDs located in the preset illumination direction are lit when acquiring polarization images. The ring LED light source includes multiple LEDs distributed along the circumference and linear polarizers disposed on the light output path of each LED. The linear polarizers are arranged periodically according to at least four polarization states. The global polarization axis angle determination module determines the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer. The minimum fitting intensity extraction module, based on the global polarization axis angle, uses the Stokes formula to fit the intensity values of each pixel in the multiple polarization images to obtain the minimum fitting intensity corresponding to each pixel under the preset illumination direction. The surface normal reconstruction module forms a high light suppression intensity stack by assembling the minimum fitting intensity corresponding to each preset illumination direction, and uses the high light suppression intensity stack to reconstruct the photometric three-dimensional surface normal.
[0014] Thirdly, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described photometric stereo reconstruction method based on a ring LED light source.
[0015] Fourthly, a computer-readable storage medium is also provided, on which a computer program / instruction and a bit stream are stored, wherein the program / instruction, when executed by a processor, implements the above-described photometric stereo reconstruction method based on a ring LED light source to generate the bit stream.
[0016] The advantages or beneficial effects of the above technical solutions include at least the following: 1) This disclosure proposes to extend the single intensity observation of each preset illumination direction in traditional photometric stereo to multiple polarization images under the same preset illumination direction, thereby increasing the polarization observation dimension required for highlight suppression from the acquisition end; 2) This disclosure proposes to achieve physical decoupling between the illumination direction and the polarization state by rotating the ring LED light source around the camera optical axis by one LED spacing, so that LEDs with different polarization states are moved to the same preset illumination direction in sequence. 3) This disclosure extracts the minimum fitting intensity based on Stokes fitting and uses it as the input for specular suppression before reconstruction to form a specular suppression intensity stack. Using this specular suppression intensity stack for photometric stereo surface normal reconstruction can reduce the influence of specular highlights and local saturation on photometric stereo normal reconstruction.
[0017] The above overview is for illustrative purposes only and is not intended to be limiting in any way. Further aspects, embodiments, and features of this disclosure will become readily apparent from the accompanying drawings and the following detailed description, in addition to the illustrative aspects, embodiments, and features described above. Attached Figure Description
[0018] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in this disclosure and should not be construed as limiting the scope of this disclosure.
[0019] Figure 1 This is a flowchart of the photometric stereo reconstruction method based on a ring LED light source in the embodiments of this disclosure; Figure 2 This is a schematic diagram of the structure and step-by-step acquisition of the ring LED light source rotation acquisition imaging system in this embodiment of the disclosure; Figure 3 This is a schematic diagram of the structure of a single LED adjustable linear polarizer cover in an example of this disclosure; Figure 4 This is a block diagram of the photometric stereo reconstruction system based on a ring LED light source in this disclosure example. Detailed Implementation
[0020] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of this disclosure. Therefore, the drawings and description are to be considered exemplary in nature and not restrictive.
[0021] To better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the embodiments of this disclosure, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the protection scope of the embodiments of this disclosure.
[0023] This disclosure provides a photometric stereo reconstruction method based on a ring-shaped LED light source, such as... Figure 1 As shown, it includes the following steps: S10. Acquire multiple polarization images under different polarization states in each of the multiple preset illumination directions, and acquire the rotation position of the ring LED light source and the polarization direction of the linear polarizer 2 corresponding to the LED 7 under different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LED 7 under different polarization states are moved to the preset illumination direction in sequence, and only the LED 7 located in the preset illumination direction is lit when acquiring polarization images each time. The ring LED light source includes multiple LED 7 distributed along the circumference and linear polarizer 2 set on the light output path of each LED 7. The linear polarizer 2 is arranged periodically according to at least four polarization states. S20. Determine the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer 2. S30. Based on the global polarization axis angle, the intensity value of each pixel in the multiple polarization images is fitted using the Stokes formula to obtain the minimum fitted intensity corresponding to each pixel under the preset illumination direction. S40. The minimum fitting intensities corresponding to each preset illumination direction are combined into a high light suppression intensity stack, and the high light suppression intensity stack is used to reconstruct the photometric three-dimensional surface normal.
[0024] This disclosure describes the above steps by way of example: S10. Acquire multiple polarization images under different polarization states in each of the multiple preset illumination directions, and acquire the rotation position of the ring LED light source and the polarization direction of the linear polarizer 2 corresponding to the LED 7 under different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LED 7 under different polarization states are moved to the preset illumination direction in sequence, and only the LED 7 located in the preset illumination direction is lit when acquiring polarization images each time. The ring LED light source includes multiple LED 7 distributed along the circumference and linear polarizer 2 set on the light output path of each LED 7. The linear polarizer 2 is arranged periodically according to at least four polarization states.
[0025] In one embodiment, firstly, system calibration parameters are acquired. These parameters include camera intrinsic parameters and distortion parameters, LED 7 illumination direction, LED 7 brightness response, polarization direction of linear polarizer 2, and the rotational position of the ring LED light source. Camera parameters can be obtained using conventional camera calibration methods; the LED 7 illumination direction can be obtained through a calibration sphere highlight point, geometric measurement, or a light source calibration board; the LED 7 brightness response can be obtained by collecting data from each LED 7 individually using a white board or a standard diffuse reflector; the polarization direction of linear polarizer 2 can be obtained through an analyzer or polarization camera calibration; and the rotational position of the ring LED light source can be determined through an angle scale, positioning holes, positioning pins, or an encoder.
[0026] It should be noted that the polarization image acquisition in this disclosure does not replace the illumination direction calibration. Instead, it adds multi-polarization observations for each preset illumination direction based on the known or calibrated illumination direction, in order to reduce the influence of highlights and local saturation on the intensity input.
[0027] Secondly, a ring-shaped LED light source is constructed. This ring-shaped LED light source comprises multiple LEDs 7 evenly distributed along the circumference. Each LED 7 can be independently lit, and a linear polarizer 2 is placed along the light path of each LED 7. The linear polarizers 2 can be arranged cyclically according to four polarization directions: 0°, 45°, 90°, and 135°. The number of LEDs 7 can be 4M, where M is an integer greater than or equal to 3, such as 12, 16, 24, 32, or more.
[0028] The structure and step-by-step acquisition schematic diagram of the ring LED light source rotation acquisition imaging system are shown below. Figure 2 As shown, in any preset lighting direction At this location, only one LED 7 in that direction is lit during data collection, while the other LEDs 7 are turned off. Figure 2(a) is a schematic diagram of the overall geometric layout of the imaging system. The camera center and its corresponding image plane are located at the center of the diagram. A ring of LED light sources is arranged coaxially around the camera center, and the preset illumination direction is marked on the ring of LED light sources. The ring LED light source can rotate once along the circumference by one LED 7 spacing. The direction of rotation is indicated by an arc-shaped arrow. This arc-shaped arrow is used to indicate the direction of movement of the ring LED light source as a whole, rotating clockwise around the circumference by one LED 7 spacing. The object to be measured is placed directly below the center of the camera. The viewing angle arrow points vertically upward from the object to the camera image plane, representing the direction of the observation line of sight from the object to the camera image plane when the camera acquires the image. Figure 2 (b) is a schematic diagram of the position of LED 7 corresponding to the preset illumination direction when the number of rotation steps k=0. Figure 2 (c) in the diagram is a schematic diagram of the position of LED 7 after it has rotated through one LED 7 spacing when the number of rotation steps k=1. Figure 2 (d) in the diagram represents the position of LED 7 after rotating through the distance between two LED 7s when the number of rotation steps k=2. Figure 2 (e) in the diagram shows the position of LED 7 after rotating through three LED 7 spacings when the light source rotation step number k=3. Each data acquisition only occurs when the light source is located in the preset illumination direction. LED 7 is turned on. Then, the ring-shaped LED light source rotates one LED 7 spacing, causing LED 7 with a different polarization state to move to the same preset illumination direction. Then, the next acquisition is performed. After four rotations and acquisitions, images corresponding to four polarization states—0°, 45°, 90°, and 135°—can be obtained under the same preset illumination direction. , , and This achieves decoupling between the direction of illumination and the polarization state.
[0029] In this embodiment, the input corresponding to each illumination direction in a conventional photometric stereo is: This disclosure extends the above-described data collection process to include... ,in This indicates the polarization state. This extension enables redundant observation in the polarization domain for each illumination direction. When the specular highlight is strong in certain polarization states, the change in polarization response can be used to construct a specular highlight suppression input.
[0030] S20. Determine the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer 2. In this embodiment, since the linear polarizer 2 is fixed to the LED 7, when the entire ring LED light source undergoes mechanical rotation, the global polarization axis direction of the linear polarizer 2 in the camera coordinate system will also change accordingly. Therefore, this disclosure does not directly use the local mounting angle of the polarizer as the Stokes fitting angle, but calculates the global polarization axis angle based on the local mounting angle and the mechanical rotation angle. The global polarization axis angle is expressed as the sum of the mechanical rotation angle at the rotation position and the local mounting angle of the polarization direction of the linear polarizer 2. For example, the global polarization axis angle can be expressed as a combination of the local mounting angle and the rotation angle of the ring light source, and corrected according to the actual rotation direction, coordinate system definition, and calibration results.
[0031] S30. Based on the global polarization axis angle, the intensity values of each pixel in the multiple polarization images are fitted using the Stokes formula to obtain the minimum fitted intensity corresponding to each pixel under the preset illumination direction.
[0032] In this embodiment, the intensity values of each pixel in four polarization images under the same preset illumination direction are fitted using Stokes form to obtain the fitting coefficients. , and And calculate the minimum fitting strength. .
[0033] The Stokes formula is as follows: , In the formula, The global polarization axis angle is represented as At that time, the intensity value of pixels in the polarized image captured by the camera, , and These are the fitting coefficients. This is the global polarization axis angle.
[0034] The minimum fitting strength is expressed as: , In the formula, This represents the minimum fitting strength.
[0035] S40. The minimum fitting intensities corresponding to each preset illumination direction are combined into a high light suppression intensity stack, and the high light suppression intensity stack is used to reconstruct the photometric three-dimensional surface normal.
[0036] In this embodiment, each preset illumination direction is... They are combined into a specular suppression intensity stack. This specular suppression intensity stack replaces the single intensity image stack in traditional photometric stereo and is used to solve for surface normals based on the illumination matrix.
[0037] The photometric stereo surface normal reconstruction using the high light suppression intensity stack includes: establishing a photometric stereo linear equation based on each preset illumination direction and the high light suppression intensity stack, and solving for the surface normal vector with albedo; and normalizing the surface normal vector with albedo to obtain the unit surface normal.
[0038] In this embodiment, the traditional photometric stereolinear equation can be expressed as: , In the formula, I For traditional intensity vectors, L Here is the illumination direction matrix. This is the surface normal vector with albedo. When using the method of this embodiment, the conventional intensity vector... I Replace with the minimum fitted intensity from each preset illumination direction. The specular suppression intensity stack is constructed, and then solved using the least squares method. Then, vector normalization is performed to obtain the unit surface normal.
[0039] In this embodiment of the present disclosure, a schematic diagram of the structure of a single LED 7 adjustable linear polarizer cover is shown below. Figure 3 As shown, where, Figure 3 (a) is a top view of the adjustable linear polarizer cover. The outer side of the cover is a rotatable outer ring 1, and the circumference of the rotatable outer ring 1 is marked with angles of 0°, 45°, 90°, 135° and 180°. A linear polarizer 2 is arranged in the central area of the cover, and the linear polarizer 2 completely covers the light-emitting area of the internal LED 7. Locking screws 3 are installed on the side wall of the rotatable outer ring 1, and a fixed base 4 with a triangular indicator mark is set at the bottom of the cover. The rotatable outer ring 1 can rotate relative to the fixed base 4 to adjust the polarization angle.
[0040] A linear polarizer 2 is installed on the light emission path of each LED 7. The linear polarizer 2 can be fixedly installed or installed in an adjustable linear polarizer cover. The operator can adjust the linear polarizer 2 to the target polarization direction according to the scale. After adjustment, it is fixed by locking screws 3 to ensure the stability of the polarization axis during the acquisition process.
[0041] Multiple LEDs 7 are distributed circumferentially along the ring-shaped support structure. A camera lens aperture can be set in the central area, allowing the camera to image the object under test from the central area of the ring-shaped LED light source. Each LED 7 can be individually lit by the light source control module to ensure that only a single LED 7 participates in illumination during each acquisition, reducing the mixing of light directions caused by simultaneous illumination from multiple light sources.
[0042] Figure 3(b) is an exploded side cross-sectional view from bottom to top. From top to bottom, the components are: rotatable outer ring 1, locking screw 3, linear polarizer 2, black light-shielding frame 5, white reflective cavity 6, LED 7, and PCB board 8. The rotatable outer ring 1 has a locking screw 3 on its side wall. After the polarization angle is adjusted, the locking screw 3 can be tightened to lock the position of the outer ring. The black light-shielding frame 5 presses the edge of the linear polarizer 2 to block light and prevent light leakage. The white reflective cavity 6 is optional and is used to focus light and improve the uniformity and luminous efficiency of light output. The PCB board 8 is the mounting substrate for the LED 7. The outer diameter of the cover is D, the inner diameter is d, and the height of the cover is h.
[0043] To improve the feasibility of the hardware prototype, an independent optical cavity or reflective cavity can be set around each LED 7 to guide the light output of the LED 7; a black light-shielding frame 5 is set around the edge of the linear polarizer 2 and the light output port; and light-blocking walls or light-shielding structures are set between adjacent LEDs 7 to reduce crosstalk, light leakage and polarization state mixing.
[0044] The rotating structure can be a manual turntable, a positioning hole and positioning pin structure, a spring plunger positioning structure, a gear transmission structure, or a stepper motor or servo motor drive structure. The rotating mechanism is used to rotate the annular LED light source around its central axis, causing LEDs 7 with different polarization states to sequentially move to the same preset illumination direction.
[0045] As another aspect of this disclosure, a photometric stereo reconstruction system 100 based on a ring-shaped LED light source is also provided, such as... Figure 4 As shown, it includes: The polarization image acquisition module 10 acquires multiple polarization images under different polarization states in each of multiple preset illumination directions, and acquires the rotation position of the ring LED light source and the polarization direction of the linear polarizer 2 corresponding to the LED 7 under different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LED 7 under different polarization states are moved to the preset illumination direction in sequence, and only the LED 7 located in the preset illumination direction is lit when acquiring polarization images each time. The ring LED light source includes multiple LED 7 distributed along the circumference and linear polarizer 2 disposed on the light output path of each LED 7. The linear polarizer 2 is arranged periodically according to at least four polarization states. The global polarization axis angle determination module 20 determines the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer 2. The minimum fitting intensity extraction module 30, based on the global polarization axis angle, uses the Stokes formula to fit the intensity value of each pixel in the multiple polarization images to obtain the minimum fitting intensity corresponding to each pixel under the preset illumination direction. The surface normal reconstruction module 40 forms a high light suppression intensity stack by assembling the minimum fitting intensity corresponding to each preset illumination direction, and uses the high light suppression intensity stack to perform photometric three-dimensional surface normal reconstruction.
[0046] Without causing contradictions, the above-described modules in the system of the present disclosure embodiments can implement any of the above-described methods.
[0047] This disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the photometric stereo reconstruction method based on a ring LED light source described in the above embodiments. The electronic device can be provided as a terminal, a server, or other types of device.
[0048] This disclosure also provides a computer-readable storage medium storing a computer program / instructions and a bitstream thereon. When the program / instructions are executed by a processor, they implement the photometric stereo reconstruction method based on a ring LED light source described in the above embodiments to generate the bitstream. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0049] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0050] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0051] The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope disclosed in this disclosure, and these should all be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. Photometric stereo reconstruction method based on a ring-shaped LED light source, characterized in that, Includes the following steps: S10. Acquire multiple polarization images under different polarization states in each of the multiple preset illumination directions, and acquire the rotation position of the ring LED light source and the polarization direction of the linear polarizer corresponding to the LED in different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LEDs in different polarization states are moved to the preset illumination direction in sequence, and only the LEDs located in the preset illumination direction are lit when acquiring polarization images each time. The ring LED light source includes multiple LEDs distributed along the circumference and linear polarizers set on the light output path of each LED. The linear polarizers are arranged periodically according to at least four polarization states. S20. Determine the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer. S30. Based on the global polarization axis angle, the intensity value of each pixel in the multiple polarization images is fitted using the Stokes formula to obtain the minimum fitted intensity corresponding to each pixel under the preset illumination direction. S40. The minimum fitting intensities corresponding to each preset illumination direction are combined into a high light suppression intensity stack, and the high light suppression intensity stack is used to reconstruct the photometric three-dimensional surface normal.
2. The method of claim 1, wherein, The number of LEDs is 4M, where M is an integer greater than or equal to 3; the linear polarizers are arranged in a cyclical pattern according to four polarization directions: 0°, 45°, 90° and 135°.
3. The method as described in claim 2, characterized in that, The multiple polarization images include images corresponding to four polarization states: 0°, 45°, 90°, and 135°.
4. The method as described in claim 1, characterized in that, The global polarization axis angle is the sum of the mechanical rotation angle of the rotation position and the local mounting angle of the polarization direction of the linear polarizer.
5. The method as described in claim 1, characterized in that, The Stokes formula is as follows: , In the formula, The global polarization axis angle is represented as At that time, the intensity value of pixels in the polarized image captured by the camera, , and These are the fitting coefficients. This is the global polarization axis angle.
6. The method as described in claim 5, characterized in that, The minimum fitting strength is expressed as: , In the formula, This represents the minimum fitting strength.
7. The method as described in claim 1, characterized in that, Photometric stereo surface normal reconstruction using the aforementioned specular suppression intensity stack includes: Based on each preset illumination direction and the high light suppression intensity stack, a photometric stereo linear equation is established, and the surface normal vector with albedo is solved. The surface normal vector with albedo is normalized to obtain the unit surface normal.
8. A photometric stereo reconstruction system based on a ring-shaped LED light source, characterized in that, include: The polarization image acquisition module acquires multiple polarization images under different polarization states in each of multiple preset illumination directions. It acquires the rotational position of the ring LED light source and the polarization direction of the linear polarizer corresponding to the LED in different polarization states at each acquisition. The multiple polarization images are obtained by rotating the ring LED light source around the camera optical axis one by one, so that the LEDs in different polarization states are moved sequentially to the preset illumination direction, and only the LEDs located in the preset illumination direction are lit when acquiring polarization images. The ring LED light source includes multiple LEDs distributed along the circumference and linear polarizers disposed on the light output path of each LED. The linear polarizers are arranged periodically according to at least four polarization states. The global polarization axis angle determination module determines the global polarization axis angle corresponding to the multiple polarization images based on the rotation position and the polarization direction of the linear polarizer. The minimum fitting intensity extraction module, based on the global polarization axis angle, uses the Stokes formula to fit the intensity values of each pixel in the multiple polarization images to obtain the minimum fitting intensity corresponding to each pixel under the preset illumination direction. The surface normal reconstruction module forms a high light suppression intensity stack by assembling the minimum fitting intensities corresponding to each preset illumination direction, and uses the high light suppression intensity stack to reconstruct the photometric three-dimensional surface normal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the photometric stereo reconstruction method based on a ring LED light source as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program / instructions and a bit stream thereon, characterized in that, When the program / instruction is executed by the processor, it implements the photometric stereo reconstruction method based on a ring LED light source as described in any one of claims 1 to 7 to generate the bit stream.
