Hand_Tracking_Unity3D
Hand_Tracking_Unity3D copied to clipboard
white screen
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.
can you help me?
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?
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.