Class BarcodeDetector
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 4
Provides the ability to detect barcodes on image sources.
public static class BarcodeDetector
- Inheritance
-
BarcodeDetector
Methods
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 |
---|---|
Task<IEnumerable<Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
NotSupportedException | The feature is not supported. |
ObjectDisposedException |
|
See Also
API Level: 4
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 |
---|---|
Task<IEnumerable<Barcode>> | A task that represents the asynchronous detect operation. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
NotSupportedException | The feature is not supported. |
ObjectDisposedException |
|