...
/Implement OCR API Using FastAPI - 1
Implement OCR API Using FastAPI - 1
Learn how to create a REST API that performs OCR on multiple images concurrently using FastAPI.
We'll cover the following...
Create a virtual environment for our API
It is a best practice to create a virtual environment whenever you create a new project. You can follow one of the two options below:
-
Using the Anaconda Prompt:
-
Start the Anaconda Prompt.
-
Run the following command:
conda create -n env_name python=3.7
You can specify any
env_name
you like and the desiredPython
version. -
Activate your virtual environment by running the following command:
conda activate env_name
-
Your environment is now activated and you can install whichever packages you need in this virtual environment.
-
-
Using venv package:
-
Start the Command Prompt.
-
If you do not ...
-