Open Verteiron opened 9 years ago
Hello @Verteiron, thanks for the great rundown. I think that adding support for HTC's dual lens is non trivial as calculating depth maps from two images in the browser is a bit over-the-top. The only sensible way to support them, would be to have the grayscale depth image extracted from the image itself. If it's not possible, than it's not suitable in my opinion...
Hi @Verteiron, I'm working on HTC M8's dual lens now and I have some problem running DualLensDemo provided by HTC:https://www.htcdev.com/devcenter/opensense-sdk/htc-dual-lens-api/sdk-overview-sample-code/ When I run the demo, I got an exception that depth map info can't be found in jpeg. I'm wondering if you can get the color map of the picture. Thank you very much.
Hi, @kanamevs, This sample requires an HTC One (M8) with Sense 6. I upgraded to Sense 7 and I cannot get the depth map from the color image now.
Supporting the HTC Dual Lens format
The HTC One M8 has an extra camera that adds depth information to images. Unfortunately they don't seem to have used the same storage format as Google Lens Blur, so Depthy doesn't load them correctly. While this is clearly HTC's fault, not Depthy's, it would nevertheless be awesome if Depthy could support for depth images created with the HTC One M8.
Obstacles
Resolutions
Sample data
Here is the sample file included with the HTC Dual Lens SDK: http://i.imgur.com/8SWMXPb.jpg And here is the offset image JPG I extracted from that file: http://i.imgur.com/Z8TvrUQ.jpg
This is all I have for this right now. I do not believe this is a duplicate of #9, as that was regarding Google Lens Blur images taken on the M7, not HTC Dual Lens images.