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

@ -0,0 +1,15 @@
import { AssetTable } from 'src/schema/tables/asset.table';
import { Column, ForeignKeyColumn, Table } from 'src/sql-tools';
@Table('ocr_search')
export class OcrSearchTable {
@ForeignKeyColumn(() => AssetTable, {
onDelete: 'CASCADE',
onUpdate: 'CASCADE',
primary: true,
})
assetId!: string;
@Column({ type: 'text' })
text!: string;
}