Robotics StackExchange | Archived questions

Andriod Project-Hajin

This project is using Android Opencv 2.3.1 image recognition of android project. Resource files from the project folder res / drawable-mdpi loading a bitmap A, then photographed with the camera in the displayed bitmap B match (target shooting is a bitmap A). Two parameters of findContours method (models and methods), use Imgproc.RETREXTERNALand Imgproc.CHAINAPPROXSIMPLE. The use of parameter matchShapes Hu moments matching method is Imgproc.CVCONTOURSMATCHI1.

Now encounter the following problems: Question 1: in the contour before the matching, getting data from the camera what needs to be done after processing, dose the findContours method can be used to find the contour? Question 2: After In the contour find, and compare use matchShapes methods, this method returns double type-data, and how to judge on the return of double-type data? The double type-data in what extent is regarded as the match is successful?

Please help me to resolve these problem would be much appreciated

Best regards Roland

Asked by romura on 2012-09-07 20:54:09 UTC

Comments

Can you please edit your question to make clearer what you are doing and what you're asking?

Asked by jbohren on 2012-09-09 01:21:47 UTC

Answers