Robot wax mold pouring visual positioning method and system based on deep learning

By combining a polarization multispectral light source array and a deep learning detection network, the problem of image quality degradation caused by high reflectivity on the wax model surface was solved, achieving high precision and efficient automation in wax model casting.

CN123181547APending Publication Date: 2026-11-27QINGDAO TIANQI AUTOMATION ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611262226.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The high reflectivity of the wax model surface leads to a decrease in image quality and makes it difficult to accurately extract gate features, affecting the accuracy and efficiency of robot wax model casting.

Method used

A polarized multispectral light source array is used to illuminate the surface of the wax model at different polarization angles and spectral bands in a time-division manner. Multiple sets of images are acquired by a high-resolution industrial camera, the specular reflection and diffuse reflection components are separated, and the image is reconstructed to eliminate reflection interference. The gate position is detected in real time using a deep learning detection network, and combined with the hand-eye calibration matrix, it is converted into a three-dimensional spatial pose in the robot's base coordinate system, driving the robot to complete the pouring.

Benefits of technology

It improves imaging quality and real-time detection, enhances the accuracy and efficiency of wax model casting, and realizes automation and precision in robotic wax model casting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181547A_ABST
    Figure CN123181547A_ABST
Patent Text Reader

Abstract

The application provides a robot wax mold pouring visual positioning method and system based on deep learning, and relates to the technical field of image processing. The method comprises the following steps: collecting multiple groups of wax mold images; calculating the polarization characteristic parameters of each pixel point, separating the specular reflection component and the diffuse reflection component, and reconstructing the wax mold surface image; inputting the wax mold surface image into a pre-trained deep learning detection network to output the pixel position of the sprue in the image coordinate system and the corresponding confidence; when the confidence is greater than or equal to a pre-set confidence threshold, converting the pixel position into a three-dimensional space pose under a robot base coordinate system; and driving the robot mechanical arm to complete the wax mold pouring operation. The application solves the technical problems in the prior art that the image quality is reduced due to the high light reflection of the wax mold surface, and the sprue feature is difficult to accurately extract, and achieves the technical effects of improving the imaging quality, detection real-time performance and positioning accuracy, and further improving the wax mold pouring precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, specifically to a deep learning-based visual positioning method and system for robot wax model casting. Background Technology

[0002] In precision casting, wax pattern casting is a crucial process that determines the quality of the casting. Traditional wax pattern casting relies on manual labor, which suffers from low production efficiency, high labor intensity, and difficulty in meeting market demands for product consistency and flexibility. With the development of industrial robot technology, vision-guided robotic automated casting has become an important direction.

[0003] Wax molds typically have a high gloss finish, which can easily produce strong specular reflections under light, causing overexposed areas in images captured by industrial cameras, loss of gate edges and texture features, and severely affecting the accuracy of target detection.

[0004] In summary, the existing technology has technical problems such as image quality degradation due to the high reflectivity of the wax model surface and difficulty in accurately extracting gate features. Summary of the Invention

[0005] The purpose of this application is to provide a deep learning-based visual positioning method and system for robotic wax model casting, in order to solve the technical problems in the prior art where the high reflectivity of the wax model surface leads to a decrease in image quality and the difficulty in accurately extracting gate features.

[0006] To achieve the above objectives, this application provides a deep learning-based visual positioning method and system for robot wax model casting.

[0007] Firstly, this application provides a deep learning-based visual positioning method for robotic wax model casting. This method is implemented through a deep learning-based robotic wax model casting visual positioning system. The method includes: controlling a polarization multispectral light source array to illuminate the wax model surface at different polarization angles and different spectral bands in a time-division manner; simultaneously acquiring multiple sets of wax model images using a high-resolution industrial camera; calculating the polarization characteristic parameters of each pixel based on the multiple sets of wax model images; and separating the mirror according to the polarization characteristic parameters. The surface reflection component and diffuse reflection component are used to reconstruct the wax model surface image to eliminate reflective interference; the wax model surface image is input into a pre-trained deep learning detection network, which outputs the pixel position of the gate in the image coordinate system and the corresponding confidence score; when the confidence score is greater than or equal to a preset confidence threshold, the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera are obtained, and the pixel position is converted into a three-dimensional spatial pose in the robot base coordinate system; the three-dimensional spatial pose is transmitted to the robot controller in real time, driving the robot arm to move to the gate position along a planned collision-free path to complete the wax model pouring operation.

[0008] Secondly, this application also provides a deep learning-based visual positioning system for robotic wax model casting, used to execute the deep learning-based visual positioning method for robotic wax model casting as described in the first aspect. The deep learning-based visual positioning system for robotic wax model casting includes: an image acquisition module for controlling a polarized multispectral light source array to illuminate the wax model surface at different polarization angles and different spectral bands in a time-division manner, and for simultaneously acquiring multiple sets of wax model images by a high-resolution industrial camera; and a separation and reconstruction module for calculating the polarization characteristic parameters of each pixel based on the multiple sets of wax model images, and separating the specular reflection component and diffuse reflection according to the polarization characteristic parameters. The system comprises: a component module for reconstructing a wax model surface image to eliminate reflective interference; a detection module for inputting the wax model surface image into a pre-trained deep learning detection network and outputting the pixel position of the gate in the image coordinate system and the corresponding confidence level; a position transformation module for obtaining the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera when the confidence level is greater than or equal to a preset confidence threshold, and converting the pixel position into a three-dimensional spatial pose in the robot base coordinate system; and a drive module for transmitting the three-dimensional spatial pose to the robot controller in real time, driving the robot arm to move to the gate position along a planned collision-free path to complete the wax model pouring operation.

