Method for measuring bubble offset of two-line vial based on image processing technology
A technology for image processing and tube levels, which is applied to measuring devices, instruments, and optical devices, etc., can solve the problems of large errors, time-consuming and labor-intensive human eye recognition, etc., and achieve high precision and better robustness.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0027] Step 1: Read the original grayscale image of the bubble in the two-line vial
[0028] The original grayscale image src of the obtained two-line vial bubble is as follows: figure 2 shown.
[0029] Step 2: Binarize the original grayscale image
[0030] The binarized image bI obtained by binarizing and segmenting the original grayscale image src using the OTSU method 1 like image 3 shown.
[0031] Step 3: For the binarized image bI 1 Perform contour detection to find the largest contour CT in the image Max And find the inclination angle of the smallest circumscribed rectangle of the largest contour
[0032] For the image bI obtained after binarization 1 For contour detection, since the foreground image and the background image are significantly different after binarization, and the background image is completely black, the image in the area surrounded by the largest contour in the binarized image is the foreground image. Find the largest contour number index and s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


