Hello,
I'm trying to detect an object in a scene, where this object is rotated. I want to find my screen on a photo of its environment:
I have used the ORB-Detector, but the result was very bad... So i try other detectors and extractors... Now I have the FAST Detector, but don't find a compatible DescriptorExtractor and DescriptorMatcher...
Does anyone know which extractor and matcher fit on which detectors? I don't find any information to that topic...
FeatureDetector fastDetector = FeatureDetector.create(FeatureDetector.FAST);
MatOfKeyPoint keypoints_object = new MatOfKeyPoint();
MatOfKeyPoint keypoints_scene = new MatOfKeyPoint();
fastDetector.detect(img_object, keypoints_object);
fastDetector.detect(img_scene, keypoints_scene);
DescriptorExtractor fastDescriptor = DescriptorExtractor.create(DescriptorExtractor.???);
Mat descriptors_object = new Mat();
Mat descriptors_scene = new Mat();
fastDescriptor.compute(img_scene, keypoints_scene, descriptors_scene);
fastDescriptor.compute(img_object, keypoints_object, descriptors_object);
DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.???);
MatOfDMatch matches = new MatOfDMatch();
matcher.match(descriptors_object, descriptors_scene, matches);