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!");
}