Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

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

$
0
0
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 : (

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>