Comments (3)
this project (and associated package) have no reason to live anymore, since the original project ZXing.Net.Maui (https://github.com/Redth/ZXing.Net.Maui) was corrected and a package published.
Please open issue in the original repository if something still not work
from bigislandbarcoding.
I can confirm that I have the same problem. Only if I rtate the phone 90º it will detect 1D barcodes.
Did you solve this in some way?
from bigislandbarcoding.
Don't use this project instead use https://github.com/redth/ZXing.Net.Maui video: https://www.youtube.com/watch?v=ostgj2xB_ok It is available in nuget package where the problem will be fixed .
If you need a temporary solution, then in CameraBarcodeReaderViewHandler.cs:
Change this:
protected Readers.IBarcodeReader BarcodeReader => Services.GetService<Readers.IBarcodeReader>();
to:
protected Readers.IBarcodeReader BarcodeReader { get { var a = Services.GetService<Readers.IBarcodeReader>(); if (a.Options?.Equals(this.Options) != true) a.Options = this.Options; return a; } } protected BarcodeReaderOptions Options { get; set; }
and this:
public static void MapOptions(CameraBarcodeReaderViewHandler handler, ICameraBarcodeReaderView cameraBarcodeReaderView) => handler.BarcodeReader.Options = cameraBarcodeReaderView.Options;
to:
public static void MapOptions(CameraBarcodeReaderViewHandler handler, ICameraBarcodeReaderView cameraBarcodeReaderView) { handler.Options = cameraBarcodeReaderView.Options; }
from bigislandbarcoding.
Related Issues (8)
- Issue with iOS-Implementation HOT 33
- Android 31 is the only version supported HOT 5
- Looks like this can only scan qr code, not barcode HOT 5
- System.Exception: 'Handler not found for view ZXing.Net.Maui.Controls.BarcodeGeneratorView.' HOT 4
- Black view when using NavigationPage HOT 1
- No package for net6.0-windows installed HOT 3
- Failed to resolve assembly in .Net MAUI HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigislandbarcoding.