当前位置:网站首页>[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5
[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5
2022-07-28 04:20:00 【Make progress every day】
Practical blog Guide ( Ongoing update …):
- Construction of actual combat environment
- Custom datasets
- model training
- Model testing and evaluation
- YOLOv5 Integrate PyQt5
After the first four steps, it has been successfully built YOLOv5 Environment and completed the traffic sign recognition system . But because of YOLOv5 There is no graphical interface , So use it here YOLOv5 Integrate PyQt5 Make a simple visual interface .
Preview it , The resulting interface looks like this :
1. install PyQt5
Type the following command to install PyQt5:
pip install PyQt5
pip install PyQt5-tools
2. start-up PyQt5
Open console , Enter the following command , You can open Qt Tools :
designer.exe

If you report an error, you can check whether something is missing , And then use pip Install and restart .
If the startup is successful, you will get the interface shown in the following figure :
choice Main Window, And I'm gonna go ahead and create , You can get the following interface :
3. Layout creation
Then we will add two buttons and a text box , Used to select image or video and display area .
You can choose what we need on the left as shown in the figure above Push Button, Used to create buttons . and label You can go through the filter Filter to get . Then change the name of the button , The results shown in the figure above are obtained .
Then select these two buttons , Right click to select vertical layout :
Then select the button and text box , Use horizontal layout .
For adaptive layout , That is, when you zoom in 、 When you reduce the size of the window , Still keep the scale of the interface elements , Can be in a blank space , Right click , choice Layout --> Horizontal layout 
Then modify the size scale 
Finally, adjust the width and height of the button , You can complete the layout style .
And save it , obtain untitled.ui file .
4. Convert to py file
Start the terminal under the path of this file , Run the following code to convert it to py file :
pyuic5.bat -o main.py untitled.ui

Finally, bind the corresponding button with the relevant code , Relevant functions can be realized .
5. Sample demonstration
Picture detection
Click image detection , Select relevant pictures , Then we get the following results :
边栏推荐
- When import is introduced, sometimes there are braces, sometimes there are no braces. How should we understand this?
- Go grpc: a solution of connection reset by peer
- Iterator function operation of iterator learning
- Information system project manager (2022) - key content: Knowledge Management (15)
- xml文件使用及解析
- Kingbasees Security Guide for Jincang database -- 5.2. data integrity protection
- What is interface testing and its testing process
- [untitled]
- CV2. Threshold(), CV2. Findcontours(), CV2. Findcontours image contour processing
- C # cross thread refresh foreground UI
猜你喜欢
![[untitled]](/img/e9/4b00244b67af5ddaa3f35baa1ac968.png)
[untitled]

Analysis of static broadcast transmission process

校园流浪猫信息记录和分享的小程序源码

ftp服务器、nfs服务器的搭建和使用

glusterfs 文件未挂载,权限: r-s

RN interface jump description

RT thread changes the print serial port (add other functions on the basis of BSP)

过滤器、拦截器、监听器

Information system project manager (2022) - key content: Project Procurement Management (12)
![[record of question brushing] 9. Number of palindromes](/img/01/74b0f40a29aaec487898a791cc8b79.png)
[record of question brushing] 9. Number of palindromes
随机推荐
Difference between on, where and having
Un7.27: common commands of redis database.
Convert py file to exe executable file
We must do these seven things well before leaving, and it's troublesome to do one less thing.
A little advice for students - how to build their own knowledge system?
金仓数据库KingbaseES安全指南--6.2. 身份验证相关的配置文件
Glusterfs file is not mounted, permission: R-S
Classification cluster analysis
Kingbasees Security Guide for Jincang database -- 4 data access protection
Go grpc: a solution of connection reset by peer
The State Administration of market supervision exposes typical cases of food safety
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]
Esp8266 WiFi module and mobile communication
UBI read only file system
H. 265 web player easyplayer realizes webrtc video real-time recording function
[coding and decoding] Huffman coding and decoding based on Matlab GUI [including Matlab source code 1976]
【day03】流程控制语句
20-Openwrt crond crontab
[blood vessel detection] Based on MATLAB mom method, combined with Hessian and curve fitting, blood vessel diameter measurement [including Matlab source code, 1970]
ftp服务器、nfs服务器的搭建和使用