Files
foliate-js/package.json
T
john-okeefe 1684204e75 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.
2026-04-13 16:43:20 -04:00

53 lines
1.1 KiB
JSON

{
"name": "foliate-js",
"version": "0.0.0",
"description": "Render e-books in the browser",
"repository": {
"type": "git",
"url": "git+https://github.com/johnfactotum/foliate-js.git"
},
"bugs": {
"url": "https://github.com/johnfactotum/foliate-js/issues"
},
"homepage": "https://github.com/johnfactotum/foliate-js#readme",
"author": "John Factotum",
"license": "MIT",
"type": "module",
"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",
"@rollup/plugin-terser": "^0.4.4",
"@zip.js/zip.js": "^2.7.52",
"fflate": "^0.8.2",
"fs-extra": "^11.2.0",
"globals": "^15.9.0",
"pdfjs-dist": "^5.5.207",
"rollup": "^4.22.4"
},
"scripts": {
"build": "npx rollup -c"
},
"keywords": [
"ebook",
"reader",
"epub",
"cfi",
"mobi",
"azw",
"azw3",
"fb2",
"cbz",
"dictd",
"stardict",
"opds"
]
}