Ask Your Question

zhongen.dff's profile - activity

2017-06-26 22:10:00 -0600 received badge  Enthusiast
2017-05-08 11:48:30 -0600 commented question Detect object with Canny Edge detector

I just updated my gradient. But, it only differs in the values of the edges.In this program, I want to get region for near focus ( flower object). Thank pro for suggesting. Hope to receive reply information.

2017-05-08 11:44:43 -0600 received badge  Editor (source)
2017-05-08 11:09:58 -0600 received badge  Student (source)
2017-05-08 11:03:41 -0600 asked a question Detect object with Canny Edge detector

Hi guys,

I am develop multi-focus application. Now, I can detect keypoint feature with ORB and Canny detect result. I want to get focus region with my result. But, I don't know how to get object. This is source imageimage description

This is Canny detecttion result. image description

And, I want to get flower object.

Hope receive any idea or guide me develop it. Thanks every one read it.

====== update Gradient Map======= Gradient result for 2 image image descriptionimage description

2017-01-24 04:20:33 -0600 commented question DescriptorMatcher in OpenCV3 for Android

thanks berak,

beside DescriptorMatcher, I can't use. You can suggest to me new solution instead of it. Because i take a solution with compare object in android. Thanks so much.

2017-01-24 02:50:14 -0600 asked a question DescriptorMatcher in OpenCV3 for Android

Dear all, I am a newbie for developing with OpenCV and computer Vision, this is a first project i developed with OPENCV on Mobile - Android - used Android Studio.

I can use many functions of OpenCV Library, but when I call DescriptoerMatcher in Java file, I miss errors, details code:

//detect the key points detector.detect(inputMat1,keypoints1); detector.detect(inputMat2,keypoints2);

//detect decriptor Mat descriptors1 = new Mat(); Mat descriptors2 = new Mat(); descriptorExtractor.compute(inputMat1,keypoints1,descriptors1); descriptorExtractor.compute(inputMat2,keypoints2,descriptors2);

processedMat1 = new Mat(); processedMat2 = new Mat();

Imgproc.cvtColor(inputMat1,processedMat1,Imgproc.COLOR_RGBA2RGB); Imgproc.cvtColor(inputMat2,processedMat2, Imgproc.COLOR_RGBA2RGB);

Features2d.drawKeypoints(processedMat1,keypoints1,processedMat1,new Scalar(255,255,0),4); Features2d.drawKeypoints(processedMat2,keypoints2,processedMat2,new Scalar(255,255,0),4);

DescriptorMatcher descriptorMatcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);

But the error is line create DescriptoerMatcher.

Detailed of error: JNI DETECTED ERROR IN APPLICATION: use of invalid jobject 0x4 from long org.opencv.features2d.DescriptorMatcher.create_0(int)

I trying research but now, I haven't found a issue and how to implement error.

Hope received of any people. Thanks so much.