Ask Your Question

aLx's profile - activity

2018-12-18 07:05:24 -0500 received badge  Enthusiast
2018-12-12 03:17:41 -0500 received badge  Student (source)
2018-12-05 07:08:19 -0500 marked best answer Canny Edge Detector doesn't return filtered image

I building an APK that receive the image from my android device camera and process with OpenCV library. Just want to convert the image to Gray scale, apply Gaussian Blur filter and run Canny Edge Detector.

My APK runs properly on android device, with no error instead. But it's don't return processed image, just the original.

Here's my onCameraFrame class with image processing code:

public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

Mat mRgba = new Mat();
Mat imgGray = new Mat();

Imgproc.cvtColor(inputFrame.rgba(), imgGray, Imgproc.COLOR_RGBA2GRAY);
Imgproc.GaussianBlur(imgGray, imgGray, new Size(5, 5), 2, 2);
Imgproc.Canny(imgGray, imgGray, 35, 75);

return imgGray;

I think my code isn't wrong, but i don't know how to return the edge detection image.

Someone knows how to help me?

Thanks!

2018-12-05 07:08:19 -0500 received badge  Scholar (source)
2018-12-05 06:42:48 -0500 commented answer Canny Edge Detector doesn't return filtered image

Yes, solved. I believe was an error in OpenCV version or like i told you before, a error in Views. Thanks!

2018-12-05 05:49:13 -0500 commented answer Canny Edge Detector doesn't return filtered image

Thanks, help me a lot!!

2018-12-04 10:22:12 -0500 commented answer Canny Edge Detector doesn't return filtered image

Yes, here is my full MainActivity code: https://pastebin.com/7h8XF9fd

2018-12-04 04:20:54 -0500 commented answer Canny Edge Detector doesn't return filtered image

Thanks for answering me. Same as my old code, just doesn't return a filtered image. I find some errors in logcat, maybe

2018-12-04 04:19:33 -0500 commented answer Canny Edge Detector doesn't return filtered image

Same as my old code, just doesn't return a filtered image. I find some errors in logcat, maybe you know how to fix? E/S

2018-12-04 04:19:15 -0500 commented answer Canny Edge Detector doesn't return filtered image

Same as the my old code, just doesn't return a filtered image. I find some errors in logcat, maybe you know how to fix?

2018-12-03 07:27:01 -0500 asked a question Canny Edge Detector doesn't return filtered image

Canny Edge Detector doesn't return filtered image I building an APK that receive the image from my android device camera