Class BarcodeDetector
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Provides the ability to detect barcodes on image sources.
public static class BarcodeDetector
- Inheritance
-
objectBarcodeDetector
Methods
View SourceDetectAsync(MediaVisionSource, Rectangle, BarcodeDetectionConfiguration)
Detects barcodes on the source and reads the message from it with BarcodeDetectionConfiguration.
Declaration
public static Task<IEnumerable<Barcode>> DetectAsync(MediaVisionSource source, Rectangle roi, BarcodeDetectionConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The MediaVisionSource instance. |
Rectangle | roi | Region of interest - rectangular area on the source which will be used for barcode detection. Note that roi should be inside area on the source. |
BarcodeDetectionConfiguration | config | The configuration of the barcode detector. This value can be null. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.NotSupportedException | The feature is not supported. |
System.ObjectDisposedException |
|
See Also
View SourceDetectAsync(MediaVisionSource, Rectangle)
Detects barcodes on the source and reads the message from it.
Declaration
public static Task<IEnumerable<Barcode>> DetectAsync(MediaVisionSource source, Rectangle roi)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The MediaVisionSource instance. |
Rectangle | roi | Region of interest - rectangular area on the source which will be used for barcode detection. Note that roi should be inside area on the source. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.NotSupportedException | The feature is not supported. |
System.ObjectDisposedException |
|