简体   繁体   English

ZXing条码扫描器预览宽度

[英]ZXing Barcode Scanner preview width

I work with ZXing Barcode Application - I want to tune it so it fit my requirements. 我使用ZXing条形码应用程序-我想对其进行调整,使其符合我的要求。 However all the time the preview image is a bit wider than real image. 但是,预览图像始终比实际图像要宽一些。 I've tried to look in CameraConfigurationManager and CameraManager classes, especially setting manualy screen/camera resolution in initFromCameraParameters() method of CameraConfigurationManager . 我尝试查看CameraConfigurationManagerCameraManager类,尤其是在initFromCameraParameters()方法中设置CameraConfigurationManager屏幕/相机分辨率。 Anyone got idea where to set it? 有人知道在哪里设置吗?

Unfortunately I've couldn't find the solution, however this problem appears only on Nexus 7 tablet on other devices (smartphones) it works well. 不幸的是,我找不到解决方案,但是此问题仅在运行良好的其他设备(智能手机)上的Nexus 7平板电脑上出现。 If someone is interested in modifying the rectangle of the scanner app - look at constants of CameraManager class. 如果有人对修改扫描仪应用程序的矩形感兴趣,请查看CameraManager类的常量。 I've filled an issue on ZXing github, so let's see what they'll say 我在ZXing github上已经解决了一个问题 ,所以让我们看看他们会说些什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM