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#
Copy
public static class BarcodeDetector
Inheritance
System.Object
BarcodeDetector

Methods

View Source

DetectAsync(MediaVisionSource, Rectangle)

Detects barcodes on the source and reads the message from it.

Declaration
C#
Copy
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<System.Collections.Generic.IEnumerable<Barcode>>

A task that represents the asynchronous detect operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source already has been disposed of.

See Also
API Level: 4
View Source

DetectAsync(MediaVisionSource, Rectangle, BarcodeDetectionConfiguration)

Detects barcodes on the source and reads the message from it with BarcodeDetectionConfiguration.

Declaration
C#
Copy
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<System.Collections.Generic.IEnumerable<Barcode>>

A task that represents the asynchronous detect operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.

System.NotSupportedException

The feature is not supported.

ObjectDisposedException

source already has been disposed of.
-or-
config already has been disposed of.

See Also
API Level: 4