Sometimes we want to determine the RGB colour values of an object. See is an application for that purpose. Since I am a layman in the field of computer vision, the identification result is currently not very accurate.
The code in this repository is the result of my work done during an upsetting weekend. You may find the code useful, particularly if you are trying to integrate Qt/QML with OpenCV. Pull requests are very welcome.
If you just want to use it, you can download the APK here.
- Qt 5.5.0
- OpenCV 2.4.11.0
The code is cross-platform. It should be easy to port the application to iOS.
- compile Qt for Android. The reference PKGBUILD for ArchLinux is available at: Github Gist
- compile OpenCV for Android (Reference)
- modify the path of the OpenCV SDK in the Qt project file: See.pro
- build the project in QtCreator
- calibration - fill the white rectangle at the centre of the viewfinder with a white object (not light source), and click [Calibrate].
- identification - fill the white rectangle at the centre of the viewfinder with the colour to be detected, and click [Detect colour].
- GPL 3
- get rid of all hardcoded values :-)
- test the application on iOS