mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: add ImageData type assertion for barcode reader typecheck
This commit is contained in:
@@ -159,7 +159,7 @@ export function registerBarcodeRead(app: FastifyInstance) {
|
||||
data: new Uint8ClampedArray(rawData.buffer, rawData.byteOffset, rawData.length),
|
||||
width,
|
||||
height,
|
||||
};
|
||||
} as ImageData;
|
||||
|
||||
const results = await readBarcodes(imageData, {
|
||||
tryHarder,
|
||||
|
||||
Reference in New Issue
Block a user