MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / process_ocr

Function process_ocr

ocr-viewer/backend/main.py:68–71  ·  view source on GitHub ↗
(file: UploadFile = File(...))

Source from the content-addressed store, hash-verified

66
67@app.post("/ocr")
68def process_ocr(file: UploadFile = File(...)):
69 file_bytes = file.file.read()
70 image = Image.open(BytesIO(file_bytes))
71 return recognizer.recognize(image)
72
73
74@app.websocket("/ocr_ws/{client_id}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected