EnoxSoftware / OpenCVForUnity

OpenCV for Unity (Untiy Asset Plugin)
https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
557 stars 175 forks source link

Removing bounding box and replacing with localized image or button in Unity #78

Open j3vr0n opened 3 years ago

j3vr0n commented 3 years ago

Hi, I've successfully created a model using YOLO v4 tiny that works pretty well in this asset. We have an additional requirement to replace the bounding box with a button or icon that can be selected over a detected object and the user can press for a 'more info' UI to appear.

Has someone accomplished something similar using OpenCV for Unity?

Thanks for any help!

valdeezzee commented 3 years ago

Here is a solution for placing a 3d object over a detected object. https://forum.unity.com/threads/released-opencv-for-unity.277080/page-52#post-6746134

To remove the bounding box you can look at the DnnObjectDetectionWebCamTextureExample.cs. Remove or comment out everything that is in the drawPred() method around line 644.