[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages: A multi-spectral light source array is controlled to illuminate the surface of a wax model at different polarization angles and spectral bands in a time-division manner, while a high-resolution industrial camera simultaneously acquires multiple sets of wax model images. Based on the multiple sets of wax model images, the polarization characteristic parameters of each pixel are calculated, and the specular reflection component and diffuse reflection component are separated according to the polarization characteristic parameters to reconstruct a wax model surface image that eliminates reflection interference. The wax model surface image is input into a pre-trained deep learning detection network, which outputs the pixel position of the gate in the image coordinate system and the corresponding confidence score. When the confidence score is greater than or equal to a preset confidence threshold, the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera are obtained, and the pixel position is converted into a three-dimensional spatial pose in the robot base coordinate system. The three-dimensional spatial pose is transmitted to the robot controller in real time, driving the robot arm to move to the gate position along a planned collision-free path to complete the wax model pouring operation. By illuminating the surface of a wax model at different polarization angles and spectral bands using a polarization multispectral light source array, specular reflection and diffuse reflection components are separated based on polarization characteristics. A high-quality image is reconstructed to eliminate reflection interference. Then, a lightweight deep learning object detection network is used to achieve real-time and accurate gate detection on an embedded platform. Furthermore, a hand-eye calibration matrix is ​​used to convert the two-dimensional pixel coordinates into a three-dimensional spatial pose in the robot's base coordinate system, driving the robot to complete automatic casting. This achieves the technical effect of improving imaging quality, real-time detection, and positioning accuracy, thereby improving the casting accuracy of the wax model.

[0010] The above description is merely an overview of the technical solution of this application. To better understand the technical means of this application and to facilitate its implementation according to the description, and to make the above and other objects, features, and advantages of this application more apparent, specific embodiments of this application are described below. It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent through the following description. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely exemplary. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating the deep learning-based visual positioning method for robot wax model casting according to this application.

[0013] Figure 2 This is a schematic diagram of the detection process using a deep learning detection network in the visual positioning method for casting robot wax models based on deep learning in this application.

[0014] Figure 3 This is a schematic diagram of the deep learning-based visual positioning system for robotic wax casting of this application.

[0015] Figure labeling: Image acquisition module 11, separation and reconstruction module 12, detection module 13, position conversion module 14, driving module 15. Detailed Implementation

[0016] This application provides a deep learning-based visual positioning method and system for robotic wax model casting, solving the technical problems of image quality degradation and difficulty in accurately extracting gate features caused by high reflectivity of the wax model surface in existing technologies. By illuminating the wax model surface at different polarization angles and spectral bands using a polarized multispectral light source array, specular reflection and diffuse reflection components are separated based on polarization characteristics to reconstruct a high-quality image free from reflective interference. This image is then combined with a lightweight deep learning object detection network on an embedded platform to achieve real-time and accurate gate detection. Furthermore, a hand-eye calibration matrix is ​​used to convert two-dimensional pixel coordinates into a three-dimensional spatial pose in the robot's base coordinate system, driving the robot to complete automatic casting. This achieves the technical effect of improving imaging quality, real-time detection, and positioning accuracy, thereby enhancing the precision of wax model casting.

[0017] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be understood that this application is not limited to the exemplary embodiments described herein. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application. It should also be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all of them.

[0018] Example 1, please refer to the appendix. Figure 1 This application provides a deep learning-based visual positioning method for robot wax model casting. The deep learning-based visual positioning method for robot wax model casting is applied to a deep learning-based visual positioning system for robot wax model casting. The deep learning-based visual positioning method for robot wax model casting specifically includes the following steps: S100: Controls a polarization multispectral light source array to illuminate the wax model surface at different polarization angles and different spectral bands in a time-division manner, while a high-resolution industrial camera simultaneously acquires multiple sets of wax model images.

[0019] The high-resolution industrial camera is deployed at the end of the robot or above the workstation. The polarization multispectral light source array consists of multiple light source units, which are evenly distributed along a ring. Each light source unit is equipped with an independently controllable polarizer and a narrowband filter.

[0020] Specifically, the polarization multispectral light source array consists of multiple light source units, such as LED light source units. These units are evenly distributed in a ring around the industrial camera to ensure illumination of the wax model surface from different azimuth angles, avoiding strong directional reflections caused by a single-direction light source. Each light source unit is equipped with an independently controllable polarizer and a narrowband filter. The polarizer is used to adjust the polarization state of the output light, while the narrowband filter is used to select a specific spectral band. In actual control, each light source unit is driven to work sequentially according to a preset timing sequence. Within each irradiation cycle, the polarization multispectral light source array irradiates the wax model surface at different times using different combinations of polarization angles and spectral bands. For example, it sequentially uses four polarization angles—0°, 45°, 90°, and 135°—along with visible light red, green, and blue bands and near-infrared bands, forming multiple sets of illumination conditions. A high-resolution industrial camera is deployed at the robot's end effector or above the workstation, strictly synchronized with the light source timing sequence. It acquires one image of the wax model under each illumination condition, thus obtaining multiple sets of wax model images under the same spatial location but with different polarization illumination and spectral responses. For example, the light source array contains 12 LED units, and each round acquires a combination of 4 polarization angles and 3 spectral bands, for a total of 12 sets of images. The resolution of a single frame image is 2048×2048 pixels, and the entire acquisition cycle is controlled within 200 milliseconds to ensure that it matches the robot's work rhythm. The acquired images provide sufficient information redundancy for subsequent polarization parameter calculations, laying a reliable image data foundation for the effective operation of the deep learning detection network.

[0021] S200: Calculate the polarization characteristic parameters of each pixel based on the multiple sets of wax model images, separate the specular reflection component and diffuse reflection component according to the polarization characteristic parameters, and reconstruct the wax model surface image to eliminate reflection interference.

[0022] Specifically, after acquiring multiple sets of polarization multispectral images, polarization characteristic parameters are calculated for each pixel. Then, the reflected light of each pixel is decomposed into specular reflection and diffuse reflection components. The specular reflection component is then removed, leaving only the diffuse reflection component. The diffuse reflection components of each pixel are then recombined according to the spatial position of the original image to generate a complete wax model surface image without high light pollution.

[0023] S300: Input the wax model surface image into a pre-trained deep learning detection network, and output the pixel position of the gate in the image coordinate system and the corresponding confidence level.

[0024] Specifically, once the polarization-reconstructed wax model surface image is generated, it is fed into a pre-trained deep learning detection network for forward inference. This network is based on the YOLO framework and has been specifically improved for the gate detection task, aiming to balance detection accuracy with the real-time inference requirements of the embedded platform. Finally, it outputs the pixel position of the gate in the image coordinate system and the corresponding confidence score. The pixel position is usually given in the form of the coordinates of the upper left and lower right corners of the detection box or the coordinates of the center point and the width and height. The confidence score represents the degree of confidence of the network in the detection result, with a value between 0 and 1, reflecting the probability that the gate target exists in the detection box.

[0025] S400: When the confidence level is greater than or equal to a preset confidence threshold, obtain the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera, and convert the pixel position into a three-dimensional spatial pose in the robot base coordinate system.

[0026] Specifically, when the confidence level of the gate output by the deep learning detection network is greater than or equal to a preset confidence threshold, the detection result is deemed reliable and valid, and the process proceeds to the pose transformation stage. First, a high-resolution industrial camera intrinsic parameter matrix, obtained beforehand through standard camera calibration procedures such as the Zhang Zhengyou calibration method, is acquired. This matrix contains parameters such as the camera's focal length, principal point coordinates, and distortion coefficients, used to describe the projection relationship from 3D spatial points to image pixel coordinates. Simultaneously, a hand-eye calibration matrix, obtained beforehand through a hand-eye calibration process, is invoked. This matrix establishes a precise spatial transformation relationship between the camera coordinate system and the robot's end effector coordinate system. It is typically obtained by solving an equation of the form AX=XB using calibration board images under multiple poses. Its form is a 4×4 homogeneous transformation matrix, containing rotation matrices and translation vectors, capable of transforming point coordinates in the camera coordinate system to the robot's end effector coordinate system and even the robot's base coordinate system. After obtaining these two core matrices, the gate pixel coordinates output by the deep learning network are fused with their corresponding depth information. Since a single pixel cannot be directly mapped to a unique three-dimensional point under monocular vision, the geometric prior information of the wax mold surface where the gate is located, or the depth value supplemented by binocular vision or structured light, is combined with the back projection of the camera's pinhole imaging model to calculate the three-dimensional coordinates of the gate center in the camera coordinate system. Then, the three-dimensional coordinates are transformed from the camera coordinate system to the robot's base coordinate system step by step through the hand-eye calibration matrix and the robot's forward kinematics model. Finally, the three-dimensional spatial pose of the gate in the robot's base coordinate system is obtained. This pose is usually represented in the form of a position vector and Euler angles or quaternions, providing an accurate pouring target point for subsequent robot motion planning.

[0027] If the confidence level is less than the preset confidence threshold, the current detection result is determined to be unreliable, triggering a re-acquisition mechanism to return to re-acquiring wax model images for detection.

[0028] S500: The three-dimensional spatial pose is transmitted to the robot controller in real time, driving the robot arm to move to the gate position along the planned collision-free path to complete the wax mold pouring operation.

[0029] Specifically, after receiving the 3D pose information of the gate, the robot controller, combined with the obstacle distribution information around the wax model obtained in advance through environmental modeling or online sensing, including the spatial positions of fixtures, conveyor lines, and other adjacent wax models, initiates a collision-free path planning algorithm in the robot's joint space or Cartesian space. This typically employs a fast expanding random tree or a sampling-based motion planning method. Considering the kinematic constraints of each robot joint, velocity and acceleration limits, and the attitude requirements of the end effector, a collision-free safe path is searched from the current robot pose to the target casting pose. Simultaneously, the planning algorithm performs collision detection and obstacle avoidance optimization at critical path points during path generation to ensure that the entire path does not interfere with any obstacles. After path planning is complete, the robot controller sends the planned trajectory point sequence to the servo drive system, driving the robot arm to move smoothly along the collision-free path, ultimately aligning the casting pipe precisely with the gate center and completing the wax model casting operation according to the preset casting speed and flow parameters.

[0030] Furthermore, S200 of this application includes: for each pixel, constructing a polarization response sequence for each pixel based on the grayscale response of the pixel in the image at each polarization angle; calculating a polarization characteristic parameter for each pixel based on the polarization response sequence of each pixel, wherein the polarization characteristic parameter is used to characterize the polarization state of the reflected light in the wax model surface area corresponding to each pixel; decomposing the reflected light of each pixel into a specular reflection component and a diffuse reflection component based on the polarization characteristic parameter of each pixel, removing the specular reflection component from each pixel, retaining the diffuse reflection component, and reconstructing the wax model surface image with the reflection interference eliminated using the diffuse reflection component of each pixel.

[0031] The polarization characteristic parameters include the degree of polarization and the polarization angle. The degree of polarization is used to characterize the proportion of polarized light in the reflected light of a pixel, and the polarization angle is used to characterize the polarization direction of the reflected light of a pixel.

[0032] Furthermore, S200 of this application includes: performing neighborhood interpolation to fill the information-deficient region in the diffuse reflection component image caused by the removal of the specular reflection component; performing contrast enhancement and edge sharpening processing on the filled image to obtain a restored image; and recombining the diffuse reflection components of each pixel in the restored image according to the original image spatial position to generate the wax model surface image.

[0033] Specifically, after simultaneously acquiring multiple sets of polarization multispectral images, multiple sets of wax model images were obtained at the same spatial location but corresponding to different polarization angles and spectral illumination conditions. The grayscale response values ​​of each pixel at different polarization angles (0°, 45°, 90°, 135°, etc.) constitute a unique polarization response sequence for that pixel. This polarization response sequence directly encodes the polarization characteristics of the reflected light from the tiny surface elements of the wax model corresponding to that pixel. A polarization response sequence was independently constructed for each pixel in the image, that is, the grayscale values ​​of that pixel in the images at each polarization angle were arranged in the acquisition order to form a response vector with a length equal to the number of polarization angles. Then, based on this vector, the Stokes vector analysis method was used to calculate the polarization parameters. Specifically, by substituting the grayscale responses at the four polarization angles into the existing Stokes parameter calculation formula, the three Stokes components (I, Q, U) were solved, and from this, the two key polarization characteristic parameters of each pixel—the degree of polarization and the polarization angle—were derived.

[0034] Specifically, after obtaining the grayscale response of each pixel at four polarization angles of 0°, 45°, 90°, and 135°, the grayscale responses at these four polarization angles are denoted as I0, I45, I90, and I135, respectively. These are essentially the projection intensities of the Stokes vector in four different polarization directions. The Stokes vector is a four-dimensional vector, typically represented as S=[I,Q,U,V]T, where I represents the total light intensity, Q represents the difference in polarization components in the horizontal and vertical directions, U represents the difference in polarization components in the 45° and 135° directions, and V represents the circular polarization component. In the wax model imaging scenario, since the light source is linearly polarized and the circular polarization effect of the wax material is negligible, the V component is considered 0. Based on the fundamental principles of polarization optics, the Stokes parameters are solved by linearly combining the above grayscale responses using the following formula: The total light intensity I is obtained by adding the responses in the two orthogonal directions of 0° and 90°. The Q component is obtained by subtracting the responses at 0° and 90°, reflecting the intensity difference between the horizontal and vertical polarization components. A positive value indicates horizontal polarization dominance, and a negative value indicates vertical polarization dominance. The U component is obtained by subtracting the responses at 45° and 135°, reflecting the intensity difference between the polarization at 45° and 135°. Ideally, the four values ​​I0, I45, I90, and I135 satisfy a certain mathematical relationship. However, due to noise and quantization errors in the actual imaging process, after calculating I, Q, and U, the polarization degree of each pixel is further verified to ensure it is within a physically reasonable range. Based on this, the polarization degree P and polarization angle θ of each pixel are derived from I, Q, and U, where the formula for calculating the polarization degree is... Physically, the polarization angle (P) represents the proportion of polarized light intensity to the total light intensity in the reflected light. When P approaches 0, it indicates that the reflected light at that point is almost completely depolarized, a typical characteristic of diffuse reflection. When P approaches 1, it indicates that the reflected light is almost completely polarized, corresponding to strong specular reflection. The formula for calculating the polarization angle is... This reflects the angle of the polarization direction of the reflected light relative to the reference direction. In actual casting scene experiments, the pixel values ​​of a typical wax model surface area were statistically analyzed. The polarization degree P value of the specular reflection area is usually between 0.75 and 0.92, while the P value of the diffuse reflection area is generally lower than 0.15. This numerical difference allows the system to accurately determine the attribute of the reflection component of each pixel based solely on the polarization degree. This allows pixels with high polarization degree to be classified as specular reflection dominant and pixels with low polarization degree to be classified as diffuse reflection dominant, providing a solid quantitative basis for subsequent component removal and image reconstruction.

[0035] The degree of polarization is used to characterize the proportion of polarized light in the reflected light, and its value is between 0 and 1. Pure diffuse reflection exhibits complete depolarization characteristics due to multiple scattering within the wax material, and its degree of polarization is usually close to 0. Specular reflection, on the other hand, strongly maintains the polarization state of the incident light, and its degree of polarization is often higher. In actual wax model surface measurements, the typical value of the degree of polarization in the specular reflection area can reach 0.7 to 0.9 or higher. This significant difference provides a reliable physical basis for subsequent component separation. The polarization angle is used to characterize the polarization direction of the reflected light. It is closely related to the local geometric orientation of the wax model surface and the direction of the incident light, and can help distinguish reflective surfaces with different orientations. After obtaining the polarization degree and polarization angle of each pixel, component decomposition is performed based on the essential difference in polarization characteristics between specular reflection and diffuse reflection. That is, for each pixel, an adaptive separation threshold is set according to its polarization degree value. Usually, this threshold is automatically selected after statistical analysis of the polarization degree histogram of the entire image. Components with polarization degree higher than the threshold are determined to be specular reflection dominant components, and components with polarization degree lower than the threshold are determined to be diffuse reflection dominant components. Then, the reflected light of each pixel is decomposed into specular reflection component and diffuse reflection component. The specular reflection component is then removed and only the diffuse reflection component is retained, because the latter carries the real information of the material and texture of the wax model surface, while the former is only an interference signal caused by the surface smoothness.

[0036] After the specular reflection component is removed, the diffuse reflection component image will show information-deficient holes in areas originally occupied by strong reflections. This is because the original grayscale response of these areas comes almost entirely from specular reflection, and the diffuse reflection component is extremely weak. Therefore, a neighborhood interpolation filling strategy is adopted for the information-deficient areas in the diffuse reflection component image. That is, bilinear interpolation or edge-direction-based adaptive interpolation is performed using the diffuse reflection intensity of effective pixels around the holes to fill in the missing data while maintaining spatial continuity. Subsequently, the filled image is subjected to contrast enhancement processing. Histogram equalization or adaptive contrast stretching methods are used to fully separate the grayscale difference between the gate area and the surrounding wax model surface. At the same time, edge sharpening filtering based on the Laplacian operator or Sobel operator is applied to significantly enhance the edge contour features of the gate, thereby obtaining a clear and complete restored image. Finally, the diffuse reflection components of each pixel in the restored image are rearranged and combined according to their spatial row and column positions in the original image to generate a wax model surface reconstruction image with completely consistent spatial resolution and no high light pollution.

[0037] Furthermore, S300 of this application includes: the deep learning detection network is an object detection network based on an improved YOLO framework. Specifically, the deep learning detection network includes: a multi-scale fusion module, located between the backbone network and the neck network, used to aggregate multi-scale features of the gate under different receptive fields; a parameter-free attention module, located at the end of the backbone network, used to make the network focus on the gate location region; and a dynamic detection head, located in the network prediction stage, used to adaptively adjust the convolutional parameters of the detection head according to the input features.

[0038] Specifically, after the polarization-reconstructed wax model surface image is generated, it is fed into a deep learning detection network based on the YOLO framework. Specifically, a multi-scale fusion module is embedded between the backbone network and the neck network. Borrowing from the general approach of multi-scale feature fusion, the feature map output by the backbone network is split into multiple subgroups along the channel dimension. Then, convolution operations with different dilation rates are applied to each subgroup, enabling different branches to capture feature information within different receptive fields, from local details to global context. Finally, the outputs of each branch are reassembled along the channel direction, effectively enhancing the network's adaptability to gate targets ranging in size from several millimeters to several centimeters. A parameter-free attention module, SimAM, is introduced at the end of the backbone network. This module differs from traditional channel attention or spatial attention mechanisms. Its core principle draws on the spatial inhibition theory in neuroscience. It quantifies the linear separability of a neuron in its neighborhood space by calculating the energy function value along the channel direction for each pixel position on the feature map. The lower the energy function value, the more significant and noteworthy the feature response at that position is. The reciprocal of the energy function value at each position is normalized to form a spatial attention weight matrix. The feature response at each position is then weighted element by element using this matrix, so that the network automatically focuses on the key area where the gate is located and suppresses irrelevant background. This attention mechanism improves the feature representation ability without adding any trainable parameters. In the prediction phase of the network, a dynamic detection head is employed. This head treats the input feature map as a three-dimensional tensor with hierarchical, spatial, and channel dimensions, and applies three sequential attention mechanisms: a scale-aware attention module dynamically weights features at different scales along the hierarchical dimension, enabling the network to flexibly handle multi-scale targets coexisting in the same image; a spatial-aware attention module uses deformable convolution to sparsely sample spatial locations and weights the sampled features according to importance factors, thus adapting to the different shapes and spatial positions of the gate from different viewpoints; and a task-aware attention module adaptively activates and suppresses feature channels according to the current task requirements, enabling the detection head to simultaneously handle target classification and bounding box regression tasks. These three modules form a complete improvement chain from multi-scale feature enhancement and key region focusing to adaptive detection head parameters, jointly ensuring that the network can perform real-time gate detection and localization with high accuracy and efficiency on the embedded platform of the casting robot.

[0039] For further details, please refer to the appendix. Figure 2S300 of this application includes: inputting the reconstructed wax model surface image into the deep learning detection network, and extracting primary feature maps by downsampling through the backbone network; inputting the primary feature maps into the multi-scale fusion module, where the multi-scale fusion module splits the feature maps along the channel dimension, extracts multi-scale local features with receptive fields of different expansion rates, and reassembles and aggregates them to generate a feature map with enhanced multi-scale expression; sending the feature map with enhanced multi-scale expression into the neck network for cross-level feature fusion, and recalibrating the fused feature map in space dimension through a parameterless attention module at the end of the backbone network; inputting the recalibrated feature map into a dynamic detection head, where the dynamic detection head adaptively adjusts the sampling position and parameters of the convolution kernel according to the spatial distribution of the input features, and outputs the pixel position of the gate detection box and the corresponding confidence level.

[0040] Specifically, the reconstructed wax model surface image is used as input and first fed into the backbone of a deep learning detection network for progressive downsampling. The backbone network employs a lightweight MobileNetv3 or ShuffleNet architecture, significantly compressing the number of parameters by replacing conventional convolutions with depthwise separable convolutions. The overall model size can be controlled within 8MB, ensuring its efficient operation on the embedded GPU platform on the robot control cabinet. The image undergoes multiple downsampling stages in the backbone network to progressively reduce spatial resolution while increasing the number of channels, ultimately outputting an image with its spatial size compressed to the original. Figure 3 The initial feature map, approximately one-third the size of the original map and expanded to hundreds of channels, retains sufficient spatial location information to support accurate bounding box regression while possessing high semantic abstraction capabilities to distinguish the gate from the background. This initial feature map is then fed into a multi-scale fusion module. First, the feature map is split into multiple subgroups along the channel dimension, each subgroup corresponding to a subset of the original feature channels. Then, dilated convolution operations with different dilation rates are applied to each subgroup, for example, setting the dilation rates to 1, 3, 5, and 7. This allows different branches to extract local features within receptive fields of different scales. Branches with small dilation rates focus on subtle texture changes at the gate edge, while branches with large dilation rates capture the relative positional relationship between the gate and the surrounding wax model surface. Finally, the multi-scale features extracted from all branches are reassembled along the channel direction to generate an enhanced feature map with rich multi-scale expressive capabilities, effectively solving the detection challenge caused by large differences in gate size. The feature maps that enhance multi-scale representation are then fed into the neck network, which typically adopts a path aggregation network structure. Through a bidirectional feature fusion path from top to bottom and bottom to top, deep semantic information is fully combined with shallow detail information, so that the gate location information and category semantic information in the feature maps of each level are complemented and enhanced.

[0041] The fused feature map undergoes spatial dimension recalibration via a parameter-free attention module at the end of the backbone network. This allows the network to automatically suppress background responses and highlight the critical area where the gate is located. Finally, the recalibrated feature map is input into a dynamic detection head. This head treats the feature map as a three-dimensional tensor with hierarchical, spatial, and channel dimensions, applying a triple attention mechanism of scale awareness, spatial awareness, and task awareness. The spatial awareness part uses deformable convolution to adaptively adjust the sampling position and convolution parameters of the convolution kernel based on the spatial distribution of the input features, making the bounding box boundary regression more accurately fit the actual geometry of the gate. The entire forward inference process is completed end-to-end, ultimately outputting the pixel position of the gate's bounding box in the image coordinate system and its corresponding confidence score. The pixel position is given as the coordinates of the top-left and bottom-right corners of the bounding box, and the confidence score, ranging from 0 to 1, reflects the degree of certainty of the detection result, providing accurate and reliable two-dimensional localization input for subsequent pose conversion.

[0042] Furthermore, S300 of this application includes: calculating the energy function value along the channel direction for each pixel position on the fused feature map through the parameterless attention module; the energy function value characterizes the linear separability of the pixel position in the corresponding neighborhood space; normalizing the energy function value of each pixel position by taking the reciprocal and then normalizing it into a spatial attention weight matrix; and fusing the feature responses of each position of the feature map element by element with the spatial attention weight matrix to obtain the recalibrated feature map.

[0043] Specifically, before the fused feature map enters the prediction stage, a parameterless attention module at the end of the backbone network recalibrates the spatial dimension of the feature map. This parameterless attention module draws on the spatial inhibition theory in neuroscience, which states that a neuron in the visual cortex exhibits a significantly different response pattern from surrounding neurons within its neighborhood, making it more worthy of attention. Based on this theory, the parameterless attention module calculates an energy function value along the channel direction for each pixel position on the fused feature map. This energy function value characterizes the linear separability of the pixel position within its corresponding neighborhood space. Specifically, a binary linear classification problem is constructed for each pixel position. The feature response of that position itself is considered a positive sample, and the feature responses of other positions within its neighborhood are considered negative samples. The optimal energy for solving this binary classification problem is obtained analytically. The reciprocal of this energy reflects the saliency of that position within its neighborhood; a lower energy value indicates a greater difference between the feature response of that position and its neighborhood, a higher degree of linear separability, and a greater contribution to object detection. It is worth noting that this calculation process is entirely based on the spatial and channel information of the current feature map itself, without involving any learnable weight parameters. Therefore, it is called a parameterless attention module. Its advantage lies in enhancing the feature representation capability without increasing the number of model parameters and computational burden, which is especially crucial for lightweight models deployed on resource-constrained embedded platforms. After obtaining the energy function value of each pixel position, the reciprocal of the energy value at each position is taken, so that positions with low energy values ​​(strong saliency) receive high response weights, while positions with high energy values ​​(weak saliency) receive low response weights. Then, the reciprocal values ​​are normalized within the spatial range of the entire feature map to generate a spatial attention weight matrix with the same spatial size as the feature map. The weight coefficient of each position in this matrix is ​​between 0 and 1, and the global sum is 1. Intuitively, it can be understood as a saliency heatmap that highlights the gate area and darkens the background area. Finally, using the spatial attention weight matrix as the weighting coefficient, the feature responses of each channel at the corresponding position on the fused feature map are multiplied and weighted element by element. That is, the weight of a certain position in the weight matrix determines the degree of enhancement or suppression of the feature responses of all channels at that position. The feature responses of high weight positions are significantly amplified, while the feature responses of low weight positions are effectively suppressed, thus obtaining the feature map after spatial dimension recalibration. In this feature map, the feature responses of the gate area are significantly enhanced while the background area is effectively suppressed.

[0044] Furthermore, this application also includes: acquiring ambient light intensity values ​​in real time through the ambient light sensor, establishing a mapping model between ambient light intensity and overall image brightness; based on the mapping model, taking the average pixel value of the image gate area reaching a preset target brightness range as the control target, and dynamically adjusting the brightness and / or exposure parameters of each light source unit using a closed-loop control strategy.

[0045] Specifically, during the process of acquiring polarization multispectral images and performing deep learning detection, fluctuations in ambient light are a significant interference factor. This is because the ambient light in the casting workshop often fluctuates in real time due to changes in window lighting, the start and stop of equipment at adjacent workstations, and personnel movement. If the light source parameters remain constant, the overall brightness of the acquired image will drift with changes in ambient light, thus affecting the stability of polarization parameter calculations and the inference accuracy of the subsequent detection network. Therefore, this invention integrates an ambient light sensor into the polarization multispectral light source array. This sensor senses the ambient light intensity around the wax model in real time and feeds the value back to the light source control system.

[0046] First, image brightness data under different ambient light intensities are collected during the initial calibration phase. A mapping model between ambient light intensity values ​​and overall image brightness is established. This model is typically constructed using polynomial fitting or piecewise linear interpolation. It can predict the theoretical brightness of the image collected under the current light source parameters based on the current ambient light readings.

[0047] Based on a mapping model, the control objective is to achieve a preset target brightness range for the average pixel value of the gate area in the image. The target brightness range is set so that the grayscale value of the gate area is within the middle of the linear response range of the camera's sensor, avoiding both insufficient signal-to-noise ratio in low light and saturation distortion in high light. A closed-loop control strategy is employed to dynamically adjust the light source brightness and camera exposure parameters. The specific control logic follows the principle of prioritizing light source brightness adjustment. When ambient light weakens, causing the image to darken, the PWM duty cycle of the light source unit is first increased to enhance the active illumination intensity to compensate for insufficient ambient light. Conversely, when ambient light strengthens, causing the image to brighten, the PWM duty cycle is first decreased to reduce the contribution of active illumination. Adjusting the light source brightness does not change the camera's exposure time and therefore does not affect motion blur characteristics, making it the preferred method for compensating for changes in ambient light. When adjusting the light source brightness to its physical upper or lower limit is insufficient to bring the image brightness back to the target range, the camera's exposure parameters are adjusted as an auxiliary measure. For example, if the ambient light is too strong and the light source is already at its lowest setting but still too bright, the exposure time is shortened; or if the ambient light is too dark and the light source is already at its highest setting but still too dark, the exposure time is appropriately extended. However, the adjustment of the exposure time is limited to a range that will not cause motion blur in the image, usually controlled within 10 milliseconds. In addition, when a sudden change in ambient light intensity causes local overexposure areas in the image, such as a beam of direct sunlight suddenly shining on a local area of ​​the wax model surface, the direction of the overexposure area is analyzed based on the histogram distribution of the current frame image. Then, the output power of the light source units in the corresponding direction in the ring light source array is independently reduced. This eliminates local overexposure while maintaining normal illumination levels in other areas, ensuring that the reflected light intensity on the wax model surface reaches spatial equilibrium within the camera's dynamic response range, effectively guaranteeing the system's positioning reliability in all-weather production environments.

[0048] In summary, the deep learning-based visual localization method for robot wax model casting provided in this application has the following technical effects: By illuminating the surface of a wax model at different polarization angles and spectral bands using a polarization multispectral light source array, specular reflection and diffuse reflection components are separated based on polarization characteristics. A high-quality image is reconstructed to eliminate reflection interference. Then, a lightweight deep learning object detection network is used to achieve real-time and accurate gate detection on an embedded platform. Furthermore, a hand-eye calibration matrix is ​​used to convert the two-dimensional pixel coordinates into a three-dimensional spatial pose in the robot's base coordinate system, driving the robot to complete automatic casting. This achieves the technical effect of improving imaging quality, real-time detection, and positioning accuracy, thereby improving the casting accuracy of the wax model.

[0049] Example 2: Based on the same inventive concept as the deep learning-based visual positioning method for robot wax model casting in Example 1, this application also provides a deep learning-based visual positioning system for robot wax model casting. Please refer to the appendix. Figure 3The deep learning-based robotic wax model casting visual positioning system includes: The image acquisition module 11 is used to control the polarization multispectral light source array to illuminate the surface of the wax model at different polarization angles and different spectral bands in a time-division manner, and to simultaneously acquire multiple sets of wax model images by a high-resolution industrial camera.

[0050] The separation and reconstruction module 12 is used to calculate the polarization characteristic parameters of each pixel based on the multiple sets of wax model images, separate the specular reflection component and the diffuse reflection component according to the polarization characteristic parameters, and reconstruct the wax model surface image with the reflection interference eliminated.

[0051] The detection module 13 is used to input the surface image of the wax model into a pre-trained deep learning detection network and output the pixel position of the gate in the image coordinate system and the corresponding confidence level.

[0052] The position conversion module 14 is used to obtain the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera when the confidence level is greater than or equal to a preset confidence threshold, and convert the pixel position into a three-dimensional spatial pose in the robot base coordinate system.

[0053] The drive module 15 is used to transmit the three-dimensional spatial pose to the robot controller in real time, and drive the robot arm to move to the gate position along the planned collision-free path to complete the wax mold pouring operation.

[0054] Furthermore, the image acquisition module 11 in the deep learning-based robot wax casting visual positioning system also includes: the high-resolution industrial camera is deployed at the robot end or above the workstation, and the polarization multispectral light source array is composed of multiple light source units, which are evenly distributed along a ring, and each light source unit is equipped with an independently controllable polarizer and a narrowband filter.

[0055] Furthermore, the separation and reconstruction module 12 in the deep learning-based robotic wax model casting visual positioning system is also used to: construct a polarization response sequence for each pixel based on the grayscale response of the pixel in the image at each polarization angle; calculate the polarization characteristic parameters of each pixel based on the polarization response sequence of each pixel, the polarization characteristic parameters being used to characterize the polarization state of the reflected light in the wax model surface area corresponding to each pixel; decompose the reflected light of each pixel into specular reflection component and diffuse reflection component based on the polarization characteristic parameters of each pixel, remove the specular reflection component from each pixel, retain the diffuse reflection component, and reconstruct the wax model surface image with the reflection interference eliminated using the diffuse reflection component of each pixel.

[0056] Furthermore, the separation and reconstruction module 12 in the deep learning-based robot wax model casting visual positioning system is also used for: the polarization characteristic parameters include polarization degree and polarization angle, the polarization degree is used to characterize the proportion of polarized light in the reflected light of the pixel, and the polarization angle is used to characterize the polarization direction of the reflected light of the pixel.

[0057] Furthermore, the separation and reconstruction module 12 in the deep learning-based robot wax model casting visual positioning system is also used to: fill the information missing areas in the diffuse reflection component image caused by the removal of the specular reflection component; perform contrast enhancement and edge sharpening processing on the filled image to obtain the restored image; and reorganize the diffuse reflection components of each pixel in the restored image according to the original image spatial position to generate the wax model surface image.

[0058] Furthermore, the detection module 13 in the deep learning-based robotic wax model casting visual positioning system is also used for: a multi-scale fusion module, located between the backbone network and the neck network, for aggregating multi-scale features of the gate under different receptive fields; a parameter-free attention module, located at the end of the backbone network, for enabling the network to focus on the gate location area; and a dynamic detection head, located in the network prediction stage, for adaptively adjusting the convolution parameters of the detection head according to the input features.

[0059] Furthermore, the detection module 13 in the deep learning-based robotic wax model casting visual positioning system is also used for: inputting the reconstructed wax model surface image into the deep learning detection network, extracting primary feature maps through step-by-step downsampling of the backbone network; inputting the primary feature maps into the multi-scale fusion module, where the multi-scale fusion module splits the feature maps along the channel dimension, extracts multi-scale local features with receptive fields of different expansion rates, and reassembles and aggregates them to generate a feature map with enhanced multi-scale expression; sending the feature map with enhanced multi-scale expression into the neck network for cross-level feature fusion, and recalibrating the fused feature map through the parameterless attention module at the end of the backbone network; inputting the recalibrated feature map into the dynamic detection head, where the dynamic detection head adaptively adjusts the sampling position and parameters of the convolution kernel according to the spatial distribution of the input features, and outputs the pixel position of the gate detection box and the corresponding confidence level.

[0060] Furthermore, the detection module 13 in the deep learning-based robot wax model casting visual positioning system is also used to: calculate the energy function value along the channel direction for each pixel position on the fused feature map through the parameterless attention module; the energy function value represents the linear separability of the pixel position in the corresponding neighborhood space; normalize the reciprocal of the energy function value of each pixel position into a spatial attention weight matrix, and fuse the feature responses of each position of the feature map element by element with the spatial attention weight matrix to obtain the recalibrated feature map.

[0061] Furthermore, the deep learning-based robotic wax model casting visual positioning system also includes an environmental compensation module, used for: the polarization multispectral light source array also integrates an ambient light sensor; the ambient light sensor acquires the ambient light intensity value in real time, and establishes a mapping model between the ambient light intensity and the overall brightness of the image; based on the mapping model, with the average pixel value of the image gate area reaching a preset target brightness range as the control target, a closed-loop control strategy is adopted to dynamically adjust the brightness and / or exposure parameters of each light source unit.

[0062] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The deep learning-based robot wax model casting visual positioning method and specific examples in the aforementioned embodiment one are also applicable to the deep learning-based robot wax model casting visual positioning system of this embodiment. Through the foregoing detailed description of the deep learning-based robot wax model casting visual positioning method, those skilled in the art can clearly understand the deep learning-based robot wax model casting visual positioning system of this embodiment. Therefore, for the sake of brevity, it will not be described in detail here.

[0063] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0064] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of this application and its equivalents, this application also intends to include such modifications and variations.

