Vision Motion is a mobile app that uses the camera to track an object and graph position, velocity, and acceleration.
For more pictures and a demo video, head here!
Working in Android Studio 3.0.
Running on OpenCV 3.3.0 Android pack release.
Vision Motion is a project that has been directly built in Android Studio.
Download the project and open it in Android Studio!
- Android Studio - IDE for compiling Android apps
- OpenCV - Computer vision for finding objects
- MPAndroidChart - Used to create graphs
Some devices may display the camera feed in BGR instead of RGB. Please modify the code in MainActivity.java lines 573-574 to change the output. One of these will work:
//mRgbaMat = mBgrMat; mRgbaMat = inMat;
mRgbaMat = mBgrMat; //mRgbaMat = inMat;
If you are having any issues with the OpenCV library, try reinstalling the android pack at the OpenCV website.
You can follow this tutorial to setup the OpenCV library again.
If you are still running on Android Studio 2.3.3 you will have to modify the gradle files to back to your version of certain libraries.