Aiming at the problems of the poor robustness and universality of traditional contour matching algorithms in engineering applications, a method for improving the surface defect detection of industrial products based on contour matching algorithms is detailed in this paper. Based on the image pyramid optimization method, a three-level matching method is designed, which can quickly obtain the candidate pose of the target contour at the top of the image pyramid, combining the integral graph and the integration graph acceleration strategy based on weak classification. It can quickly obtain the rough positioning and rough angle of the target contour, which greatly improves the performance of the algorithm. In addition, to solve the problem that a large number of duplicate candidate points will be generated when the target candidate points are expanded, a method to obtain the optimal candidate points in the neighborhood of the target candidate points is designed, which can guarantee the matching accuracy and greatly reduce the calculation amount. In order to verify the effectiveness of the algorithm, functional test experiments were designed for template building function and contour matching function, including uniform illumination condition, nonlinear condition and contour matching detection under different conditions. The results show that: (1) Under uniform illumination conditions, the detection accuracy can be maintained at about 93%. (2) Under nonlinear illumination conditions, the detection accuracy can be maintained at about 91.84%. (3) When there is an external interference source, there will be a false detection or no detection, and the overall defect detection rate remains above 94%. It is verified that the proposed method can meet the application requirements of common defect detection, and has good robustness and meets the expected functional requirements of the algorithm, providing a strong technical guarantee and data support for the design of embedded image sensors in the later stage.
Automated Guided Vehicles (AGVs) are the fastest commercially available application of unmanned driving technology, and the research significance of unmanned vehicle technology remains substantial. This paper investigates the driving mode of AGVs and proposes a method to extend the kinematic model of center-driven unmanned vehicles to front-wheel drive. This change in driving force enables unmanned vehicles to achieve faster tracking and higher consistency, solving the problems of long tracking time and insufficient accuracy in complex environments and reducing production costs. By analyzing the posture relationship of the unmanned vehicle system during movement, we established a posture error system to analyze the trajectory tracking problem. Utilizing Lyapunov stability theory and the concept of backstepping, we designed a control scheme that uses linear velocity and heading angular velocity as variables for the posture error system. This control scheme aims to stabilize the system and achieve synchronized trajectory tracking control of the unmanned vehicle. The impact of control parameters in the controller on tracking performance is also discussed. The final experimental simulation results show that the system error stabilizes, and the unmanned vehicle accurately follows the predetermined trajectory, verifying the feasibility of our proposed method and control scheme.