Hi,
If the decoder is not decoding the picture. The waiting time is about 15 seconds. Is it possible to limit itself to 1 second. Because if the image is decoded it takes about 0.5 seconds.
Thank you.
Francois.
Hi Michael,
I'm sorry about the response time.
I Send you invalide barcode.
I try it with you sample program, is take 20 seconds to write "No Symbology Found".
François.
Hello GIPFG,
Thank you for following up. The issue, from my understanding, appears more to do with the reader than the barcode. Unfortunately there is no setting to manage the decode duration for the barcode. I would expect that a barcode that was unable to be decoded to return no symbology found and be instantaneously. You can handle the barcode reader's DecodeCompleted event which will fire very quickly upon calling barcode.Decode() for an image that isn't clear.
eg.
private void ButtonDecode_Click(object sender, RoutedEventArgs e) { TextBoxData.Text = string.Empty; //Decoding an image. _barcodeReader.Decode(_image); } private void BarcodeReader_DecodeComplete(object sender, ReaderDecodeArgs e) { //Setting the displayed image to the FilteredImage property of the Barcode Reader. //The Filtered Image will show a rectangle with the found barcode. ImageContainer.Source = _barcodeReader.FilteredImage; if (e.SymbolFound) { TextBoxData.Text += string.Format ( BarcodeReaderStrings.BarcodeReader_DecodedString, e.Symbology, //The Symbology of the decoded barcode. e.Value, //The Value of the decoded barcode. Environment.NewLine ); } else { TextBoxData.Text = BarcodeReaderStrings.BarcodeReader_NoSymbology; } ScrollViewerData.UpdateLayout(); ScrollViewerData.ScrollToVerticalOffset(double.MaxValue); } }
//Decoding an image. _barcodeReader.Decode(_image); }
private void BarcodeReader_DecodeComplete(object sender, ReaderDecodeArgs e) { //Setting the displayed image to the FilteredImage property of the Barcode Reader. //The Filtered Image will show a rectangle with the found barcode. ImageContainer.Source = _barcodeReader.FilteredImage;
if (e.SymbolFound) { TextBoxData.Text += string.Format ( BarcodeReaderStrings.BarcodeReader_DecodedString, e.Symbology, //The Symbology of the decoded barcode. e.Value, //The Value of the decoded barcode. Environment.NewLine ); } else { TextBoxData.Text = BarcodeReaderStrings.BarcodeReader_NoSymbology; }
ScrollViewerData.UpdateLayout(); ScrollViewerData.ScrollToVerticalOffset(double.MaxValue); } }
In case you need a list of members for the XamBarcode, you can visit our online documentation. https://ko.infragistics.com/help/wpf/infragisticswpf4.controls.barcodes.v16.2~infragistics.controls.barcodes_namespace
I recommend providing an isolated project that contains an unclear image. You can refer to a sample on our website that demosntrates the decoding process in more detail. Any failed attempt at decoding returns back with the text "No Symbology Found" instantly.
Let me know if you have any questions.
No I have no problem decoding.
This is when the picture is not clear it is not capable of decoding, this is normal.
But the waiting time is 15 seconds before knowing that it is not capable of decoding.
Is it possible to reduce this time to 1 or 2 seconds?
Because when the picture is clear the decoding time is 0.6 seconds.
Hello Francois,
Thank you for contacting Infragistics. Please clarify your issue. Are you having difficulty with a barcode/qr reader or are you having difficulty showing the code within your application?