mirror-immich/mobile/lib/infrastructure/repositories
Kang 02b29046b3
feat: ocr (#18836)
* feat: add OCR functionality and related configurations

* chore: update labeler configuration for machine learning files

* feat(i18n): enhance OCR model descriptions and add orientation classification and unwarping features

* chore: update Dockerfile to include ccache for improved build performance

* feat(ocr): enhance OCR model configuration with orientation classification and unwarping options, update PaddleOCR integration, and improve response structure

* refactor(ocr): remove OCR_CLEANUP job from enum and type definitions

* refactor(ocr): remove obsolete OCR entity and migration files, and update asset job status and schema to accommodate new OCR table structure

* refactor(ocr): update OCR schema and response structure to use individual coordinates instead of bounding box, and adjust related service and repository files

* 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.

* sql changes

* use rapidocr

* change dto

* update web

* update lock

* update api

* store positions as normalized floats

* match column order in db

* update admin ui settings descriptions

fix max resolution key

set min threshold to 0.1

fix bind

* apply config correctly, adjust defaults

* unnecessary model type

* unnecessary sources

* fix(ocr): switch RapidOCR lang type from LangDet to LangRec

* fix(ocr): expose lang_type (LangRec.CH) and font_path on OcrOptions for RapidOCR

* fix(ocr): make OCR text search case- and accent-insensitive using ILIKE + unaccent

* fix(ocr): add OCR search fields

* fix: Add OCR database migration and update ML prediction logic.

* trigrams are already case insensitive

* add tests

* format

* update migrations

* wrong uuid function

* linting

* maybe fix medium tests

* formatting

* fix weblate check

* openapi

* sql

* minor fixes

* maybe fix medium tests part 2

* passing medium tests

* format web

* readd sql

* format dart

* disabled in e2e

* chore: translation ordering

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2025-10-27 14:09:55 +00:00
..
api.repository.dart refactor: DCM - const border radius, constructor & switch expressions (#19515) 2025-06-25 13:06:24 +05:30
backup.repository.dart fix: show un-hashed remainder assets (#22492) 2025-09-30 08:19:03 -05:00
db.repository.dart fix: merged timeline orderby localtime (#22371) 2025-09-29 09:53:40 -05:00
db.repository.drift.dart feat: sync AuthUserV1 (#21565) 2025-09-08 14:00:10 -05:00
db.repository.steps.dart fix: merged timeline orderby localtime (#22371) 2025-09-29 09:53:40 -05:00
device_asset.repository.dart chore: bump line length to 120 (#20191) 2025-07-25 02:37:22 +00:00
exif.repository.dart chore: bump dart sdk to 3.8 (#20355) 2025-07-28 14:04:03 -05:00
local_album.repository.dart fix: sqlite parameters limit (#22119) 2025-09-19 09:47:56 -04:00
local_asset.repository.dart fix: sqlite parameters limit (#22119) 2025-09-19 09:47:56 -04:00
log.repository.dart feat: use sqlite for logging (#20414) 2025-08-06 10:49:29 -05:00
logger_db.repository.dart feat: use sqlite for logging (#20414) 2025-08-06 10:49:29 -05:00
logger_db.repository.drift.dart feat: use sqlite for logging (#20414) 2025-08-06 10:49:29 -05:00
map.repository.dart refactor(mobile): sqlite-based map view (#20665) 2025-08-06 10:05:49 -05:00
memory.repository.dart fix(mobile): memory lane query (#21422) 2025-08-29 19:33:58 -05:00
partner.repository.dart chore: bump dart sdk to 3.8 (#20355) 2025-07-28 14:04:03 -05:00
people.repository.dart fix(mobile): filter people that have less than 3 faces (#20705) 2025-08-05 21:16:13 +00:00
remote_album.repository.dart fix: shared album control permissions (#22435) 2025-10-14 08:04:22 +05:30
remote_asset.repository.dart fix: show only owned assets in places and map (#22585) 2025-10-02 10:41:14 -05:00
search_api.repository.dart feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
stack.repository.dart chore: bump dart sdk to 3.8 (#20355) 2025-07-28 14:04:03 -05:00
storage.repository.dart fix: local sync task never runs on iOS (#21491) 2025-09-03 02:05:58 +05:30
store.repository.dart feat: sync AuthUserV1 (#21565) 2025-09-08 14:00:10 -05:00
sync_api.repository.dart fix: process upload only after successful remote sync (#22360) 2025-09-29 10:10:00 -05:00
sync_stream.repository.dart chore: clean auth-user entity on reset (#22583) 2025-10-02 22:48:17 -05:00
timeline.repository.dart chore: refactor show view in timeline button (#22894) 2025-10-14 15:25:48 +00:00
user.repository.dart feat: sync AuthUserV1 (#21565) 2025-09-08 14:00:10 -05:00
user_api.repository.dart chore: bump dart sdk to 3.8 (#20355) 2025-07-28 14:04:03 -05:00
user_metadata.repository.dart fix: parse correct metadata to userDto for SQlite store implmentation (#21154) 2025-08-23 11:02:24 -05:00