Saturday, 16 April 2016

OpenCV color blob detection script on Android Studio emulator

This blog is actually for those who would like to test out a running script from an Android Studio of a OpenCV color-blob-detection script for Androids.

This was one of my research topic for last week in doing Augment Reality app from researching using Google search engine and make something work.

Those who is interested in doing so can actually start do some reading in using OpenCV.

Don't worry about installing as it says as it is just introduction news to get you up and going. It is wise to do it the manual way in downloading this open_cv_android_sdk file from this page here.

So you don't need to install the Eclipse as Android Studio is now the main dev tool kit. What you also need is Java SDK so make sure you have enough 2 Gig space for both of it (at least).

To make things working (after an hour of installation) read this how to make the demo in the meantime so you understand what to do and how to get things running.

Modify the code as it says what it does, don't worry about importing the src code about opencv sdk libraries, as you can import binaries files into the Android emulator by drag the apk file to the window.

The rest is just setting to make the camera and the script working in place. 

Hint: to make things fast you can actually downgrade the emulator type like Nexus S and use a lower Android version such as Lollipop.

Please view the screenshots.




NB: What it shows is a moving object which is brightly colored on the screen and you can click to show what kind of color it is. It then able to recognise the color blob even if it is moving. 

Feel free to test this out!! 

No comments:

Post a Comment