Claims

1. A deep learning-based visual positioning method for robot wax model casting, characterized in that, include: A controlled polarization multispectral light source array illuminates the surface of the wax model at different polarization angles and different spectral bands in a time-division manner, and a high-resolution industrial camera simultaneously acquires multiple sets of wax model images; Based on the multiple sets of wax model images, the polarization characteristic parameters of each pixel are calculated. The specular reflection component and diffuse reflection component are separated according to the polarization characteristic parameters, and the wax model surface image with anti-reflection interference is reconstructed. The wax model surface image is input into a pre-trained deep learning detection network, which outputs the pixel position of the gate in the image coordinate system and the corresponding confidence level. When the confidence level is greater than or equal to a preset confidence threshold, the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera are obtained, and the pixel position is converted into a three-dimensional spatial pose in the robot base coordinate system. The three-dimensional spatial pose is transmitted to the robot controller in real time, driving the robot arm to move to the gate position along the planned collision-free path to complete the wax model pouring operation.

2. The deep learning-based visual positioning method for robot wax model casting as described in claim 1, characterized in that, The high-resolution industrial camera is deployed at the end of the robot or above the workstation. The polarization multispectral light source array consists of multiple light source units, which are evenly distributed along a ring. Each light source unit is equipped with an independently controllable polarizer and a narrowband filter.

