开发者

Android: how can i change scan range of zxing sdk?

开发者 https://www.devze.com 2023-03-01 08:05 出处:网络
Hi i need to scan 50 char long code 128C, but the default rnage of scaner is to small for my code so i need to customize it for the length of barcode.

Hi i need to scan 50 char long code 128C, but the default rnage of scaner is to small for my code so i need to customize it for the length of barcode.

How can i d开发者_开发技巧o that


I found the answer here if you change the variables

  private static final int MIN_FRAME_WIDTH = 240;
  private static final int MIN_FRAME_HEIGHT = 240;
  private static final int MAX_FRAME_WIDTH = 480;
  private static final int MAX_FRAME_HEIGHT = 360;

you simply set the values and like that you can change the reading range.So it would be able read fast the long barcodes.

hope it will help

0

精彩评论

暂无评论...
验证码 换一张
取 消