-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZXing.Net doesn't seem to be able scan more complicated PDF417 barcodes #557
Comments
Can you give an example of what you consider to be a "complex" PDF417 symbol and therefore fails to be decoded with ZXing.NET? |
Hello Axxel,Are you Mike? Anyway, thanks for responding :)I will get you specific examples tomorrow when I’m at work and have access to a physical development iPhone. The problematic barcodes can be found also, if you googled for “images driver license pdf417” and select the images tab. You will find the ones like I’m trying to read. Thanks,TomOn Apr 7, 2024, at 8:48 AM, axxel ***@***.***> wrote:
Can you give an example of what you consider to be a "complex" PDF417 symbol and therefore fails to be decoded with ZXing.NET?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi Tom, no, I'm not Mike, I'm the maintainer of the zxing-cpp project. I re-implemented a bunch of the detector algorithms but the PDF417 detector is still mostly the one from the original Java ZXing library. I assume ZXing.NET's version is also a 1 to 1 port from the Java code. So all three should behave the same, which is contradicted by your your observation that the Xamarin version of ZXing is working. So I was curious what |
Yes, it’s peculiar then..The Xamarin implementation has no problem with the driver license barcode, but in its Maui version, it seems to read simple pdf417s but not the ones for a DL. I tried three packages that wrap the core Zxing library with a ContentPage but all three fail to read it. I tried feeding a captured image directly to the reader, but it gave an error, something about it expecting one pattern but getting another. I’m sorry that I can’t give you the exact error right now. But I could tomorrow. Thanks,TomOn Apr 7, 2024, at 10:00 AM, axxel ***@***.***> wrote:
Hi Tom, no, I'm not Mike, I'm the maintainer of the zxing-cpp project. I re-implemented a bunch of the detector algorithms but the PDF417 detector is still mostly the one from the original Java ZXing library. I assume ZXing.NET's version is also a 1 to 1 port from the Java code. So all three should behave the same, which is contradicted by your your observation that the Xamarin version of ZXing is working. So I was curious what zxing-cpp does with your specific sample.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I can send you my DL pic. But directly to you, as I don’t know who else can view this thread?Just don’t need my PII spread over the net ;-)Thanks,TomOn Apr 7, 2024, at 10:40 AM, Tom Tong ***@***.***> wrote:Yes, it’s peculiar then..The Xamarin implementation has no problem with the driver license barcode, but in its Maui version, it seems to read simple pdf417s but not the ones for a DL. I tried three packages that wrap the core Zxing library with a ContentPage but all three fail to read it. I tried feeding a captured image directly to the reader, but it gave an error, something about it expecting one pattern but getting another. I’m sorry that I can’t give you the exact error right now. But I could tomorrow. Thanks,TomOn Apr 7, 2024, at 10:00 AM, axxel ***@***.***> wrote:
Hi Tom, no, I'm not Mike, I'm the maintainer of the zxing-cpp project. I re-implemented a bunch of the detector algorithms but the PDF417 detector is still mostly the one from the original Java ZXing library. I assume ZXing.NET's version is also a 1 to 1 port from the Java code. So all three should behave the same, which is contradicted by your your observation that the Xamarin version of ZXing is working. So I was curious what zxing-cpp does with your specific sample.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi Axxel,
Here is an image that returns null result...
Thanks
Tom
[image: pdf417-1.PNG]
…On Sun, Apr 7, 2024 at 11:12 AM Tom Tong ***@***.***> wrote:
I can send you my DL pic. But directly to you, as I don’t know who else
can view this thread?
Just don’t need my PII spread over the net ;-)
Thanks,
Tom
On Apr 7, 2024, at 10:40 AM, Tom Tong ***@***.***> wrote:
Yes, it’s peculiar then..
The Xamarin implementation has no problem with the driver license barcode,
but in its Maui version, it seems to read simple pdf417s but not the ones
for a DL.
I tried three packages that wrap the core Zxing library with a ContentPage
but all three fail to read it. I tried feeding a captured image directly
to the reader, but it gave an error, something about it expecting one
pattern but getting another. I’m sorry that I can’t give you the exact
error right now. But I could tomorrow.
Thanks,
Tom
On Apr 7, 2024, at 10:00 AM, axxel ***@***.***> wrote:
Hi Tom, no, I'm not Mike, I'm the maintainer of the zxing-cpp
<https://github.com/zxing-cpp/zxing-cpp> project. I re-implemented a
bunch of the detector algorithms but the PDF417 detector is still mostly
the one from the original Java ZXing library. I assume ZXing.NET's version
is also a 1 to 1 port from the Java code. So all three should behave the
same, which is contradicted by your your observation that the Xamarin
version of ZXing is working. So I was curious what zxing-cpp does with
your specific sample.
—
Reply to this email directly, view it on GitHub
<#557 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDPXLSNZS453SAYCDIVCLTY4F3TDAVCNFSM6AAAAABE56NNPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGUZTAMRZGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Maybe there is something wrong with the bing search link you provided. I get this image if I follow that link. My zxing-bench tool that compares the ZXing.NET implementation with the .NET wrapper of |
The zxing.net 0.40.0 for c# used in zxing.net.maui and zxing.net.maui.controls the same package you’re using? I’ve tried zxing barcode reader by giving it a png file directly and also using the contentpage wrapper methods and neither returns any result. I’m using VS 17.9.4, Xcode 15.3 and .net8 to make a native iPhone app. Thanks,TomOn Apr 8, 2024, at 3:40 PM, axxel ***@***.***> wrote:
Maybe there is something wrong with the bing search link you provided. I get this image if I follow that link. My zxing-bench tool that compares the ZXing.NET implementation with the .NET wrapper of zxing-cpp shows that both detect two barcodes in that image, a Code128 and a PDF417 one. So both work just fine with this image (although my implementation is 30x faster ;)).
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Oops... sort of had the package versions wrong... was going off the top of
my head..
[image: image.png]
So the Zxing.net.maui is 0.4.0, but the underlying zxing.net is 0.16.9
…On Mon, Apr 8, 2024 at 3:57 PM Tom Tong ***@***.***> wrote:
The zxing.net 0.40.0 for c# used in zxing.net.maui and
zxing.net.maui.controls the same package you’re using?
I’ve tried zxing barcode reader by giving it a png file directly and also
using the contentpage wrapper methods and neither returns any result.
I’m using VS 17.9.4, Xcode 15.3 and .net8 to make a native iPhone app.
Thanks,
Tom
On Apr 8, 2024, at 3:40 PM, axxel ***@***.***> wrote:
Maybe there is something wrong with the bing search link you provided. I
get this image
<https://idtempl.com/wp-content/uploads/2022/04/Screenshot-2022-06-04-135541.jpg>
if I follow that link. My zxing-bench
<https://github.com/axxel/zxing-bench/blob/main/dotnet/README.md> tool
that compares the ZXing.NET implementation with the .NET wrapper
<https://www.nuget.org/packages/ZXingCpp> of zxing-cpp shows that both
detect two barcodes in that image, a Code128 and a PDF417 one. So both work
just fine with this image (although my implementation is 30x faster ;)).
—
Reply to this email directly, view it on GitHub
<#557 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDPXLUCFP2K4FRH7DKMLWLY4MMFNAVCNFSM6AAAAABE56NNPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTG42TMNBWGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have no experience with zxing.net.maui. I was referring to https://www.nuget.org/packages/ZXing.Net and my benchmark tool is currently using 0.16.14. CORRECTION: I'm using https://www.nuget.org/packages/ZXing.Net.Bindings.SkiaSharp/ version 0.16.14 and that is depending on https://www.nuget.org/packages/ZXing.Net version 0.16.9. |
This issue is probably very specific to Maui/iOS/net8/Zxing 0.16.9/C# environment Thanks,TomOn Apr 8, 2024, at 4:40 PM, axxel ***@***.***> wrote:
I have no experience with zxing.net.maui. I was referring to https://www.nuget.org/packages/ZXing.Net and my benchmark tool is currently using 0.16.14.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Using ZXing.Net.Maui.Controls v0.4.0, which is based on ZXing.Net library, and the basic ZXing page and configuration, it can detect simple PDF417, but it fails to detect more complex ones, like the one on the back of a California drivers license. It also doesn't keep the torch on either, but flashes once when the page initializes. I've tried the barcode images samples on the internet by searching for "PDF417 images", only the simple ones are read....
I've tried two other packages, both based on ZXing.Net, BarcodeScanning.Native.Maui and Camera.MAUI/Camera.MAUI.ZXing. Neither works either for complex PDF417.
The Xamarin version of ZXing is able to read the CA drivers license barcode, fyi..
I'm using Visual Studio v17.9.2, XCode 15.3 and .net8.
Any insight will be appreciated.
This PDF417 scanning is for an app the County of Santa Cruz, CA is creating for our local law enforcement, so any help will be appreciated!!
Thanks!
Page:
Code behind:
MauiProgram.cs:
The text was updated successfully, but these errors were encountered: