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),
|
data: new Uint8ClampedArray(rawData.buffer, rawData.byteOffset, rawData.length),
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
};
|
} as ImageData;
|
||||||
|
|
||||||
const results = await readBarcodes(imageData, {
|
const results = await readBarcodes(imageData, {
|
||||||
tryHarder,
|
tryHarder,
|
||||||
|
|||||||
Reference in New Issue
Block a user