Skip to content

测试集上复现的分数(TEDS)极低 #143

Answered by Joker1212
vivavilavida asked this question in Q&A
Discussion options

You must be logged in to vote


我最新的结果是这样,但是我是本地有数据集,直接传的img_path,我也用你的方法测试了一下,发现确实有差别,但是也在可控范围内

from pathlib import Path
from wired_table_rec.utils.utils import VisTable
from table_cls import TableCls
from wired_table_rec.main import WiredTableInput, WiredTableRecognition
from lineless_table_rec.main import LinelessTableInput, LinelessTableRecognition
from rapidocr import RapidOCR

table OCR init

ocr_engine = RapidOCR()
wired_input = WiredTableInput()
lineless_input = LinelessTableInput()
wired_engine = WiredTableRecognition(wired_input)
lineless_engine = LinelessTableRecognition(lineless_input)
viser = VisTable()
table_cls = TableCls()

def table_OCR(img_path):
cls, elasp = table_cls(img_path)
if cls == "wired":
table…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vivavilavida
Comment options

@Joker1212
Comment options

Answer selected by vivavilavida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants