[英]Swift save 16 bit depth image from builtInDualCamera
I can get depth's CVPixelBuffer from the camera session.我可以从相机会话中获取深度的 CVPixelBuffer。 How to save it as a 16 bit png without losing depth data?
如何在不丢失深度数据的情况下将其保存为 16 位 png?
Look at this thread , it helped me saving the depth images as UIImage to my camera roll.看看这个线程,它帮助我将深度图像作为 UIImage 保存到我的相机胶卷中。 I am currently also struggling to convert it to 16 bit, since it always saves it as a 32 bit Image.
我目前也在努力将其转换为 16 位,因为它总是将其保存为 32 位图像。 I'll keep you posted once I find out how it works.
一旦我知道它是如何工作的,我会及时通知你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.