core
    正在准备搜索索引...

    接口 DetectCodeData

    检测图片内的二维码、条码,imageData 与 filePath 参数应提供其中一个。

    interface DetectCodeData {
        filePath?: string;
        imageData?: Uint8Array<ArrayBuffer>;
        scanType?: ScanType;
    }
    索引
    filePath?: string

    fs:// 或 file:// 路径格式的图片文件路径

    imageData?: Uint8Array<ArrayBuffer>

    图片内容

    scanType?: ScanType

    扫码类型

    ['barCode', 'qrCode']