Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Traffix-C23-PC636/Machine-Learning

Repository files navigation

Machine Learning

This is machine learning project for Traffic Detection from Capstone Group C23-PC636 for Bangkit Capstone Project

Requirements

  1. python3
  2. pip
  3. ffmpeg ( for stream m3u8 file )
  4. v4l2loopback ( for virtual device )
  5. RabbitMQ ( for task distribution )

Installation

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

  1. Clone lap github git clone https://github.com/gatagat/lap
  2. Build lap python setup.py install (may need to install cython,etc.)

Usage

  1. Start RabbitMQ or other message broker
  2. Start celery worker .celery.sh (may need to install message broker like RabbitMQ or Redis)
  3. Start web.py python web.py

Production Installation

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.

  1. Install NGINX as reverse proxy using nginx-config on folder config
  2. Install Gunicorn (should be installed when installing requirements) and copy mlapi.service to systemd folder (usually /etc/systemd/system)
  3. Install Celery (should be installed when installing requirements) and copy celery.service to systemd folder (usually /etc/systemd/system)

Contributing

Currently, we only accept contribution from our own members.

License

MIT

About

Traffic Machine Learning Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published