3. The deep learning-based visual positioning method for robot wax model casting as described in claim 1, characterized in that, Based on the multiple sets of wax model images, the polarization characteristic parameters of each pixel are calculated. The specular reflection component and diffuse reflection component are separated according to the polarization characteristic parameters, and a wax model surface image with anti-reflection interference is reconstructed, including: For each pixel, a polarization response sequence is constructed based on the grayscale response of the pixel in the image at each polarization angle. Based on the polarization response sequence of each pixel, the polarization characteristic parameter of each pixel is calculated. The polarization characteristic parameter is used to characterize the polarization state of the reflected light in the wax model surface area corresponding to each pixel. Based on the polarization characteristic parameters of each pixel, the reflected light of each pixel is decomposed into specular reflection component and diffuse reflection component. The specular reflection component of each pixel is removed, and the diffuse reflection component is retained. The diffuse reflection component of each pixel is used to reconstruct the surface image of the wax model after eliminating reflection interference.

4. The deep learning-based visual positioning method for robot wax model casting as described in claim 3, characterized in that, The polarization characteristic parameters include the degree of polarization and the polarization angle. The degree of polarization is used to characterize the proportion of polarized light in the reflected light of a pixel, and the polarization angle is used to characterize the polarization direction of the reflected light of a pixel.

