❗❗❗ New YOLOv8 version ❗❗❗
I'm proudly announcing a new project that implements the state-of-the-art YOLOv8 network! It has object detection as well as instance segmentation demos.
Check it here!
Object detection app built on Unity Barracuda and YOLOv2 Tiny. This project will not be supported in the future, check the new version.
This simple open-source project presents an example of Unity Barracuda usage. It uses the lite version of YOLOv2. The target platform are mobile devices but it also works fine on desktops. This project uses the webcamera as input.
The images were taken from the open COCO dataset.
- Unity Barracuda installed by Package Manager (tested on version 3.0)
- YOLOv2 Tiny model from onnx model zoo)
- Download and copy YOLOv2 Tiny model to Assets.
- Open Scenes/SampleScene.
- In the Main Camera object select the WebCamDetector script and point the downloaded model in Model File field.
There are only two MonoBehaviour scripts:
- WebCamDetector.cs which takes texture from the camera and runs the model.
- OnGUICanvasRelativeDrawer.cs required by the previous script to render text.