Unlock instant, AI-driven research and patent intelligence for your innovation.

Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection

A workpiece contour and curve fitting technology, applied in the field of image processing, can solve problems such as inaccurate workpiece contour, achieve high accuracy, simple method, and improve precision

Active Publication Date: 2021-08-03
CHANGZHOU MICROINTELLIGENCE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is: in order to solve the technical problem of inaccurate extraction of workpiece contour in the prior art, the present invention provides a workpiece contour curve fitting method suitable for workpiece quality inspection, which combines moving least squares method and DBSCAN clustering Algorithms are combined to fit the edge contour straight line of the picture with complex changes in the thickness of the workpiece contour, and the accurate position of the contour edge can be obtained

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection
  • Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection
  • Workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] Such as figure 1 As shown, a workpiece contour curve fitting method suitable for workpiece quality inspection includes the following steps:

[0047] S1: Obtain the original pictures of parts through industrial cameras.

[0048] It should be noted that the industrial camera can be set directly above the parts to collect the original pictures of the parts. The obtained original pictures are as follows: figure 2 shown.

[0049] S2: Grayscale and binarize the original image to obtain a binary image.

[0050] It should be noted that each pixel of the grayscale image only needs one byte to store the grayscale value, and the range of the grayscale value is 0-255. The grayscale processing can convert the color image into a grayscale image. Binarization is to make the gray value of each pixel in the pixel matrix of the image 0 (black) or 255 (white), that is, to make the entire image appear only black and white, that is, after binarization The gray value in the image is 0 o...

Embodiment 2

[0068] Such as Figure 8 As shown, a workpiece contour curve fitting device suitable for workpiece quality inspection uses the workpiece contour curve fitting method suitable for workpiece quality inspection in Embodiment 1, which includes: a camera module (1), which is configured to pass The industrial camera obtains the original picture of the parts; the preprocessing module (2), which is connected to the camera module (1), is configured to grayscale and binarize the original picture to obtain a binary image; the extraction module (3 ), which is connected with the preprocessing module (2), and is configured to extract the contour points of the binary image, and sort the contour points in turn; the inflection point detection module (4), which is connected to the extraction module (3), is configured as Starting from the first contour point, extract three contour points in sequence, calculate the slope k1 between the first contour point and the second contour point, and calcula...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a workpiece contour curve fitting method suitable for workpiece quality inspection, which combines the moving least squares method and the DBSCAN clustering algorithm, calculates the slope of a straight line between two contour points and performs comparative analysis to find out For all the inflection points of the workpiece contour, use the least square method to fit all the contour points between adjacent inflection points, fit the discrete contour points into line segments, and use the DBSCAN clustering algorithm to respectively analyze the data points in the two point sets Carry out clustering processing, and then perform moving least squares straight line fitting on the contour points corresponding to the data points (k3, b) in each cluster, so that a relatively complete straight line can be obtained and the contour curve of the workpiece can be obtained. The method can improve the accuracy of workpiece edge contour extraction, and can improve the precision of contour measurement of large workpieces.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a workpiece contour curve fitting method, device and medium suitable for workpiece quality inspection. Background technique [0002] In modern industrial production, it usually involves various inspection, detection and parts identification applications. In view of the fact that continuous, stable, fast and accurate measurement of small-sized mechanical parts cannot be carried out manually, the use of CCD industrial cameras can easily capture parts. Image, and computer image processing module for digital processing, such as grayscale, filtering, segmentation and other operations, computer image processing technology has the characteristics of non-contact and real-time measurement, and will not cause loss to parts. [0003] At present, the workpiece contour detection based on the binary image mostly uses operators to perform erosion or dilation operations. The different s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T7/12G06T7/136G06T7/11G06T7/181G06T7/62
CPCG06T2207/10004G06T2207/30164G06T7/11G06T7/12G06T7/136G06T7/181G06T7/62
Inventor 邱增帅王罡苏田丰潘正颐侯大为
Owner CHANGZHOU MICROINTELLIGENCE CO LTD