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.

CN104268857AActive Publication Date: 2015-01-07湖南湘江时代机器人研究院有限公司
3 Cites 40 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2015-01-07

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a rapid sub pixel edge detection and locating method based on machine vision. The method includes the following steps that firstly, a detection image is acquired; secondly, denoising pretreatment is conducted on the image; thirdly, the gradient Gx of each pixel point in the horizontal direction and the gradient Gy of each pixel point in the vertical direction are calculated; fourthly, the gradient magnitude G0 and the gradient direction Gtheta of each pixel points under polar coordinates are calculated; fifthly, neighborhood pixel points of each pixel point are determined; sixthly, pixel-level edge points are determined; seventhly, the distance between a sub pixel edge point of each pixel-level edge point in the eight-gradient direction and the pixel-level edge point is calculated; eighthly, the distance d between each sub pixel edge point in the actual gradient direction Gtheta and the corresponding pixel-level edge point is calculated; ninthly, a cosine lookup table method is adopted for calculating rectangular coordinates of each sub pixel edge point in the actual gradient direction Gtheta, so that the image edge points are detected and sub-pixel-level localization is conducted. The whole method is high in calculation accuracy and speed.
Need to check novelty before this filing date? Find Prior Art

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...