zxing.net

How to flip Camera used by ZXing in Xamaring Forms

空扰寡人 提交于 2021-01-29 14:14:04
问题 As part of the app i'm developing i want the ability to change between using the front or back camera, but from my searches and attempts i haven't been able to get it to work using the front camera. The scanner view doing the scanning is the one from ZXing.Net.Mobile.Forms called ZXingScannerView, defined in my xaml like so, together with the button that should do the flipping of the camera. <elements:AdvancedTabbedPage ... xmlns:elements="clr-namespace:Wolf.Utility.Main.Xamarin.Elements

Xamarin Forms - Zxing QR Scanner - How can you toggle the camera being used?

前提是你 提交于 2020-06-13 06:37:39
问题 When I start scanning for barcodes using a ScannerView in Xamarian forms, it automatically goes to the back camera on the phone. I would like to make a toggle camera button that toggles the camera from back to front and vice versa. Is this possible using zxing for xamarin forms? My options look like this: code: //Set the scanner options. ScannerView.Options = new ZXing.Mobile.MobileBarcodeScanningOptions() { UseNativeScanning = true, AutoRotate = true, PossibleFormats = new List<ZXing

Xamarin Forms - Zxing QR Scanner - How can you toggle the camera being used?

∥☆過路亽.° 提交于 2020-06-13 06:37:06
问题 When I start scanning for barcodes using a ScannerView in Xamarian forms, it automatically goes to the back camera on the phone. I would like to make a toggle camera button that toggles the camera from back to front and vice versa. Is this possible using zxing for xamarin forms? My options look like this: code: //Set the scanner options. ScannerView.Options = new ZXing.Mobile.MobileBarcodeScanningOptions() { UseNativeScanning = true, AutoRotate = true, PossibleFormats = new List<ZXing

Read multiple barcodes from single image file using Zxing library in java service

隐身守侯 提交于 2020-03-28 06:54:10
问题 Hi i have created a java service for reading the barcode from image here iam using Zxing library for decoding the text here the challenge is if a file with single barcode it's working fine if there are multiple barcodes it's producing irrelevant result i have given my code below. pom.xml <!-- https://mvnrepository.com/artifact/com.google.zxing/core --> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.4.0</version> </dependency> <!-- https:/

IMB barcode could not be read

懵懂的女人 提交于 2020-02-23 03:56:06
问题 I have tried to read IMB barcode from an image with the below code snippet, but it always return null. I have also tried with the IMB barcode images in the blackbox testing below, but doesn't work. https://github.com/micjahn/ZXing.Net/tree/master/Source/test/data/blackbox/imb-1 private static void Decode() { Bitmap bitmap = new Bitmap(@"\07.png"); try { MemoryStream memoryStream = new MemoryStream(); bitmap.Save(memoryStream, ImageFormat.Bmp); byte[] byteArray = memoryStream.GetBuffer();

DataMatrix Barcode Format Blurred in ZXingBarcodeImageView Xamarin Forms Zxing 2.3.2

泪湿孤枕 提交于 2019-12-24 18:31:27
问题 I'm trying to display DataMatrix barcode inside ZXingBarcodeImageView, the problem is whatever width and height I use the barcode is blurry with low resolution. Screenshot <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" > <forms1:ZXingBarcodeImageView BarcodeFormat="DATA_MATRIX" BarcodeOptions="{datamatrix:DatamatrixEncodingOptions, Height=100, Width=100}" WidthRequest="100" HeightRequest="100" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"

Generate barcode with ZXing.net

落花浮王杯 提交于 2019-12-12 14:23:35
问题 I'm trying to generate a barcode using ZXing.NET for dot net core asp.net application. I can't figure out how to display text with the barcode and documentation seems to be really, really lacking. Does anyone have an idea how to make it work? This is the code I have (mostly taken from another post on SO): BarcodeWriterPixelData writer = new BarcodeWriterPixelData() { Format = BarcodeFormat.CODE_128, Options = new EncodingOptions { Height = 400, Width = 800, PureBarcode = false, // this should