From 1684204e750171c3035e9cf4d7a6f1352044c6d1 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 13 Apr 2026 16:43:20 -0400 Subject: [PATCH] Add panel detection dependencies Add ML and computer vision libraries for manga/comic panel detection: - @techstark/opencv-js: OpenCV.js for edge detection and contour analysis - @tensorflow/tfjs: TensorFlow.js for ML-based detection fallback - @tensorflow-models/coco-ssd: Pre-trained COCO-SSD model for object detection These libraries enable a multi-tier panel detection pipeline: 1. OpenCV edge detection (fast, ~80% accuracy) 2. ML-based detection with COCO-SSD (handles irregular layouts) 3. Grid-based fallback (always works) All libraries are lazy-loaded on-demand to minimize initial bundle size. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index cfdd63f..b681de4 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,11 @@ "exports": { "./*.js": "./*.js" }, + "dependencies": { + "@techstark/opencv-js": "^4.12.0", + "@tensorflow/tfjs": "^4.22.0", + "@tensorflow-models/coco-ssd": "^2.2.3" + }, "devDependencies": { "@eslint/js": "^9.9.1", "@rollup/plugin-node-resolve": "^15.2.3",