{"id":13645278,"url":"https://github.com/scutlrr/Yolov4-QtGUI","last_synced_at":"2025-04-21T13:32:26.680Z","repository":{"id":217106867,"uuid":"258684023","full_name":"scutlrr/Yolov4-QtGUI","owner":"scutlrr","description":"win10 vs2017 qt_demo yolov4","archived":false,"fork":false,"pushed_at":"2020-04-28T05:42:02.000Z","size":6250,"stargazers_count":140,"open_issues_count":3,"forks_count":59,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T18:41:51.341Z","etag":null,"topics":["cv","demo","gui","qt","yolov4"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scutlrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-25T04:07:14.000Z","updated_at":"2024-11-05T17:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"eefbb4a5-8405-49db-8538-a92fe372a7e8","html_url":"https://github.com/scutlrr/Yolov4-QtGUI","commit_stats":null,"previous_names":["scutlrr/yolov4-qtgui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scutlrr%2FYolov4-QtGUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scutlrr%2FYolov4-QtGUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scutlrr%2FYolov4-QtGUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scutlrr%2FYolov4-QtGUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scutlrr","download_url":"https://codeload.github.com/scutlrr/Yolov4-QtGUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250064792,"owners_count":21368973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cv","demo","gui","qt","yolov4"],"created_at":"2024-08-02T01:02:32.772Z","updated_at":"2025-04-21T13:32:24.261Z","avatar_url":"https://github.com/scutlrr.png","language":"C++","funding_links":[],"categories":["Object Detection Applications"],"sub_categories":[],"readme":"# Yolov4-QtGUI\n\n- Yolov4-QtGUI是基于 [QtGuiDemo](https://github.com/jmu201521121021/QtGuiDemo) 项目开发的可视化目标检测界面，可以简便选择本地图片、摄像头来展示图像处理算法的结果\n## 开发软件环境\n\n- **Windows 10**\n- **QT 5.9.6**\n- **OpenCV 3.4.2**    [download](https://github.com/opencv/opencv/releases/tag/3.4.2)\n- **Visual Studio 2017**\n- Cuda 10.1 （optional）\n- Cudnn \u003e= 7.0 （optional）\n## 快速使用demo\n\n下载权重文件：[yolov4_weight](https://pan.baidu.com/s/16js1bfzKFiQ6mJ7NiP_DtA)  提取码：4mic\n\n- CPU Demo：[yolov4_cpu](https://pan.baidu.com/s/1uacNNl6ZL2M3s0GVfkTdVA)    提取码：l3eh     \n- GPU Demo：[yolov4_gpu](https://pan.baidu.com/s/1c-clykwyKHGQp2ENnJjFoA)    提取码：d6lz     \n\n首先将下载的权重文件放置在  **./model**  目录下\n\n然后双击  **./Release**  目录下的  **QtGuiDemo.exe**  即可\n\n## 使用步骤（项目详解请移步博客：[Yolov4-QtGUI](https://blog.csdn.net/weixin_42448226/article/details/105752224)）\n\n- 下载项目：git clone https://github.com/scutlrr/Yolov4-QtGUI.git\n- 将 [3rdparty](https://pan.baidu.com/s/1-60BX9eXrKuUbnqHHyKihw) （提取码：f1vo）放置在项目目录下\n\n![项目结构](assets/项目结构.jpg)\n\n- vs打开 **Yolov4-QtGUI\\QtGuiDemo.sln** \n\n- **GPU version**\n\n  -  修改属性文件**yolov4.prop**，\"链接器”-\u003e\"输入\"-\u003e\"附加依赖项\"-\u003e**yolo_cpp_dll.lib**。在“**x64  release**”模式下，菜单栏点击＂生成＂－\u003e＂生成解决方案＂，并将 \n\n  -        -  3rdparty\\libdarknet\\bin 路径下的  pthreadGC2.dll、pthreadVC2.dll  \n        \n           -  3rdparty\\libdarknet\\bin\\release\\gpu 路径下的 yolo_cpp_dll.dll\n        \n           -  3rdparty\\libopencv\\bin 路径下的  opencv_world342.dll  \n        \n         复制到Yolov4-QtGUI\\x64\\release目录下\n\n- **CPU version**\n  \n  - 修改属性文件**yolov4.prop**，\"链接器”-\u003e\"输入\"-\u003e\"附加依赖项\"-\u003e**yolo_cpp_dll_cpu.lib**。在＂**x64 release**＂模式下，菜单栏点击＂生成＂－\u003e＂生成解决方案＂，并将 \n  \n  -        -  3rdparty\\libdarknet\\bin 路径下的  pthreadGC2.dll、pthreadVC2.dll  \n        \n           -  3rdparty\\libdarknet\\bin\\release\\cpu 路径下的 yolo_cpp_dll.dll\n        \n           -  3rdparty\\libopencv\\bin 路径下的  opencv_world342.dll  \n        \n         复制到Yolov4-QtGUI\\x64\\release目录下。 \n\n- 运行项目。双击x64\\Release目录下的exe文件即可。\n\n## 处理流程\n\n- 将图像处理算法处理之后的图像通过this-\u003eInputImage输出到在this-\u003eimageLabel控件上\n- 本地图片处理：void openPictureSlot()，在这个槽函数处理this-\u003eimputImage\n- 视频文件和本地摄像头处理：void paintEvent(QPaintEvent *e)，在这个槽函数处理每一帧this-\u003eimageLabel\n\n## 结果展示\n\n- 测试图片：\n\n![打开图片](assets/测试图片.png)\n\n- 测试摄像头：\n\n![打开摄像头](assets/测试摄像头.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscutlrr%2FYolov4-QtGUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscutlrr%2FYolov4-QtGUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscutlrr%2FYolov4-QtGUI/lists"}