From 877386cdd38caf518e07ee9d4a5ecbe83c4ea620 Mon Sep 17 00:00:00 2001 From: Felix Kaspar Date: Sat, 28 Oct 2023 19:31:56 +0200 Subject: [PATCH] Updated Progress --- README.md | 2 +- public/functions/splitOn.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 47aa7aac..9465f064 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Current functions of spdf and their progress in this repo. | Status | Feature | Description | | ------ | ------------------ | ----------- | | ✔️ | Remove Blank Pages | | -| 🚧 | Auto Split Pages | | +| ✔️ | Auto Split Pages | | | Status | Feature | Description | | ------ | ------------ | ----------- | diff --git a/public/functions/splitOn.js b/public/functions/splitOn.js index 9c3dbb23..013c3f9b 100644 --- a/public/functions/splitOn.js +++ b/public/functions/splitOn.js @@ -76,7 +76,6 @@ export async function splitOn(snapshot, type, whiteThreashold, PDFJS, OpenCV, PD const pagesWithQR = []; for (let i = 0; i < pdfDoc.numPages; i++) { const page = await pdfDoc.getPage(i + 1); - console.log("Checking page " + i); const images = await getImagesOnPage(page, PDFJS); @@ -91,8 +90,6 @@ export async function splitOn(snapshot, type, whiteThreashold, PDFJS, OpenCV, PD } async function checkForQROnImage(image) { - console.log(image.data, image.width, image.height, image.width * image.height * 4); - // TODO: There is an issue with the jsQR package (The package expects rgba but sometimes we have rgb), and the package seems to be stale, we could create a fork and fix the issue. In the meanwhile we just force rgba: // Check for rgb and convert to rgba if(image.data.length == image.width * image.height * 3) {