mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
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:
parent
df36a09cd3
commit
4d8e51ede6
17 changed files with 180 additions and 51 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue