Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ToxicSkill/YOLOV7-Webcam-inference

Simple WPF program for webcam inference with yoloV7 models.
https://github.com/ToxicSkill/YOLOV7-Webcam-inference

Last synced: 12 days ago
JSON representation

Simple WPF program for webcam inference with yoloV7 models.

Lists

README

        

# YOLOV7-Webcam-inference





Simple WPF program for webcam inference with yoloV7 models.

Implemenation of ONNX model [yolov7](https://github.com/WongKinYiu/yolov7) inference with webcam cameras.

## What's new 🤗
- **Multicamera support**
- **Ready to use model** (no export needed)
- **.NET 8.0**
- **IP Cameras support**
- **Fluent [WPF-UI](https://github.com/lepoco/wpfui) design**
- **Inference speed optimalizations**

## Usage
Download .pt model **or use onnx exported model** (in *Yolo* folder)
- [`yolov7-tiny.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-tiny.pt)
- [`yolov7.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt)
- [`yolov7x.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7x.pt)
- [`yolov7-w6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6.pt)
- [`yolov7-e6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt)
- [`yolov7-d6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-d6.pt)
- [`yolov7-e6e.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt)

Export pt model to ONNX
**Pytorch to ONNX with NMS (and inference)** Open In Colab
```shell
python export.py --weights yolov7-tiny.pt --grid --end2end --simplify \
--topk-all 100 --iou-thres 0.65 --conf-thres 0.35 --img-size 640 640 --max-wh 640
```

Place exported ONNX model in solution folder (e.q. Yolo) and change ModelPath const value in App.xaml.cs file (line 14)

Use Release confguration for better performance.

## References & Acknowledgements

Expand

* [https://github.com/WongKinYiu/yolov7](https://github.com/WongKinYiu/yolov7)
* [https://github.com/ivilson/Yolov7net](https://github.com/ivilson/Yolov7net)