Ask Your Question

chinchee's profile - activity

2015-06-02 12:57:32 -0600 asked a question Steps to build OpenCV4Android source code

So I would like to modify the OpenCV C++ code (just change a few lines to fit my problem better) and I followed the instructions here, but no java files were created, and according to a few threads I've looked at, it should've been auto-generated. I believe I need to use the generated java sdk code to use as a library that is linked to in my project and also copy the .so files generated (the java.so file was also not generated).

What are the exact steps in order to compile and build the source code so that it can be used on Android?

2015-06-01 20:26:04 -0600 commented question Modify OpenCV4Android source code

So regarding 2 - what exactly should be typed in? When I follow the instructions here, the java files aren't auto-generated.

2015-04-09 18:36:01 -0600 received badge  Editor (source)
2015-04-09 18:08:13 -0600 asked a question findCirclesGridDefault doesn't work on Android

Is there some bug in the OpenCV android library that is making this function crash? I keep getting this error:

04-09 19:31:11.094: E/cv::error()(32451): OpenCV Error: Unsupported format or combination of formats (Blob detector only supports 8-bit images!) in virtual void cv::SimpleBlobDetector::detectImpl(const cv::Mat&, std::vector<cv::KeyPoint>&, const cv::Mat&) const, file /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/features2d/src/blobdetector.cpp, line 286
04-09 19:31:11.094: E/org.opencv.calib3d(32451): calib3d::findCirclesGridDefault_11() caught cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/features2d/src/blobdetector.cpp:286: error: (-210) Blob detector only supports 8-bit images! in function virtual void cv::SimpleBlobDetector::detectImpl(const cv::Mat&, std::vector<cv::KeyPoint>&, const cv::Mat&) const

The line that it fails on in the code is this:

mPatternWasFound = Calib3d.findCirclesGridDefault(grayFrame, mPatternSize,
                mCorners, Calib3d.CALIB_CB_ASYMMETRIC_GRID);

I'm using OpenCV library 2.4.11