This is machine learning project for Traffic Detection from Capstone Group C23-PC636 for Bangkit Capstone Project
- python3
- pip
- ffmpeg ( for stream m3u8 file )
- v4l2loopback ( for virtual device )
- RabbitMQ ( for task distribution )
Use the package manager pip to install the package needed to run this project.
pip install -r requirements.txt
Note : Build lap
yourself if u got error when installing lap
- Clone lap github
git clone https://github.com/gatagat/lap
- Build lap
python setup.py install
(may need to install cython,etc.)
- Start RabbitMQ or other message broker
- Start celery worker
.celery.sh
(may need to install message broker like RabbitMQ or Redis) - Start web.py
python web.py
Rather than executing scripts manually one by one, we will use systemd service for start / stop / watch status and enable / disable services. On this way, we don't need to start the scripts every time the system restarts.
- Install NGINX as reverse proxy using nginx-config on folder config
- Install Gunicorn (should be installed when installing requirements) and copy mlapi.service to systemd folder (usually /etc/systemd/system)
- Install Celery (should be installed when installing requirements) and copy celery.service to systemd folder (usually /etc/systemd/system)
Currently, we only accept contribution from our own members.