(file: UploadFile = File(...))
| 66 | |
| 67 | @app.post("/ocr") |
| 68 | def 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}") |
nothing calls this directly
no outgoing calls
no test coverage detected