Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

draw the keypoints in the image stream

Hi, with a reference image I just want to draw matches in the image of the video stream without use Features2d.drawMatches () because it not responding in my code

    Mat descriptors,descriptors1 = new Mat();
    keypoints = new MatOfKeyPoint();
    keypoints1 = new MatOfKeyPoint();
    detector = FeatureDetector.create(FeatureDetector.ORB);
    detector.detect(img1, keypoints);
    detector.detect(img2, keypoints1);
    descriptor = DescriptorExtractor.create(DescriptorExtractor.ORB);
    descriptor.compute(img1, keypoints, descriptors);
    descriptor.compute(img2, keypoints1, descriptors1);
   DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);
    MatOfDMatch  matches = new MatOfDMatch();
    matcher.match(mIntermediateMat, descriptors, matches);
// draw matches just only in image img2 .......

draw the keypoints in the image streamvideo stream Android OpenCV

Hi, with a reference image I just want to draw matches in the image of the video stream without use Features2d.drawMatches () because it not responding in my code

    Mat descriptors,descriptors1 = new Mat();
    keypoints = new MatOfKeyPoint();
    keypoints1 = new MatOfKeyPoint();
    detector = FeatureDetector.create(FeatureDetector.ORB);
    detector.detect(img1, keypoints);
    detector.detect(img2, keypoints1);
    descriptor = DescriptorExtractor.create(DescriptorExtractor.ORB);
    descriptor.compute(img1, keypoints, descriptors);
    descriptor.compute(img2, keypoints1, descriptors1);
   DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);
    MatOfDMatch  matches = new MatOfDMatch();
    matcher.match(mIntermediateMat, descriptors, matches);
// draw matches just only in image img2 .......

draw locate the keypoints in the video stream object recognition Android OpenCV

Hi, with a reference image I just want to draw matches in the image of the video stream without use Features2d.drawMatches () because it not responding in my code

    Mat descriptors,descriptors1 = new Mat();
    keypoints = new MatOfKeyPoint();
    keypoints1 = new MatOfKeyPoint();
    detector = FeatureDetector.create(FeatureDetector.ORB);
    detector.detect(img1, keypoints);
    detector.detect(img2, keypoints1);
    descriptor = DescriptorExtractor.create(DescriptorExtractor.ORB);
    descriptor.compute(img1, keypoints, descriptors);
    descriptor.compute(img2, keypoints1, descriptors1);
   DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);
    MatOfDMatch  matches = new MatOfDMatch();
    matcher.match(mIntermediateMat, descriptors, matches);
// draw matches just only in image img2 .......
....... locate the object recognition