新版XE10扰乱了Google Glass预览图像 [英] Google Glass preview image scrambled with new XE10 release

查看:88
本文介绍了新版XE10扰乱了Google Glass预览图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用一些使用相机的apk(例如zxing,opencv)会发生这种情况.它会在预览中显示出毛刺的图像,但它仍然是相机看到的功能,因此似乎是编码不匹配.本地相机预览效果很好,因此内部应用程序不会出现此问题.

This occurs using a few apks that make use of the camera (e.g., zxing, opencv). It displays a glitched image in the preview but it is still a function of what the camera sees so it appears to be an encoding mismatch. The native camera preview works fine, so the internal apps do not exhibit this problem.

推荐答案

现在,请在获取Camera之后但在设置并开始预览之前尝试添加以下变通方法:

For now, please try adding the following workaround after you acquire the Camera but before you setup and start the preview:

Camera.Parameters params = camera.getParameters();
params.setPreviewFpsRange(30000, 30000);
camera.setParameters(params);

(或者如果还要设置其他参数,也可以将setPreviewFpsRange调用添加到现有参数中.)

(Or just add the setPreviewFpsRange call to your existing parameters if you're setting others as well.)

这篇关于新版XE10扰乱了Google Glass预览图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