Andriod Project-Hajin [closed]

asked 2012-09-07 20:54:09 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.RETR_EXTERNALand Imgproc.CHAIN_APPROX_SIMPLE. The use of parameter matchShapes Hu moments matching method is Imgproc.CV_CONTOURS_MATCH_I1.

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-01-02 13:22:49


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

jbohren gravatar image jbohren  ( 2012-09-09 01:21:47 -0500 )edit