AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: On-device OCR to extract and copy text from images

Đang mở
#1,522 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
284
Fork
680
Merge trung bình
7 ngày 5 giờ
Pull request đã merge (30 ngày)
4

Mô tả

### Describe the feature

### Feature

Add a local, privacy-preserving Optical Character Recognition (OCR) feature that allows users to extract text from photos and copy it directly to their clipboard.


### Proposed Implementation & Architecture
#### 1. Backend (On-Device Inference via ONNX)
- **Model**: Integrate a lightweight, offline ONNX OCR model .
- Register the model under a new or optional feature tier so users can manage/download it locally.
- Implement a dedicated model class extending `ONNXSessionBase` for thread-safe inference.
- Index extracted text in SQLite so users can search their photo library by text found inside images.

#### 2. Frontend (Viewer & UX)
- **Viewer Action**: Add a "Scan Text" icon button .
- **Extraction Flow**:
- Triggering the action shows a subtle loading state while inference runs.
- A modal dialog displays the recognized text with line formatting preserved.
- A primary **"Copy to Clipboard"** button with immediate feedback (e.g. "Copied!").
- Handles cases where no text was found.
- Prompts the user to download/enable the OCR model from Settings if not yet installed.

### Add ScreenShots

Hi @rohan-pandeyy can i work in this feature.

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by locating the viewer action, ONNXSessionBase, model registration and feature-tier settings, and SQLite indexing paths. Review how the viewer should handle loading, modal text display, no-text results, clipboard feedback, and an unavailable model. Done means offline OCR extracts selectable text, supports copying, and indexes it for photo-library search.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, sqlite
Lĩnh vực
computer-vision, databases, desktop, machine-learning
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
28/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.