Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

My answer is:

if (obj.size() == 0 || scene.size() == 0) {
                        printf("Didn't find!");
                    }

                    cv::Mat H = findHomography(obj, scene, cv::RANSAC); 

if (H.empty()) {
                        printf("Didn't find!");
                    }