Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Reading Gauge Values With OpenCV
Imgproc
Oleksii Kuchuk
2
www.luxoft.com
⚫ dnn
⚫ ml
⚫ flann
⚫ video
⚫ ...
⚫ imgproc
3
www.luxoft.com
imgproc
⚫ Filtering
⚫ Color conversion
⚫ Histograms
⚫ Rotations and affine
transformations
⚫ Canny edge detection
⚫ Hough transformations
4
www.luxoft.com
Canny edge detector
https://commons.wikimedia.org/wiki/File:Valve_monochrome_canny_(6).PNG
https://commons.wikimedia.org/wiki/File:Valve_original_(1).PNG
5
www.luxoft.com
Hough transformation
6
www.luxoft.com
Hough transformation
1. ”huff”
(rough)
2. ”hock”
7
www.luxoft.com
https://docs.opencv.org/3.4/d9/db0/tutorial_hough_lines.html
𝑦
= 𝑘𝑥 + 𝑏
𝛼 − 𝜃
=
𝜋
2
8
www.luxoft.com
https://docs.opencv.org/3.4/d9/db0/tutorial_hough_lines.html
9
www.luxoft.com
10
www.luxoft.com
11
www.luxoft.com
12
www.luxoft.com
13
www.luxoft.com
Step 2
Edge detection
14
www.luxoft.com
15
www.luxoft.com
Step 3
Hough transformation
16
www.luxoft.com
17
www.luxoft.com
Lines found: 11
Rho: 552 Theta: 1.36136
Rho: 548 Theta: 1.27409
Rho: 549 Theta: 1.37881
Rho: 546 Theta: 1.29154
Rho: 556 Theta: 1.3439
Rho: 550 Theta: 1.25664
Rho: 542 Theta: 1.309
Rho: 547 Theta: 1.39626
Rho: 558 Theta: 1.32645
Rho: 544 Theta: 1.39626
Rho: 539 Theta: 1.32645
18
www.luxoft.com
19
www.luxoft.com
20
www.luxoft.com
21
www.luxoft.com
Needle inclination: 17.1136
Speed: 11.2905
22
www.luxoft.com
Conclusion
⚫ OpenCV imgproc does a good job
⚫ Image preprocessing must be chosen individually
⚫ Detection errors can occur
23
www.luxoft.com
Q&A

More Related Content

Oleksii Kuchuk "Reading gauge values with open cv imgproc"