QRCode Detection working.

This commit is contained in:
Felix Kaspar
2023-10-27 02:56:13 +02:00
parent 4e8d8e3d53
commit dd14b3a773
8 changed files with 4826 additions and 291 deletions

View File

@@ -0,0 +1,11 @@
export async function getImagesOnPage(page, PDFJS) {
const ops = await page.getOperatorList();
const images = [];
for (var j=0; j < ops.fnArray.length; j++) {
if (ops.fnArray[j] == PDFJS.OPS.paintJpegXObject || ops.fnArray[j] == PDFJS.OPS.paintImageXObject) {
const image = page.objs.get(ops.argsArray[j][0]);
images.push(image);
}
}
return images;
}