ManojNimbalkar / bitcoin-wallet

Automatically exported from code.google.com/p/bitcoin-wallet
0 stars 0 forks source link

QR scanner does not focus on Samsung Galaxy S II #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is on a Samsung Galaxy S II (SGH-T989) running Android 4.1.2. I am using 
Bitcoin 3.14.

The QR scanner is not able to scan codes. The image on the screen appears 
blurred, as if the camera is not focusing correctly.

The Barcode Scanner app works fine, and when using it, I can see the screen 
image shifting focus as it scans. This doesn't happen with Bitcoin's scanner.

Original issue reported on code.google.com by eldredg...@gmail.com on 11 Aug 2013 at 5:07

GoogleCodeExporter commented 9 years ago
I'm accepting this on the basis that I have several reports of this problem. 
However, I don't have any S2 to test with. On Nexus devices, autofocus works as 
expected.

Original comment by andreas....@gmail.com on 11 Sep 2013 at 4:50

GoogleCodeExporter commented 9 years ago
This seems to be better in the current version.  I'm not sure if something 
changed or it's just good luck, but I am usually able to successfully scan 
codes now.

Original comment by eldredg...@gmail.com on 28 Sep 2013 at 5:29

GoogleCodeExporter commented 9 years ago
Same problem here, scanning normal size qr codes is impossible with my Samsung 
Galaxy s2 because the picture stays too blurry. The application is fresh, I 
downloaded it two days ago.

To me it looks like the camera is not able to autofocus. I tried to move it 
further and closer to the code, but that doesnt help much. Only if I make a 
code super big on a computer screen, there is some chance of getting it scanned.

Original comment by oneminut...@gmail.com on 6 Nov 2013 at 3:36

GoogleCodeExporter commented 9 years ago
Can you try the following:

1) Make sure you've got the latest version of the app installed.
2) Reproduce the issue, try to focus on a QR code. Make not of the time.
3) Report an issue from within the app (Options > Settings > Report issue). In 
the first line, note "issue 209" and the time from step 2. Send.

I'll have a look at the log.

Original comment by andreas....@gmail.com on 6 Nov 2013 at 4:49

GoogleCodeExporter commented 9 years ago
I get the same problem.  I have noticed that if I go into the settings on the 
pre-installed barcode scanner app on my Galaxy S2 there is a setting titled 
"Device Bug Workarounds. No continuous focus - Use only standard focus mode".  
This is ticked as default.  If I untick it then this app has exactly the same 
problem and won't focus.  Maybe this identifies the issue?

Original comment by rexypar...@gmail.com on 23 Nov 2013 at 9:55

GoogleCodeExporter commented 9 years ago
Interesting. What's your barcode scanner app?

Original comment by andreas....@gmail.com on 23 Nov 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Everyone with the autofocus problem, can you try installing this special test 
version:

http://code.google.com/p/bitcoin-wallet/downloads/detail?name=bitcoin-wallet-3.2
4-autofocus.apk

If this works for you, please report back to this issue and tell (again) your 
phone model. Thanks!

As always, make sure you've got a backup of your wallet.

Original comment by andreas....@gmail.com on 24 Nov 2013 at 12:04

GoogleCodeExporter commented 9 years ago
The test version works perfectly on my Galaxy S2 GTI9100. Running Android 
4.1.2. Scanned QR codes with no problems.  Good work!

The barcode scanner app mentioned previously is called "Barcode Scanner version 
4.5" from ZXing team.

Original comment by rexypar...@gmail.com on 26 Nov 2013 at 3:14

GoogleCodeExporter commented 9 years ago
Thanks for the feedback. I just put up beta version 3.25 for download. It 
includes the autofocus fixes as well.

http://code.google.com/p/bitcoin-wallet/downloads/list

Original comment by andreas....@gmail.com on 26 Nov 2013 at 3:29

GoogleCodeExporter commented 9 years ago
Finally released in version 3.27.

Original comment by andreas....@gmail.com on 1 Dec 2013 at 4:07

GoogleCodeExporter commented 9 years ago
This is still happening.  I just tested using v3.28
Phone model:  Samsung Galaxy S2 X (SGH-T989D)

Using a large QR code works fine since it can be placed far from the camera. 
But if the code is small (e.g. roughly 1x1 inch) it needs to be placed closer 
to the camera, and the image is too blurry to be processed.

It seems like the bitcoin app sets the camera in auto-focus mode.

In case it helps, I notice that if I want to take a picture of the same QR code 
using the camera app, the image only shows focused at that close distance when 
enabling "macro mode" in the camera settings.
Also, I checked the Amazon app (which is able to scan small barcodes at a short 
distance) and I notice that it seems like this app switches focus modes back 
and forth when scanning (between macro and non-macro) , and this gives the 
algorithm enough time to read the code once it appears focused.

Original comment by celinoca...@gmail.com on 29 Dec 2013 at 10:44

GoogleCodeExporter commented 9 years ago
@celino: Can you report an issue through the app, referring to this issue? I 
need to determine the exact phone model string for your device.

Original comment by andreas....@gmail.com on 1 Jan 2014 at 12:04