feat: enhance OCR configuration and functionality

- Updated OCR settings to include minimum detection box score, minimum detection score, and minimum recognition score.
- Refactored PaddleOCRecognizer to utilize new scoring parameters.
- Introduced new database tables for asset OCR data and search functionality.
- Modified related services and repositories to support the new OCR features.
- Updated translations for improved clarity in settings UI.
This commit is contained in:
CoderKang 2025-06-03 16:19:50 +08:00 committed by mertalev
parent df36a09cd3
commit 4d8e51ede6
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
17 changed files with 180 additions and 51 deletions

View file

@ -72,7 +72,9 @@ export interface SystemConfig {
ocr: {
enabled: boolean;
modelName: string;
minScore: number;
minDetectionBoxScore: number;
minDetectionScore: number;
minRecognitionScore: number;
unwarpingEnabled: boolean;
orientationClassifyEnabled: boolean;
};
@ -253,7 +255,9 @@ export const defaults = Object.freeze<SystemConfig>({
ocr: {
enabled: true,
modelName: 'PP-OCRv5_server',
minScore: 0.9,
minDetectionBoxScore: 0.6,
minDetectionScore: 0.3,
minRecognitionScore: 0.0,
unwarpingEnabled: false,
orientationClassifyEnabled: false,
},