Csabi
Csabi

Reputation: 3043

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

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 do that

Upvotes: 2

Views: 1364

Answers (1)

Csabi
Csabi

Reputation: 3043

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

Upvotes: 3

Related Questions