7heViking
7heViking

Reputation: 7577

How to limit ZBar QR code reader to only detect QR codes?

I have implemented ZBar reader in my android application and are only using it to read QR codes. How can I limit ZBar to only detect QR codes?

Upvotes: 1

Views: 1262

Answers (1)

7heViking
7heViking

Reputation: 7577

I found the answer randomly an another ZBar question answer by @Sydwell

The following code solves the problem:

scanner = new ImageScanner();
// Only enable the codes your app requires
scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1);

Upvotes: 2

Related Questions