This project demonstrates a basic setup for a computer vision application using Flask. The following instructions guide you through the process of cloning, setting up, and running the project locally.
To clone this project, use the following command:
git clone https://github.com/Dhanush0000/Computer_vision.git
Install Flask Using pip
pip install flask
Create a main folder for your project:
mkdir flask_website
cd flask_website
Inside flask_website, create the main Flask application file:
touch app.py
In app.py, initialize a basic Flask app.
Create a templates folder to store HTML files:
mkdir templates
Add an HTML file for the homepage in the templates folder (e.g., index.html).
Create a static folder to contain CSS and JavaScript files:
mkdir static
Inside static, you can create css and js subfolders if needed.
It's only a if situation, index.html file has both css and js inline
Create a modules folder where you’ll save your trained model:
mkdir modules
Save your model file in this folder.
In app.py, provide the path to your saved model file for predictions. This will allow you to load the model and use it to predict classes.
Once everything is set up, run the Flask application using the command:
python app.py
Check the terminal for a local link to access the app in your browser. Open the link to view and interact with your computer vision project.