derenlei / Unity_Detection2AR

Localize 2D image object detection in 3D Scene with Yolo in Unity Barracuda and ARFoundation.
https://derenlei.medium.com/object-detection-with-localization-using-unity-barracuda-and-arfoundation-794b4eff02f8
MIT License
218 stars 61 forks source link

Show bounding box on detected object instantly #19

Closed syedali1621 closed 3 years ago

syedali1621 commented 3 years ago

I am using yolov2tiny my own model i want to detect object from far and near distance but current project is not detecting from far distance and also it need to hold the phone for few seconds to detect from near distance. I want instance detection could you please guide which script do i need to modify. My same model is detecting well on tfunity below project it is detecting from far and near distance instantly with bounding box i need same behavior in this project.

https://github.com/shaqian/TF-Unity-ARFoundation Thank you.

derenlei commented 3 years ago

Hi @syedali1621. You can use a lower confidence threshold for your model at https://github.com/derenlei/Unity_Detection2AR/blob/main/Assets/Scripts/DetectorYolo2.cs#L30.