-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding example to rectify lens distortion in depth images #5
Comments
Hi, @interactivetech , do you know how to get the lensDistortionLookupTable? I searched for a long time but did not find any example. I also want to undistort the image to see the true depth image |
@CanCanZeng In AVDepthData.cameraCalibrationData https://developer.apple.com/documentation/avfoundation/avdepthdata/2881230-cameracalibrationdata?language=objc |
@chaiyujin Thank you for your advice. I find this API but I do not know how to use it. Actually I do not know much about swift or object-c, so I tried to find an example but without any luck. |
I'm trying to build an application on top of ARKit, but I suspect that the image returned by ARKit is distorted, so I want to undistort the image and see what will happen. |
@CanCanZeng The |
Hi there!
Thank you very much for creating this open source repo, I plan to use it for future ios machine learning projects! In the WWDC 2017 Talk, Apple discusses that the depth output is geometrically distorted to align with images produced by the camera. They mention to get precise true depth measurements, you need to correct for lens distortion. the WWDC Talk says that a reference implementation to correct for lens distortion is commented in the AVCameraCalibrationData.h file.
It would be great if you can add an example view controller that a user taps to see a recitfied depth image and enable developers to work with precise, true depth measurements. I attached the reference implementation from AVCameraCalibrationData.h for ease of reference and if anyone can add this it would be amazing!
The text was updated successfully, but these errors were encountered: