How can i calibrate my mavic for Lens Distortion Calibration

Completed

Comments

9 comments

  • DJI Developer Support
    Mavic 2 Pro/Zoom has lens distortion correction enabled by default. However, if the `isLensDistortionCalibrationNeeded` returns true, you will need to comment out the `exclude module: 'library-anti-distortion'` when relying on the SDK.
    1
    Comment actions Permalink
  • Abbas

    Ok so if i include anti distortion library will videodataListner's callback work ?

    0
    Comment actions Permalink
  • DJI Developer Support
    After configuring the anti-distortion library, `isLensDistortionCalibrationNeeded` should be false, and the data from the videodataListner will also take effect.
    1
    Comment actions Permalink
  • Abbas

    Thanks i will try it :)

    0
    Comment actions Permalink
  • DJI Developer Support
    I hope this is helpful to you.
    0
    Comment actions Permalink
  • Abbas

    it works for this separate repo (specifically when custom decoder is selected) mentioned in docs.

    But when i try to just include  anti-distortion library (By commenting out exclude command in gradle file ) in my existing project then it does not work maybe i am not doing it correctly but anyhow i will try to find issue otherwise will try to build upon said library :)

    0
    Comment actions Permalink
  • DJI Developer Support
    which interface you are using to retrieve the videoFeed? If you are currently using getPrimaryVideoFeed, I suggest trying to replace it with provideTranscodedVideoFeed.
    1
    Comment actions Permalink
  • Abbas

    Yes i was using getPrimaryVideoFeed i will try to use provideTranscodedVideoFeed

    Thanks

    0
    Comment actions Permalink
  • DJI Developer Support
    I hope this is helpful to you.
    0
    Comment actions Permalink

Please sign in to leave a comment.