统一返回值均为RapidOCROutput类型?

Open
#486 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by reviewing the RapidOCR v3 code paths that return RapidOCROutput, TextDetOutput, TextClsOutput, and TextRecOutput. Compare the conditions producing each type, then define the consistent return contract and verify that existing consumers still handle the unified result correctly.

Written by the indexing model from the issue text.

Description

问题描述 / Problem Description

rapidocr v3系列中,程序会根据不同的条件,返回不同的输出格式,包括RapidOCROutput,TextDetOutput,TextClsOutput和TextRecOutput。这样不统一会导致使用结果时,需要显式判断是哪个实例。

可能解决方案 / Possible solutions

全统一为RapidOCROutput?

Dominant language
Python
Stars
8.7k
Forks
787
Avg merge
6d 20h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RapidAI/RapidOCR

All issues in RapidAI/RapidOCR

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.