OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

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

Open j3vr0n opened this issue 5 years ago • 1 comments

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!

j3vr0n avatar Nov 25 '20 18:11 j3vr0n

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.

valdeezzee avatar Jan 21 '21 01:01 valdeezzee