Skip to content
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

iOS TryInverted option does not work #33

Closed
xbond opened this issue Apr 26, 2013 · 3 comments
Closed

iOS TryInverted option does not work #33

xbond opened this issue Apr 26, 2013 · 3 comments
Labels

Comments

@xbond
Copy link

xbond commented Apr 26, 2013

We need to recognize the white-on-black data-matrix and QR codes, but the MobileBarcodeScanningOptions.TryInverted option that works perfectly on the Droid version does not work on iOS

@xbond
Copy link
Author

xbond commented May 6, 2013

Hi,

the latest revision "Updated to latest ZXing.Net commit" fixed the monotouch version of RGBLuminanceSource. Now it inherits from BaseLuminanceSource, which makes it support inversion. The only fix needed is the same as done for Android: src/ZXing.Net.Mobile/MonoTouch/ZXingScannerView.cs:154

  •    barcodeReader.TryHarder = this.options.TryInverted.Value; 
    
  •    barcodeReader.TryInverted = this.options.TryInverted.Value; 
    

And it will try to recognize inverted images after that!..

...though it works much much worse then black-on-white... The barcode should be quite big and the lightning should be perfect... But I managed to get result from it a couple of times.

@Redth
Copy link
Owner

Redth commented May 8, 2013

Fixed Now in master :)

@Redth Redth closed this as completed May 8, 2013
@bricefriha
Copy link

It doesn't work for me on Android personally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants