MCPcopy
hub / github.com/sml2h3/ddddocr / _decode_base64_bytes

Function _decode_base64_bytes

ddddocr/api/app.py:57–61  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

55
56
57def _decode_base64_bytes(value: str) -> bytes:
58 try:
59 return base64.b64decode(value, validate=True)
60 except binascii.Error as exc:
61 raise HTTPException(status_code=400, detail="Base64 内容错误") from exc
62
63
64def _ensure_colors_list(data: List[Any]) -> List[str]:

Callers 4

ocr_recognitionFunction · 0.85
object_detectionFunction · 0.85
slide_match_recognitionFunction · 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…