This is an AI Tool that will if trained can detect and distinguish the Objects further and give results relevant to it.
- Cross-platform
- Responsive
- Object detection
- Webcam
Frontend: HTML, CSS, JavaScript
Backend: Python, Flask, Google Teachable Machine
Clone the project
git clone https://github.com/RAJKUMARSHRIVASH/Object-Detector.git
Go to the project directory
cd Object-Detector
Install dependencies
pip freeze > requirements.txt
pip install --upgrade pip
pip install -r requirements.txt
Here are the steps to create a virtual environment in Python:
- Install the
virtualenv
package:
pip install virtualenv
- Navigate to your project directory and create a virtual environment. Here,
my_env
is the name of the virtual environment.
cd my_project/ virtualenv my_env
- Now, you have to activate the virtual environment. On
macOS
andLinux
, you can do this:
source my_env/bin/activate
On Windows
:
my_env\Scripts\activate
- After the activation, your terminal prompt will change to show the name of the activated environment.
Now, you can install packages into this isolated environment. For example:
pip install flask
This will install Flask in the my_env
environment, not in your global Python environment. All Python commands like python
, pip
, etc., used in this environment will apply to my_env
only.
- When you're done with your work, you can deactivate the environment to return to your global Python environment:
deactivate
Start the server
python main.py
Open the app on a browser locally
http://localhost:5000/
GET /
POST /classify
https://object-detector.onrender.com