com.supermap.ar.areffect.scanner

Class ImageScanner.DeviceInfo

  • java.lang.Object
    • com.supermap.ar.areffect.scanner.ImageScanner.DeviceInfo
  • Enclosing class:
    ImageScanner


    public class ImageScanner.DeviceInfo
    extends java.lang.Object
    Equipment information

    Contains parameters for camera startup

         Through the picture recognition, reverse correction scene startup position, azimuth example.
             ImageScanner instance = ImageScanner.getInstance(arEffectView);
             instance.addImageListener(images -> {
                 for (ARAugmentedImage e : images) {
                     if (e.getTrackingState() != TrackingState.TRACKING){
                         //Make sure the image is in the Tracking state
                         continue;
                     }
                     //The starting coordinates and starting azimuth Angle of the scene are corrected by the geographical coordinates of marker
                     ImageScanner.DeviceInfo info = ImageScanner.getInstance(arEffectView)
                             .calculateDeviceInfo(e,value.getLocation());
    
                      arEffectView.setDeviceLocation(info.getDeviceLocation());
                      arEffectView.setAzimuth(info.getAzimuth());
                      break J;
                 }
             });
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      DeviceInfo() 
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeviceInfo

        public DeviceInfo()