Giter VIP home page Giter VIP logo

Comments (3)

julienGrd avatar julienGrd commented on August 25, 2024 1

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.

vgb1993 avatar vgb1993 commented on August 25, 2024

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.

kajzik avatar kajzik commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.