testing OCR API using FastAPI to demonstrate asyncio, async, and queueing
- Docker
- Docker-compose
Using:
- aiofile
- aiopytesseract
- miniopy_async
https://github.com/alivx/ocr-fastapi-demo/blob/master
- pytesseract
Using:
- aiofile
- aiopytesseract
- miniopy_async
- RQ
docker-compose build
docker-compose up
Sync
curl --location --request POST 'http://127.0.0.1:8000/upload' \
--form 'image=@"/${path}.png"'
AsyncIO
curl --location --request POST 'http://127.0.0.1:8001s/upload' \
--form 'image=@"/${path}.png"'
AsyncIO with queue
curl --location --request POST 'http://127.0.0.1:8002/upload' \
--form 'image=@"/${path}.png"'
locust -f stress.py