MCPcopy Index your code
hub / github.com/sml2h3/ddddocr / InitializeRequest

Class InitializeRequest

ddddocr/api/models.py:10–19  ·  view source on GitHub ↗

初始化请求模型

Source from the content-addressed store, hash-verified

8
9
10class InitializeRequest(BaseModel):
11 """初始化请求模型"""
12 ocr: bool = Field(True, description="是否启用OCR功能")
13 det: bool = Field(False, description="是否启用目标检测功能")
14 old: bool = Field(False, description="是否使用旧版OCR模型")
15 beta: bool = Field(False, description="是否使用beta版OCR模型")
16 use_gpu: bool = Field(False, description="是否使用GPU")
17 device_id: int = Field(0, description="GPU设备ID")
18 import_onnx_path: str = Field("", description="自定义ONNX模型路径")
19 charsets_path: str = Field("", description="自定义字符集路径")
20
21
22class SwitchModelRequest(BaseModel):

Callers 1

call_toolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…