Rapid sub pixel edge detection and locating method based on machine vision
A sub-pixel edge, machine vision technology, used in instruments, image enhancement, image analysis, etc., can solve the problems of low detection and positioning accuracy, slow processing speed, etc.
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2015-01-07
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention belongs to the technical field of machine vision image processing, and relates to a fast sub-pixel edge detection and positioning method based on machine vision. Background technique
[0002] In the machine vision quality inspection and sorting system of PCB boards in the electronics manufacturing production line, image processing is a very important link. In the process of vision-guided loading, it is necessary to obtain real-time images of the loading table, and use fast and accurate image processing algorithms to perform target recognition and obtain information such as the number, position, and posture of PCB boards; in the process of quality inspection, use image Splicing technology, quickly obtain information such as the size and offset of the PCB board, and perform defect detection on the barcode pasted on the PCB board, and then mark the results according to the detection data; Target recognition on the PCB board. The speed and ...
Examples
Embodiment Construction
[0117] The present invention will be further described in detail below in conjunction with the drawings and specific implementation process.
[0118] A fast sub-pixel edge detection and location method based on machine vision, comprising the following steps:
[0119] Step 1: Obtain the image of the PCB board to be inspected:
[0120] When the PCB board machine vision quality inspection and sorting system on the electronic manufacturing production line is running, the image of the PCB board to be inspected is obtained;
[0121] Step 2: Perform grayscale processing and denoising operations on the PCB board image to be detected to obtain a denoised image:
[0122] The adaptive median filtering method based on the template operation is used to remove the noise interference;
[0123] Step 3: Calculate the right-angle horizontal gradient G of each pixel in the horizontal direction on the denoised image x and a right-angled vertical gradient G in the vertical direction y ;
[01...