To run this project, you need to have Python and Node.js installed on your computer.
- Use the
obj_det.sqlfile to create the database. - A default account with the email
admin@gmail.com, useradminand passwordadmin123is already created. - You can create your own account.
- In the root folder, create a
.envfile with the following fields:DB_HOST=SERVER NAME DB_USER=USERNAME DB_PORT=3306 DB_NAME=YOUR_DB_NAME DB_PASSWORD=PASSWORD SECRET_KEY=SECRET KEY
- In the
ObjectDetectionfolder, create another.envfile with the following field:VITE_API_URL="http://localhost:8000/api"
- In the terminal, run:
pip install -r requirements.txt
- After installing the required modules, navigate to the
ObjectDetectionfolder:cd ObjectDetection - In the
ObjectDetectionfolder, run:npm install
- Install the AI Model and put it in the
rootfolder - Download Here
- In the
ObjectDetectionfolder, start the development server:npm run dev
- In a new terminal window, in the root folder, run:
python server.py
- Open your browser and go to http://localhost:5173.
- Log in using the default admin account.