Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scan a QR code in live mode in Blackberry OS 5

Google Zxing expects an image. Can someone point me to how to make it work cleanly for live scanning (i.e. user points the device at a QR code and the scan happens; user does not have to take an image)? I've come across the following two aspects:

  1. Some threads suggested to use a timer and event injection to continuously take pictures - but this approach may incur too much overhead on the device
  2. Some other threads have suggested that live scanning is only possible from OS 6 and above as RIM doesn't expose those APIs in OS versions below 6 - but I'm unable to find any official statement to this effect.

Other than Zxing are any other libraries to achieve the same for BB OS 5?

Thanks in advance

like image 539
Pavan Kulkarni Avatar asked Dec 14 '11 15:12

Pavan Kulkarni


People also ask

Does BlackBerry have QR scanner?

To read or capture a QR code on your KEYone you have several options, if your BlackBerry KEYone has the Play Store application store, look for its icon and click on it. 2- Second step: At the top of the Play Store application store there is a search engine, click on it and type “QR” or “QR scanner”.

Can QR codes be scanned from a phone screen?

You can scan QR codes on an Android device using the default camera app or the Google Lens app. As long as your Android device has a camera, it should be able to scan any QR code.

How do I activate a QR code?

Go to Settings. Select System Apps. Tap on Camera. Then toggle to enable Scan QR codes.


1 Answers

This library allows you to do live scanning on OS5. It works as an interface to the ZXing library.

Be warned, however that on OS5 devices FocusControl is not fully implemented so scanning barcodes up close will be problematic. The workaround is to use VideoControl.getSnapshot() which is the only way to force the camera to focus.

like image 150
donturner Avatar answered Oct 24 '22 21:10

donturner