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.
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/Cargo.lock +1 -1
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/Cargo.toml +1 -1
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/PKG-INFO +3 -3
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/README.md +2 -2
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/backends/tract.rs +5 -4
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/lib.rs +4 -2
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/.github/workflows/release.yml +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/.gitignore +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/LICENSE +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/pyproject.toml +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/backends/mod.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/bin/roct.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/emit.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/engine.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/error.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/postprocess.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/preprocess.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/python.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/sampler.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/tasks.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/temporal.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/src/types.rs +0 -0
- {rust_ocr_transformer-0.2.0 → rust_ocr_transformer-0.2.1}/tests/pipeline.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "rust_ocr_transformer"
|
|
3
|
-
version = "0.2.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
//!
|
|
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`]:
|
|
9
|
-
//!
|
|
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 정의(구체 백엔드 미구현)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|