TIEVisionBarCodeSymbol.getSymbolType
Declaration
function getSymbolType(): TIEVisionWString; safecall;
Description
Returns the barcode type. It can be one of the following strings:
| Barcode type string | Description |
| "EAN-8" | EAN-8 |
| "EAN-13" | EAN-13 |
| "EAN-2" | EAN 2-digit add-on |
| "EAN-5" | EAN 5-digit add-on |
| "UPC-A" | UPC-A |
| "UPC-E" | UPC-E |
| "ISBN-10" | ISBN-10 (from EAN-13) |
| "ISBN-13" | ISBN-13 (from EAN-13) |
| "COMPOSITE" | EAN/UPC barcode combined with its add-on |
| "I2/5" | Interleaved 2 of 5 |
| "DataBar" | GS1 DataBar (RSS-14) |
| "DataBar-Exp" | GS1 DataBar Expanded |
| "Codabar" | Codabar |
| "CODE-39" | Code 39 |
| "CODE-93" | Code 93 |
| "CODE-128" | Code 128 |
| "QR-Code" | QR Code |
Note: PDF417 barcodes are not supported
Example
// Show the type of the first barcode found in the image
var
symbols: TIEVisionVectorObjRef;
sym: TIEVisionBarCodeSymbol;
begin
symbols := IEVisionLib.createBarCodeScanner().scan( ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect(0, 0, 0, 0) );
if symbols.size() > 0 then
begin
sym := TIEVisionBarCodeSymbol( symbols.getObj(0) );
ShowMessage( 'Type: ' + sym.getSymbolType().c_str() );
end;
end;
See Also
◼getData
◼scan
◼ScanBarcode