Class BarcodeDetector
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 4
Provides the ability to detect barcodes on image sources.
C#Copypublic static class BarcodeDetector
- Inheritance
-
System.ObjectBarcodeDetector
Methods
DetectAsync(MediaVisionSource, Rectangle)
Detects barcodes on the source and reads the message from it.
Declaration
C#Copypublic 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<System.Collections.Generic.IEnumerable<Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.NotSupportedException | The feature is not supported. |
ObjectDisposedException |
|
See Also
API Level: 4
DetectAsync(MediaVisionSource, Rectangle, BarcodeDetectionConfiguration)
Detects barcodes on the source and reads the message from it with BarcodeDetectionConfiguration.
Declaration
C#Copypublic 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<System.Collections.Generic.IEnumerable<Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.NotSupportedException | The feature is not supported. |
ObjectDisposedException |
|