1
private readonly IBarcodeReader barcodeReader;
barcodeReader = new BarcodeReader {
    AutoRotate = true,
    Options = new DecodingOptions {
        TryHarder = true,
        PossibleFormats = new List < BarcodeFormat {
            BarcodeFormat.AZTEC
        }
    }
};
currentBitmapForDecoding = new Bitmap(@ "F:\Aztec-Code-Scandit.png");
Result result = barcodeReader.Decode(currentBitmapForDecoding);

物理パスから画像を読み取ると機能しますが、ウェブカメラの現在のフレームをcurrentBitmapForDecodingそれに割り当てるとBarcode.pls、アステカのバーコードを読み取るのに役立ちます。フレームサイズを小さくしても機能しません。

4

0 に答える 0