DetectBarcodeTypes
Leave feedback
On this page
Extracts the types of the barcodes presented in the image.
public string[] DetectBarcodeTypes()
An array of barcode types.
Learn more
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);
}
}
- class JpegRootPackage
- namespace GroupDocs.Metadata.Formats.Image
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.