Please refer to this medium post for the detailed illustration for this project.
Pre-requisite
OpenCVForUnity plugin is needed for this project. Please download and import this plugin from Unity Asset Store.
Usage
- Put everything in this repo to the "Asset" folder in Unity project.
- Open the sample scene to run it.
- Check the "Hand Detector" script on the "Detection" game object, the "Hand Detection Mode" is default to 0, means it is using haar cascade way for hand detection. To switch to contour based way, change this number to 1. To switch to neural network method, change this number to 2.