Ask Your Question

Flo's profile - activity

2016-12-24 07:53:07 -0600 answered a question OpenCV in platform indepentent Gradle project (for Android and Desktop)

I'm using JavaCV 1.3 now and after a few problems it seems to work well now.

For anybody who's interested, I've edited my build.gradle like this:

...
dependencies {
    compile group: 'org.bytedeco', name: 'javacv', version: '1.3'
    desktopCompile 'org.bytedeco.javacpp-presets:opencv:3.1.0-1.3:windows-x86_64'
    androidCompile 'org.bytedeco.javacpp-presets:opencv:3.1.0-1.3:android-arm'
}
configurations {
    all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'
}
...

Update your project and Gradle will download all necessary files and put it in your "Gradle Dependencies" Folder.

2016-12-02 06:22:06 -0600 commented question Detecting and Extracting Rectangular based Structure

A few comments: - Smoothening your image is always a good idea to reduce noise (use e.g. GaussianBlur or defocus your camera) - When detecting objects via color the HSV color space is much more useful than RGB - You process an erosion, opening and closing. An opening processes an erosion and then a dilation. A closing does this the other way round, like dilation and then an erosion. For example if you want to seperate objects which touch each other you can make an erosion and they won't touch anymore but the size of the objects gets smaller. If you compute an opening, you can seperate the objects without bigger effects on their shape. The closing can be used to remove gaps in your object without taking effect to the object's shape.

Hope that I could offer some help to you :)

2016-12-02 05:10:27 -0600 asked a question OpenCV in platform indepentent Gradle project (for Android and Desktop)

I'm using Gluon Mobile plugin in Eclipse to deploy a basic imaging project to Desktop and Android. Gluon Mobile creates a Gradle-based project and uses javafxports. So the idea is write once - run anywhere. But I don't konw how to add OpenCV so that I can do some image processing on both platforms Desktop and Android. Can anyone help?