Ask Your Question

Revision history [back]

Object detected want to show 3dview once move camera away from object 3dview not to show

Hi All, I am using feature detector to detect object in android its working fine. After detect I want to show exact point some 3d view once I move camera away from object that 3dview should not show again move back to object again we need to show 3d view in same location of screen like how AR Apps works. This is my code how to get object matched location in camera frame & show the 3d view ` // Definition of ORB key point detector and descriptor extractors FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);

    // Detect key points
    detector.detect(img1, keypoints1);
    detector.detect(img2, keypoints2);


    // Extract descriptors
    extractor.compute(img1, keypoints1, descriptors1);
    extractor.compute(img2, keypoints2, descriptors2);

    // Definition of descriptor matcher
   DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);`

Object detected want to show 3dview once move camera away from object 3dview not to show

Hi All, I am using feature detector to detect object in android its working fine. After detect I want to show exact point some 3d view once I move camera away from Once object that 3dview should not show again move back to object again we got detected need to show 3d view in same location 3dobject at the center point of screen like how AR Apps works. This is my code how to get object matched location in camera frame & show frame. If user moves camera 3d object should stick to the 3d view ` // Definition of ORB key point detector and descriptor extractors FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);matched location.

    // Detect key points
    detector.detect(img1, keypoints1);
    detector.detect(img2, keypoints2);


    // Extract descriptors
    extractor.compute(img1, keypoints1, descriptors1);
    extractor.compute(img2, keypoints2, descriptors2);

    // Definition of descriptor matcher
   DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING);`