TIEVisionBarCodeSymbol
Declaration
TIEVisionBarCodeSymbol = interface(TIEVisionBase)
Description
An interface representing a detected barcode.
Demos
| Demos\IEVision\Barcode\Barcode.dpr |
| Demos\IEVision\BarCodeCam\BarCodeCam.dpr |
Example
var
symbols: TIEVisionVectorObjRef;
s: TIEVisionBarCodeSymbol;
i: Integer;
begin
symbols := IEVisionLib.createBarCodeScanner().scan(ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect(0, 0, 0, 0));
for i := 0 to symbols.size() - 1 do
begin
s := TIEVisionBarCodeSymbol( symbols.getObj(i) );
Memo1.Lines.Add('Type: ' + s.getSymbolType().c_str());
Memo1.Lines.Add('Data: ' + s.getData().c_str());
with s.getBoundingBox() do
Memo1.Lines.Add('Rect: ' + IntToStr(x) + ' ' + IntToStr(y) + ' ' + IntToStr(width) + ' ' + IntToStr(height));
end;
end;
Methods and Properties