immich/server/src
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
..
bin feat: availability checks (#22185) 2025-09-19 12:18:42 -04:00
commands feat: change default media location to /data (#20367) 2025-07-29 16:58:50 -04:00
controllers feat: logout sessions on password change (#23188) 2025-10-27 13:16:10 +00:00
cores chore(server): fix logger context in StorageCore (#21534) 2025-09-08 17:28:40 -04:00
dtos feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
emails fix: missing email button padding (#22529) 2025-10-01 09:03:22 -05:00
middleware feat: view the user's app version on the user page (#21345) 2025-10-22 00:36:18 +02:00
queries feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
repositories feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
schema feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
services feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
sql-tools feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
utils feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
workers feat: allow unordered migrations in dev (#19881) 2025-07-11 10:58:34 -04:00
app.module.ts refactor: websocket repository (#23228) 2025-10-24 16:26:27 -04:00
config.ts feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
constants.ts chore(server): support vectorchord 0.5.x (#21602) 2025-10-06 20:37:54 +00:00
database.ts feat: view the user's app version on the user page (#21345) 2025-10-22 00:36:18 +02:00
decorators.ts fix(server): fix chunking Postgres query parameters (#22684) 2025-10-06 11:37:35 -04:00
enum.ts feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
main.ts feat: remove dep on cwd for workers (#20012) 2025-07-18 10:57:49 -04:00
types.ts feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
validation.spec.ts feat: batch change date and time relatively (#17717) 2025-08-07 13:42:33 +00:00
validation.ts fix: automatically remove leading/trailing whitespace from search que… (#22214) 2025-09-19 12:19:26 -04:00