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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


