rust-ocr-transformer 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/Cargo.lock +1 -1
  2. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/Cargo.toml +1 -1
  3. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/PKG-INFO +3 -3
  4. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/README.md +2 -2
  5. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/backends/tract.rs +5 -4
  6. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/lib.rs +4 -2
  7. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/.github/workflows/release.yml +0 -0
  8. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/.gitignore +0 -0
  9. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/LICENSE +0 -0
  10. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/pyproject.toml +0 -0
  11. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/backends/mod.rs +0 -0
  12. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/bin/roct.rs +0 -0
  13. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/emit.rs +0 -0
  14. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/engine.rs +0 -0
  15. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/error.rs +0 -0
  16. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/postprocess.rs +0 -0
  17. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/preprocess.rs +0 -0
  18. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/python.rs +0 -0
  19. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/sampler.rs +0 -0
  20. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/tasks.rs +0 -0
  21. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/temporal.rs +0 -0
  22. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/types.rs +0 -0
  23. {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/tests/pipeline.rs +0 -0
@@ -1655,7 +1655,7 @@ checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"
1655
1655
 
1656
1656
  [[package]]
1657
1657
  name = "rust_ocr_transformer"
1658
- version = "0.2.0"
1658
+ version = "0.2.1"
1659
1659
  dependencies = [
1660
1660
  "clap",
1661
1661
  "ffmpeg-next",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust_ocr_transformer"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  edition = "2021"
5
5
  license = "Apache-2.0"
6
6
  description = "Video-first Rust OCR pipeline — smart frame sampling (SSIM) + temporal dedup, emitting timestamped text/SRT for RAG ingestion. Recognition backends are embedded behind traits, not reinvented."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rust_ocr_transformer
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -134,7 +134,7 @@ for r in json.loads(out):
134
134
 
135
135
  ```toml
136
136
  [dependencies]
137
- rust_ocr_transformer = { git = "https://github.com/arabangoo/rust_ocr_transformer", tag = "v0.2.0" }
137
+ rust_ocr_transformer = { git = "https://github.com/arabangoo/rust_ocr_transformer", tag = "v0.2.1" }
138
138
  ```
139
139
 
140
140
  ### Feature 목록
@@ -468,7 +468,7 @@ pip install "git+https://github.com/arabangoo/rust_ocr_transformer"
468
468
  import json
469
469
  import rust_ocr_transformer as roct
470
470
 
471
- roct.__version__ # "0.2.0"
471
+ roct.__version__ # "0.2.1"
472
472
 
473
473
  # 이미지 OCR — 검출+인식 결과를 JSON 문자열로 (DB unclip·XY-Cut 읽기순서 기본 적용)
474
474
  out = roct.recognize_image("page.png", "models/det.onnx", "models/rec.onnx", "models/dict.txt")
@@ -116,7 +116,7 @@ for r in json.loads(out):
116
116
 
117
117
  ```toml
118
118
  [dependencies]
119
- rust_ocr_transformer = { git = "https://github.com/arabangoo/rust_ocr_transformer", tag = "v0.2.0" }
119
+ rust_ocr_transformer = { git = "https://github.com/arabangoo/rust_ocr_transformer", tag = "v0.2.1" }
120
120
  ```
121
121
 
122
122
  ### Feature 목록
@@ -450,7 +450,7 @@ pip install "git+https://github.com/arabangoo/rust_ocr_transformer"
450
450
  import json
451
451
  import rust_ocr_transformer as roct
452
452
 
453
- roct.__version__ # "0.2.0"
453
+ roct.__version__ # "0.2.1"
454
454
 
455
455
  # 이미지 OCR — 검출+인식 결과를 JSON 문자열로 (DB unclip·XY-Cut 읽기순서 기본 적용)
456
456
  out = roct.recognize_image("page.png", "models/det.onnx", "models/rec.onnx", "models/dict.txt")
@@ -6,10 +6,11 @@
6
6
  //! 전처리는 [`crate::preprocess`], 후처리는 [`crate::postprocess`]의 재사용 함수를 쓴다.
7
7
  //!
8
8
  //! ## 검증 경계 (정직한 고지)
9
- //! 이 모듈은 **컴파일까지 검증**됐고, 전처리·후처리 로직은 단위 테스트로 확인됐다. 다만
10
- //! **실제 모델 파일로 추론 정확도를 확인하지는 못했다.** 첫 실모델 실행 후 출력 텐서 축
11
- //! 순서, 사전/라벨 인덱스 오프셋, 임계값, 그리고 특히 객체 검출의 **출력 레이아웃 가정**이
12
- //! 조정될 수 있다. 검출 박스는 축 정렬(회전·unclip 미적용)이다.
9
+ //! 텍스트 검출/인식(OCR)은 **실제 PP-OCRv5 모델(한·영·일 등)로 동작 검증됨** — 실 화면 사진에서
10
+ //! 검출·인식·DB unclip·XY-Cut 읽기순서·자동 방향 보정([`recognize_image_auto`])까지 확인했다.
11
+ //! 분류([`TractClassifier`])와 객체 검출([`TractObjectDetector`])은 컴파일·구조는 갖췄으나 **실모델
12
+ //! 정확도는 미검증**이다 — 특히 객체 검출은 **출력 레이아웃을 `[N,6]`으로 가정**해 모델에 따라
13
+ //! 디코더 교체가 필요할 수 있다. 검출 박스는 축 정렬이다(개별 줄의 회전은 미적용).
13
14
 
14
15
  use std::path::Path;
15
16
 
@@ -5,8 +5,10 @@
5
5
  //! [`tasks`] 의 trait 뒤에 꽂아 교체하는 **오케스트레이션 틀**이다.
6
6
  //!
7
7
  //! ## 작업(task)과 현재 상태
8
- //! - 텍스트 검출/인식(OCR) — [`TextDetector`]/[`TextRecognizer`], [`OcrEngine`]: 골격 + tract 백엔드(추론 미검증)
9
- //! - 이미지 분류 — [`Classifier`]: tract 백엔드(추론 미검증)
8
+ //! - 텍스트 검출/인식(OCR) — [`TextDetector`]/[`TextRecognizer`], [`OcrEngine`]: 실모델 동작
9
+ //! 검증됨(PP-OCRv5 한·영·일 등 실제 화면 사진으로 확인). DB unclip·XY-Cut 읽기순서·자동
10
+ //! 방향 보정([`recognize_image_auto`]) 포함
11
+ //! - 이미지 분류 — [`Classifier`]: tract 백엔드(컴파일됨, 실모델 정확도 미검증)
10
12
  //! - 객체 검출 — [`ObjectDetector`]: tract 백엔드(출력 레이아웃 가정, 미검증)
11
13
  //! - 레이아웃 분석 — [`LayoutAnalyzer`]: trait 정의(레이아웃 라벨을 가진 객체 검출의 특수형)
12
14
  //! - 세그멘테이션 — [`Segmenter`]: trait 정의(구체 백엔드 미구현)