mapbox-vision-ios icon indicating copy to clipboard operation
mapbox-vision-ios copied to clipboard

Camera is not calibrated automatically

Open bernardo-martinez opened this issue 4 years ago • 1 comments

Description

I've implemented the delegate like in the example with:

func visionManager(_: VisionManagerProtocol, didUpdateCamera camera: Camera) {
        // dispatch to the main queue in order to sync access to `Camera` instance
        DispatchQueue.main.async {
            self.camera = camera
            // you may track the calibration progress
            print("Calibration: \(camera.calibrationProgress)")
        }
    }

but the calibrationProgress remains at 0.0 and I cannot use my didUpdateWorldDescription nor my didUpdateRoadDescription implementations

Goal

As it says in the documentation the calibration process should be done automatically and last for 20-30secs

Steps

  • [ ] Step 1:
    • Implemented didUpdateCamera on iphone SE with iOS 14.4.2. It just gets called once with 0.0 value

bernardo-martinez avatar May 29 '21 21:05 bernardo-martinez

Hi @bernardo-martinez Just wanted to let you know that the camera calibration, to my knowledge, only works if you're physically moving in the world, and not if you're testing by pointing your device at a screen. Disregard that message if you were doing the latter.

mailliwi avatar Sep 19 '21 22:09 mailliwi