# YOLOv5-Openvino-Cpp-Python
Example of performing inference with ultralytics [YOLOv5](https://github.com/ultralytics/yolov5) using the 2022.1.0 openvino API in C++ using Docker as well as python.
This repository is only for model inference using openvino. Therefore, it assumes the YOLOv5 model is already trained and exported to openvino (.bin, .xml) format. For further info check [YOLOv5](https://github.com/ultralytics/yolov5).
## YOLOv5-Openvino-Cpp
### Docker installation
This repository folder contains the Dockerfile to build a docker image with the Intel® Distribution of OpenVINO™ toolkit.
1) This command builds an image with OpenVINO™ 2022.1.0 release.
```
docker build cpp -t openvino_container:2022.1.0
```
2) This command creates a docker container with OpenVINO™ 2022.1.0 release.
##### Windows
```
docker run -it --rm -v %cd%:/yolov5-openvino openvino_container:2022.1.0
```
##### Linux/Mac
```
docker run -it --rm -v $(pwd):/yolov5-openvino openvino_container:2022.1.0
```
### Cmake build
From within the docker run:
```
cd cpp && mkdir build && cd build
```
Then create the make file using cmake:
```
cmake -S ../ -O ./
```
Then compile the program using:
```
make
```
Then run the executable:
```
./main
```
## YOLOv5-Openvino-Python
### Usage
```
python -m venv /path/to/env
source /path/to/env/bin/activate # Linux/mac
\path\to\env\Script\activate # Windows
```
```
cd python
```
```
pip install -r requirements.txt
```
Then run the script:
```
python main.py
```
## Final Result:

没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论



























收起资源包目录



















共 13 条
- 1
资源评论


Mmnnnbb123
- 粉丝: 784
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 电子政务网络自动化办公oa系统毕业(设计)论文.doc
- linux申请端口范文.doc
- AutoCAD-机械制图实训教程项目一课件.ppt
- 网站合作协议模板.docx
- 自适应滤波算法的研究正文大学学位论文.doc
- 小区智慧交通建设方案范文.docx
- 基于 Hadoop 和 Apriori 的山东大学图书推荐 山东大学 SDU 大数据课程设计:基于 Hadoop 与 Apriori 的图书推荐系统 Web 实现
- 文旅局大数据自查报告.docx
- 加快智慧城市项目建设方案.docx
- 网络维护公司委托管理协议.docx
- 网络预约出租汽车企业提升乘客安全与舒适度的措施.pptx
- 嵌入式指纹采集系统的研究与设计——指纹采集与综合设计.doc
- 网络电话的实现设计方案.docx
- 约瑟夫环Java课程实施方案大.doc
- 创业计划书--移动互联网。.doc
- 学士学位论文—-学分管理系统数据库课程设计报告.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
