DetectBarcodeTypes
JpegRootPackage.DetectBarcodeTypes method
Extracts the types of the barcodes presented in the image.
public string[] DetectBarcodeTypes()
Return Value
An array of barcode types.
Remarks
Learn more
Examples
This code snippet demonstrates how to detect barcodes in a JPEG image.
using (Metadata metadata = new Metadata(Constants.JpegWithBarcodes))
{
var root = metadata.GetRootPackage<JpegRootPackage>();
var barcodeTypes = root.DetectBarcodeTypes();
foreach (var barcodeType in barcodeTypes)
{
Console.WriteLine(barcodeType);
}
}
See Also
- class JpegRootPackage
- namespace GroupDocs.Metadata.Formats.Image
- assembly GroupDocs.Metadata