PDF417 / pdf417-phonegap

PDF417 and QR code scanning plugins for PhoneGap/Cordova framework
47 stars 21 forks source link

Pdf417Demo not scanning #7

Closed shepherdsiduli closed 10 years ago

shepherdsiduli commented 10 years ago

I have been trying to scan Pdf417 barcodes using the Pdf417Demo app but to no avail

I uncommented the following code in the index.js file : alert("got result " + data.data + " type " + data.type);
I found out that data is undefined

lhabjane commented 10 years ago

Hi, can you please try with this code: https://www.officialeancode.com/spanish/sample_codes/2D%20PDF417%20code.jpg

shepherdsiduli commented 10 years ago

Thanks I was able to scan from your link, can you please try the one in the link below: https://www.dropbox.com/s/8wbhhvl6mqlpqqc/Photo%202014-07-16%2C%201%2036%2028%20PM.jpg

Also, please let me know if there are any limitations

I am able to scan from a PC but not from paper

Cerovec commented 10 years ago

Hi,

we are able to scan the barcode on both iOS and Android devices (screenshots attached).

To scan the barcode, one barcode module (the smallest black dot) should be at least 1px wide on the image. Also, your device should have autofocus. These are the only limitations.

Which device you use for scanning?

a b

shepherdsiduli commented 10 years ago

Thanks for the feedback, when I scan the from a pc screen it works However when I scan from a printed hardcopy it doesn't work, can you please download the pdf below and print it then scan from the hardcopy

https://www.dropbox.com/s/28rjyy5h7tk9gck/pdf417Example.pdf

I am using a samsung galaxy pocket and samsung s4 for scanning

Cerovec commented 10 years ago

On samsung galaxy pocket scanning doesn't work because that device doesn't have autofocus, and it supports video resolution of only 320p. That's in line with our usual device and software requirements.

However, on SGS4 scanning should work even on paper.

Can you:

Thanks!

shepherdsiduli commented 10 years ago

Yes, I am having problems on the sumsang s4

Please see photos below:

https://www.dropbox.com/s/egknq4k221r6h1x/horizontal.JPG

https://www.dropbox.com/s/7hzp74nmzmze91p/vertical.JPG

Cerovec commented 10 years ago

Can you use this link to download the .apk we built and install that app on SGS4?

https://jumbo.iskon.hr/dl/77d1094e-83ac-4689-aeb8-ca20b3f7c46e?session=jumbo37oyr0tlrdvoy8ftcco9qet3d

Also, please try our demo app from google play store https://play.google.com/store/apps/details?id=mobi.pdf417

The behaviour on both apps should be the same. In our test, we managed to scan your barcode with both apps on SGS4.

shepherdsiduli commented 10 years ago

Thanks a lot I tried the app on a Samsung s3, and it worked perfectly, I think there is something wrong with the s4 (settings)

Thanks a lot