5. The deep learning-based visual positioning method for robot wax model casting as described in claim 3, characterized in that, Reconstructing the wax model surface image, eliminating reflective interference, using the diffuse reflection components of each pixel includes: Neighborhood interpolation is used to fill the information-deficient regions in the diffuse reflection component image caused by the removal of the specular reflection component. The filled image is then subjected to contrast enhancement and edge sharpening to obtain the restored image; The diffuse reflection components of each pixel in the restored image are recombined according to the spatial position of the original image to generate the surface image of the wax model.

6. The deep learning-based visual positioning method for robot wax model casting as described in claim 1, characterized in that, The deep learning detection network is an improved object detection network based on the YOLO framework, including: A multi-scale fusion module is set between the backbone network and the neck network to aggregate multi-scale features of the gate under different receptive fields; The parameterless attention module, located at the end of the backbone network, is used to focus the network on the gate location area; A dynamic detection head is set up during the network prediction stage to adaptively adjust the convolutional parameters of the detection head based on the input features.

7. The deep learning-based visual positioning method for robot wax model casting as described in claim 6, characterized in that, The wax model surface image is input into a pre-trained deep learning detection network, which outputs the pixel position of the gate in the image coordinate system and the corresponding confidence score, including: The reconstructed wax model surface image is input into the deep learning detection network, and primary feature maps are extracted by downsampling through the backbone network. The primary feature map is input into the multi-scale fusion module. The multi-scale fusion module splits the feature map along the channel dimension, extracts multi-scale local features with receptive fields of different expansion rates, and reassembles and aggregates them to generate a feature map with enhanced multi-scale expression. The feature map with enhanced multi-scale expression is fed into the neck network for cross-level feature fusion, and the fused feature map is recalibrated in spatial dimension by the parameterless attention module at the end of the backbone network. The recalibrated feature map is input into the dynamic detection head, which adaptively adjusts the sampling position and parameters of the convolution kernel according to the spatial distribution of the input features, and outputs the pixel position of the gate detection box and the corresponding confidence level.

