Pre-requisites
-
Install Python
sudo apt install python3
-
Install virtual environment utility
sudo apt install python3-venv
-
Create a virtual environment
python3 -m venv venv
-
Setup an environment and run project (Activate virtual environment and install requirements and run development server)
source .env
How to test OCR
- To test OCR use postman and run the python server by following command "python manage.py runserver".
- After running server use URL "127.0.0.1:8000/api/ocr/" on the postman.
- Set the postman setting to "POST", "Body", "binary" and pass an image having text in it.
- The image is converted into the text.
How to test KNN
- To test KNN use postman and run the python server by following command "python manage.py runserver".
- After running server use URL "127.0.0.1:8000/api/iris/" on the postman.
- Set the postman setting to "POST", "Body", "raw" & format "json".
- Now pass values like following: { "SL": your_value, "SW": your_value, "PL": your_value, "PW": your_value }
- Now send and see the results.