FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints.
https://www.python.org/downloads/
pip install fastapi
pip install -r requirements.txt
pip install "uvicorn[standard]"
if you not installl it click here https://github.com/UB-Mannheim/tesseract/wiki
for mor information click here https://fastapi.tiangolo.com/
uvicorn main:app --reload
python -m uvicorn main:app --reload
You can then run your application the same way you have done in the tutorials, but without the --reload option
uvicorn is Asynchronous Server Gateway Interface
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
* main.py :This is main of project.
* methods.py :The file that contains the function used in the APIs.
* object_detection.py:Our model that allows for image extraction.
* rotated.py :The file that contains rotation and orientation functions.
* Other files are testing files.
[{'IDENRECT':1,'IDENMETA':2,'REFIPO_X':221 ,'REFIPO_Y': 95 ,'RELAPO_X': 417,'RELAPO_Y': 149,'OBJERECT':1}]
'[{"IDENRECT":1,"IDENMETA":2,"REFIPO_X":177 ,"REFIPO_Y": 118 ,"RELAPO_X":245,"RELAPO_Y":311,"OBJERECT":0}]'
'
for library rembg, install version 2.0.35
pip install rembg=2.0.35
You may have to add Poppler to PATH to us pdf2image library Download the latest version of Poppler (zip file)