8. The deep learning-based visual positioning method for robot wax model casting as described in claim 7, characterized in that, The fused feature maps are then subjected to spatial dimension recalibration via a parameter-free attention module at the end of the backbone network, including: The parameterless attention module calculates the energy function value along the channel direction for each pixel position on the fused feature map. The energy function value represents the degree of linear separability of a pixel location within its corresponding neighborhood space; The reciprocal of the energy function value at each pixel location is taken and normalized to form a spatial attention weight matrix. The feature responses at each location of the feature map are then fused element by element using the spatial attention weight matrix to obtain the recalibrated feature map.

9. The deep learning-based visual positioning method for robot wax model casting as described in claim 1, characterized in that, The polarization multispectral light source array also integrates an ambient light sensor: The ambient light sensor is used to acquire the ambient light intensity value in real time, and a mapping model between the ambient light intensity and the overall brightness of the image is established. Based on the mapping model, with the average pixel value of the image gate area reaching a preset target brightness range as the control target, a closed-loop control strategy is adopted to dynamically adjust the brightness and / or exposure parameters of each light source unit.

10. A deep learning-based visual positioning system for robotic wax model casting, characterized in that, The step of implementing the deep learning-based visual positioning method for robot wax model casting according to any one of claims 1 to 9, wherein the deep learning-based visual positioning system for robot wax model casting comprises: The image acquisition module is used to control the polarization multispectral light source array to illuminate the surface of the wax model at different polarization angles and different spectral bands in a time-division manner, and a high-resolution industrial camera simultaneously acquires multiple sets of wax model images; The separation and reconstruction module is used to calculate the polarization characteristic parameters of each pixel based on the multiple sets of wax model images, separate the specular reflection component and the diffuse reflection component according to the polarization characteristic parameters, and reconstruct the wax model surface image to eliminate reflection interference. The detection module is used to input the surface image of the wax model into a pre-trained deep learning detection network and output the pixel position of the gate in the image coordinate system and the corresponding confidence level. The position conversion module is used to obtain the intrinsic parameter matrix and hand-eye calibration matrix of the high-resolution industrial camera when the confidence level is greater than or equal to a preset confidence threshold, and convert the pixel position into a three-dimensional spatial pose in the robot base coordinate system. The drive module is used to transmit the three-dimensional spatial pose to the robot controller in real time, and drive the robot arm to move to the gate position along the planned collision-free path to complete the wax mold pouring operation.