deckhearth/package.json
Randall Stillwell 2c1e9bbb79 🚀 Replace Tesseract with AI-powered OCR
🤖 AI OCR Implementation:
- Replace poor-performing Tesseract.js with OpenAI Vision API
- Add Ollama Vision support for local/private scanning
- Structured JSON output with card details (name, set, type, rarity, etc.)
- Much higher accuracy and faster processing
- Intelligent game detection (MTG, Pokemon, Lorcana)

⚙️ OCR Settings Panel:
- Configure OpenAI API key or Ollama server URL
- Test API connectivity before scanning
- Choose preferred OCR service
- Settings persist in localStorage

 Enhanced Card Data:
- Extract card name, set, type, rarity, HP, attacks, abilities
- Better game detection and set code identification
- Structured data for improved database matching
- Higher confidence scores (85%+ vs 37% with Tesseract)

🎯 For your Frosmoth card, this should extract:
- Card Name: 'Frosmoth'
- Game: 'POKEMON'
- HP: '90'
- Set: Proper set identification
- Confidence: 90%+ instead of 37%
2025-07-22 10:30:07 -05:00

68 lines
1.6 KiB
JSON

{
"name": "frontend",
"version": "0.1.0",
"private": true,
"engines": {
"node": "22.x"
},
"dependencies": {
"@stackframe/stack": "^2.8.22",
"@tanstack/react-query": "^5.83.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/bcryptjs": "^2.4.6",
"@types/jest": "^27.5.2",
"@types/jsonwebtoken": "^9.0.10",
"@types/next": "^8.0.7",
"@types/node": "^16.18.126",
"@types/pg": "^8.15.4",
"@types/react": "^18.3.17",
"@types/react-dom": "^18.3.5",
"@types/react-router-dom": "^5.3.3",
"@vercel/analytics": "^1.5.0",
"@vercel/blob": "^1.1.1",
"@vercel/speed-insights": "^1.2.0",
"axios": "^1.10.0",
"bcryptjs": "^3.0.2",
"jsonwebtoken": "^9.0.2",
"next": "^15.4.2",
"pg": "^8.16.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.0",
"react-scripts": "5.0.1",
"typescript": "^5.7.3",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.4.21",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.17"
}
}