MCPcopy Create free account
hub / github.com/BIT-DataLab/Edit-Banana / Pix2TextBlock

Class Pix2TextBlock

modules/text/ocr/pix2text.py:32–47  ·  view source on GitHub ↗

Pix2Text 识别块 Attributes: text: 文字/公式内容 polygon: 四边形坐标 block_type: 类型(text/formula/isolated/embedding) font_size_px: 字号(像素) is_latex: 是否为 LaTeX 公式

Source from the content-addressed store, hash-verified

30
31@dataclass
32class Pix2TextBlock:
33 """
34 Pix2Text 识别块
35
36 Attributes:
37 text: 文字/公式内容
38 polygon: 四边形坐标
39 block_type: 类型(text/formula/isolated/embedding)
40 font_size_px: 字号(像素)
41 is_latex: 是否为 LaTeX 公式
42 """
43 text: str
44 polygon: list[tuple[float, float]]
45 block_type: str
46 font_size_px: float
47 is_latex: bool = False
48
49
50@dataclass

Callers 1

analyze_imageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected