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

Function process_ocr

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected