Hand_Tracking_Unity3D icon indicating copy to clipboard operation
Hand_Tracking_Unity3D copied to clipboard

white screen

Open andreac opened this issue 5 years ago • 2 comments

Hi, i'm testing the possibilities to use opencv in unity for hand masking.

I haveiported opencv for unity and your code. In scene->detection i have inserted the two scripts and connect them, but i'm missing what i have to put on Webcam Operation.

detection

can you help me?

andreac avatar Nov 21 '19 14:11 andreac

ok, i've solved adding detection to web cam operation. Now i could test, but it doesn't work. if i set to 1 i suppose that i have to see a countour but i don't see anything.

Any suggestion?

andreac avatar Nov 21 '19 14:11 andreac

Hi andreac, sorry to missed your issue. For the contour method, I'm not actually drawing out the contour, instead, a box around the hand should show. You can change the code to draw out contour instead. But as mentioned in the article, both 0 (haar cascade) and 1 (contour) methods can only work under rather stringent condition (good lighting condition, big open palm facing the camera, with all fingers well separated from each other...). I suggest that the new Unity AR foundation kit now provides the feature for hand masking, but I have not tested out yet though.

teejs2012 avatar Feb 03 '20 02:02 teejs2012