Let's return to the Build Settings window (Build Settings… under File). We no longer want OpenCV for Unity demos in our build. Remove them by either unchecking them or selecting and deleting them (Del on Windows or cmd + delete on Mac). Then, add the Rollingball scene by clicking on the Add Current button. Click on the Build and Run button, overwrite any previous build, and let the good times roll!
Note
If you are building for iOS, remember to follow the additional instructions in OpenCVForUnity/ReadMe.pdf
. Particularly, ensure that OpenCVForUnity/iOS for Xcode/opencv2.framework
is added to the project.
Test the app by drawing and scanning dots and lines of various sizes and with various styles of pen strokes. Also try scanning some things that are not drawings. Feel free to go back to the code, edit the detectors' parameters, rebuild, and see how the sensitivity has changed.