{"id":13443328,"url":"https://github.com/hpc203/yolov7-opencv-onnxrun-cpp-py","last_synced_at":"2025-03-20T16:30:59.141Z","repository":{"id":45335923,"uuid":"513495057","full_name":"hpc203/yolov7-opencv-onnxrun-cpp-py","owner":"hpc203","description":"分别使用OpenCV、ONNXRuntime部署YOLOV7目标检测，一共包含14个onnx模型，依然是包含C++和Python两个版本的程序","archived":false,"fork":false,"pushed_at":"2022-11-05T03:44:19.000Z","size":940,"stargazers_count":184,"open_issues_count":23,"forks_count":52,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-28T06:57:56.978Z","etag":null,"topics":["cpp","onnxruntime","opencv-dnn","python","yolov7"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpc203.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-13T11:30:44.000Z","updated_at":"2024-10-22T07:17:55.000Z","dependencies_parsed_at":"2023-01-21T13:01:06.696Z","dependency_job_id":null,"html_url":"https://github.com/hpc203/yolov7-opencv-onnxrun-cpp-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolov7-opencv-onnxrun-cpp-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolov7-opencv-onnxrun-cpp-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolov7-opencv-onnxrun-cpp-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpc203%2Fyolov7-opencv-onnxrun-cpp-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpc203","download_url":"https://codeload.github.com/hpc203/yolov7-opencv-onnxrun-cpp-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244649792,"owners_count":20487492,"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":["cpp","onnxruntime","opencv-dnn","python","yolov7"],"created_at":"2024-07-31T03:01:59.244Z","updated_at":"2025-03-20T16:30:58.761Z","avatar_url":"https://github.com/hpc203.png","language":"Python","funding_links":[],"categories":["Other Versions of YOLO","Python"],"sub_categories":[],"readme":"# yolov7-opencv-onnxrun-cpp-py\n分别使用OpenCV、ONNXRuntime部署YOLOV7目标检测，一共包含14个onnx模型，依然是包含C++和Python两个版本的程序。\n\n编写这套YOLOV7的程序，跟此前编写的YOLOV6的程序，大部分源码是相同的，区别仅仅在于图片预处理的过程不一样。\nYOLOV7的图片预处理是BGR2RGB+不保持高宽比的resize+除以255\n\n由于onnx文件太多，无法直接上传到仓库里，需要从百度云盘下载，\n链接: https://pan.baidu.com/s/1FoC0n7qMz4Fz0RtDGpI6xQ  密码: 7mhs\n,下载完成后把models目录放在主程序文件的目录内，编译运行\n\n使用opencv部署的程序，有一个待优化的问题。onnxruntime读取.onnx文件可以获得输入张量的形状信息，\n但是opencv的dnn模块读取.onnx文件无法获得输入张量的形状信息，目前是根据.onnx文件的名称来解析字符串获得输入张量的高度和宽度的。\n\n\nYOLOV7的训练源码是 https://github.com/WongKinYiu/yolov7\n跟YOLOR是同一个作者的。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Fyolov7-opencv-onnxrun-cpp-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpc203%2Fyolov7-opencv-onnxrun-cpp-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpc203%2Fyolov7-opencv-onnxrun-cpp-py/lists"}