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.gitInstall Flask Using pip
pip install flaskCreate a main folder for your project:
mkdir flask_website
cd flask_websiteInside flask_website, create the main Flask application file:
touch app.pyIn app.py, initialize a basic Flask app.
Create a templates folder to store HTML files:
mkdir templatesAdd 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 staticInside 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 modulesSave 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.pyCheck 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.