HTC Evo 3D 预览
我尝试从 HTC Evo 3D 中的单独背面摄像头获取预览。我使用camera.open(CAMERA_STEREOSCOPIC)访问相机,但预览宽高比为640x480或1270x768。同一张图像并排有两个相机图像。
显然,一些图像信息丢失了,因为每个图像在 x 轴上的大小都是原始大小的一半。我想做一些图像处理,所以我需要全尺寸的图像。而且,拍照然后处理也不是我想做的。
有什么想法吗?
问候
卢卡斯
Im trying to get the preview from the separate backfacing cameras in HTC Evo 3D. I access the camera using camera.open(CAMERA_STEREOSCOPIC) but the preview aspect ratio is 640x480 or 1270x768. There are two camera images at the same image side by side.
Obviously some of the image information is lost, because each image is half the original size in x axis. I want to do some image processing so I need the full sized images. And also, taking pictures and then processing is not what i want to do.
Any ideas?
regards
Lukas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,我们需要检查调用 DisplaySetting.setStereosensitive3DFormat 的结果,以防该方法因任何原因失败。如果成功设置格式,它将返回 true,否则返回 false。
如果失败,您将显示一个侧面侧面 LR 图像,这可能不是您想要的,在这种情况下,您可能需要裁剪 L 或 R 图像并将图像缩放到适当的尺寸。”
HTC官网信息:http://www .htcdev.com/devcenter/opensense-sdk/stereooscopy-3d/s3d-sample-code/
也许您应该发布代码并看看里面实际发生了什么。
" Note that we need to check the result of our call to DisplaySetting.setStereoscopic3DFormat in case the method fails for any reason. It will return true if it succeeded setting the format otherwise false.
If it should fail, you will be displaying a side be side LR image, which is probably not what you intended. In this case you may want to crop the L or R image out and scale the image to the appropriate size."
The info from HTC official website: http://www.htcdev.com/devcenter/opensense-sdk/stereoscopic-3d/s3d-sample-code/
Maybe you should post the code and see what actually happens inside.