densen2014 / ZXingBlazor

Using ZXing Scan barcode/QR code in blazor
Apache License 2.0
93 stars 39 forks source link

Can not decode PDF417 format type? #21

Closed binhtt6 closed 1 year ago

binhtt6 commented 1 year ago

Hello, i try demo but get no luck with PDF417? Could you take a look about it? Thanks

densen2014 commented 1 year ago

maybe need to config with zxing libs,i will check later

binhtt6 commented 1 year ago

Thanks, waiting for further information

densen2014 commented 1 year ago

Support now:

demo https://zxingblazor.app1.es/

pack https://www.nuget.org/packages/ZXingBlazor/0.2.4

use Pdf417="Pdf417"

    <BarcodeReader ScanResult="((e) => { BarCode=e; ShowScanBarcode = !ShowScanBarcode; })"
                   ShowScanBarcode="ShowScanBarcode"
                   Close="(()=>ShowScanBarcode=!ShowScanBarcode)"
                   ScanBtnTitle="Scan"
                   ResetBtnTitle="Reset"
                   CloseBtnTitle="Close"
                   Pdf417="Pdf417"
                   SelectDeviceBtnTitle="Select Device" />

image

Test: https://www.dynamsoft.com/use-cases/driver-license/assets/Image_2.png

Video: https://youtube.com/shorts/ia0JMdcHfJs

binhtt6 commented 1 year ago

Thanks for your update. Trying decode with your png file in demo website but no luck. Demo web can decode QR code as well.

densen2014 commented 1 year ago

image

or

image

binhtt6 commented 1 year ago

https://user-images.githubusercontent.com/30441291/203741660-3fa20fc9-1a5e-49b0-a4d6-9cba9df3abfd.mp4

Here is what i tested from my site

densen2014 commented 1 year ago

https://user-images.githubusercontent.com/30441291/203741660-3fa20fc9-1a5e-49b0-a4d6-9cba9df3abfd.mp4

Here is what i tested from my site

what version is your android? pdf417 need browse support bigint, can you test again in a ios device?

densen2014 commented 1 year ago

do a test like my video: close the phone slowly to your papel , it has a distance setting for decode

Video:

image

https://user-images.githubusercontent.com/8428709/203809313-52491cf5-5b6a-4c46-8c67-5c90df5ba22b.MOV

https://user-images.githubusercontent.com/8428709/203809350-e8bf2ecb-3e5b-4159-ae90-12152c75a7e1.MOV

densen2014 commented 1 year ago

Hahaha, in my new test ! pdf417 can be decoded all the time like version 0.2.3, new version 0.2.6 adds a Pdf417Only setting limit to only scan this type of code, corresponding to a special scene where there are many barcode types on a picture

binhtt6 commented 1 year ago

Hello, after update my chrome mobile to newest version ( my os is Android 12). Web demo can decode pdf417 without Pdf417Only checkbox. But it seems not stable, take time to decode (3-4 s) , not smooth as decoding QR code. Can we optimize this ? i also try an android app https://play.google.com/store/apps/details?id=mobi.pdf417&hl=vi&gl=US it can decode so fast. Thanks

densen2014 commented 1 year ago

app is alway working fast then web browser, : )

densen2014 commented 1 year ago

The scanning distance is the key factor, and you can quickly scan the code after more tests. Another parameter is the interval between two scan codes, you can check the source code yourself