Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autofocus when scanning QR code

I'm working on a BlackBerry app which will be used in cafes and restaurants, and one of the features is QR code scanning

Is there any way to make the camera autofocus the QR code?

Searching, I found FocusControl, which looks like the one I'm looking for. Unfortunately, it's only available since OS 5.0.

I wonder how to achieve the same thing on OS 4.5, 4.6, and 4.7.

Any suggestions?

like image 764
anta40 Avatar asked Apr 27 '26 03:04

anta40


1 Answers

You can't. In OSs prior to 4.5, you can launch the native camera app and listen for recently created image files (FileSystemJournalListener). This way, if the BB has autofocus, the image has more definition.

However, there's no way to do this for every BB. Unless you apply some image algorithm of your own after taking the image.

like image 103
Mister Smith Avatar answered Apr 30 '26 02:04

Mister Smith