Ask Your Question

Revision history [back]

programm freezes when calling cvtColor() or HoughCircles() maybe bug ?

Hi, im new to opencv ... I use Android Studio 2.1.2 and opencv 3.1.0 opencv is running, i checked with

static {
    if (!OpenCVLoader.initDebug()) {
        Log.d(TAG, "OpenCV not loaded");
    } else {
        Log.d(TAG, "OpenCV loaded");
    }
}

finaly running after days of trying :D but now to my problem ... when i try to call cvtColor(src, src_grey, COLOR_BGR2GRAY); (wich i tried to use before, now i use imread() for greyscale) or

HoughCircles(src_grey, circles, CV_HOUGH_GRADIENT, dp, minDist, param1,
                    param2, minRadius, maxRadius);

...my circles mat Mat circles = new Mat(); maybe im too stupid here ? its not throwing any errors just freezes and nothing afterwards.



Mat src_grey = imread(Environment.getExternalStorageDirectory() + File.separator + "img.png", IMREAD_GRAYSCALE );
imwrite(Environment.getExternalStorageDirectory() + File.separator +"grey.png", src_grey);

this is working to make my image grey but i still need to find the circles : (

click to hide/show revision 2
retagged

updated 2016-07-26 17:11:06 -0600

berak gravatar image

programm freezes when calling cvtColor() or HoughCircles() maybe bug ?

Hi, im new to opencv ... I use Android Studio 2.1.2 and opencv 3.1.0 opencv is running, i checked with

static {
    if (!OpenCVLoader.initDebug()) {
        Log.d(TAG, "OpenCV not loaded");
    } else {
        Log.d(TAG, "OpenCV loaded");
    }
}

finaly running after days of trying :D but now to my problem ... when i try to call cvtColor(src, src_grey, COLOR_BGR2GRAY); (wich i tried to use before, now i use imread() for greyscale) or

HoughCircles(src_grey, circles, CV_HOUGH_GRADIENT, dp, minDist, param1,
                    param2, minRadius, maxRadius);

...my circles mat Mat circles = new Mat(); maybe im too stupid here ? its not throwing any errors just freezes and nothing afterwards.



Mat src_grey = imread(Environment.getExternalStorageDirectory() + File.separator + "img.png", IMREAD_GRAYSCALE );
imwrite(Environment.getExternalStorageDirectory() + File.separator +"grey.png", src_grey);

this is working to make my image grey but i still need to find the circles : (