当前位置:网站首页>Double pointer instrument panel reading (I)
Double pointer instrument panel reading (I)
2022-04-23 13:40:00 【Jia Lanxiang】
The contents of this chapter : Think about the project and identify the dial
I basically put CSDN I've read all the articles and downloads about pointer reading on , Students with needs or questions can come to communicate , Resources can also be given free , The final recognition effect is shown in the picture in the previous article , After optimization, the resources occupied by running the program are particularly small ,GPU not essential . It should be easy to write a paper and get a patent later .
development language :python3.0+
Call package :
1.sys Used to exit the program :sys.exit()
2.time Used to calculate time , Also used matplotlib Timing of drawing
3. win32api Used to monitor the button win32api.GetKeyState(27)
4. cv2 Main call , Most processes require opencv, Version is 3.4
5. imutils It is mainly used to calculate the coordinates of the center point
6. matplotlib drawing
7. numpy mathematics
8. PIL Mainly used to transform arry Array as image
See the following table for the specific version , Too lazy to match one by one , Find it yourself
Talk about the idea of just getting the demand and the process of negation later :
Get the demand : A dial , Identify speed and signal , The dial is round
idea :hog+svm Training models , Real time tracking of dial position , Hough line recognition , Identify with the corresponding angle
practice :hog+svm The speed can , But the effect of Hough line detection is particularly poor
reason : Because the dial uses an oval pointer , The front end has a small pointer , The recognition effect is not ideal ,
How to deal with it : Use opencv After binarization of the dial by image processing , Use thinning algorithm (Image Thinning), Similar to the corrosion expansion seen before , After reading it, you can quickly understand , But with the thinning algorithm, the recognition effect is still very poor , That the road is blocked , Change the plan .
Because the intermediate manufacturer changed a dial , The use of hog+svm Look for the dial and it won't work , Change to Hough circle detection (hough cirlce Transform), Transfer is a college question , You can adjust parameters according to your own needs .
circles = cv2.HoughCircles(
binary, cv2.HOUGH_GRADIENT, 2, 1000, param1=100, param2=100, minRadius=10, maxRadius=5000)
But there's a problem , The Hough detection circle has always been carried out, and the performance requirements of the computer are particularly high , Time complexity and space complexity , For processing video, the efficiency is less than , Here I came up with a solution , The first recognized circle is used to cut the image , All circles in subsequent videos are identified according to this cutting area , Greatly reduce the performance loss of the equipment . The camera position is fixed later , This scheme is the best scheme compared with many schemes .
Comparison scheme :1.CSDN A blog program : Template matching
2. My previous plan :hog+svm
3. Hough circle detection scheme is applied to each frame of video
4.CSDN A download scheme : Forget what plan. Anyway, the effect of my side is not as good as the above comparison effect .
Write this chapter here , Work reason , Continue another day
版权声明
本文为[Jia Lanxiang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230604509243.html
边栏推荐
- Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
- Aicoco AI frontier promotion (4.23)
- torch. Where can transfer gradient
- [barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
- Xi'an CSDN signed a contract with Xi'an Siyuan University, opening a new chapter in IT talent training
- Vscode tips
- MySQL5. 5 installation tutorial
- ESP32 VHCI架构传统蓝牙设置scan mode,让设备能被搜索到
- 【动态规划】221. 最大正方形
- [point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
猜你喜欢
[quick platoon] 215 The kth largest element in the array
面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?
Solve the problem of Oracle Chinese garbled code
SAP ui5 application development tutorial 72 - animation effect setting of SAP ui5 page routing
RTOS mainstream assessment
Detailed explanation of ADB shell top command
Example interview | sun Guanghao: College Club grows and starts a business with me
零拷贝技术
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
Common types and basic usage of input plug-in of logstash data processing service
随机推荐
[point cloud series] relationship based point cloud completion
[point cloud series] unsupervised multi task feature learning on point clouds
NPM err code 500 solution
Ai21 labs | standing on the shoulders of giant frozen language models
Playwright controls local Google browsing to open and download files
TIA博途中基於高速計數器觸發中斷OB40實現定點加工動作的具體方法示例
Longitude and latitude position of provincial capitals in China
2020年最新字节跳动Android开发者常见面试题及详细解析
LeetCode_ DFS_ Medium_ 695. Maximum area of the island
Xi'an CSDN signed a contract with Xi'an Siyuan University, opening a new chapter in IT talent training
[tensorflow] sharing mechanism
SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置
How to build a line of code with M4 qprotex
[wechat applet] flex layout usage record
Summary of request and response and their ServletContext
联想拯救者Y9000X 2020
Using open to open a file in JNI returns a - 1 problem
TCP reset Gongji principle and actual combat reproduction
What does the SQL name mean
Set Jianyun x Feishu Shennuo to help the enterprise operation Department realize office automation