Skip to content

anabxathag/Customer_Detection_WebApp

Repository files navigation

Customer Detection WebApp

A Flask-based monitoring and camera-management web app that uses a YOLO segmentation/tracking model to detect and label people (customers / workers / unknown) in video feeds, store camera configurations in a MySQL database, and optionally send LINE notifications.

Key files

Requirements

  • Python 3.8+
  • MySQL server accessible to the app
  • Packages (install with pip): flask, ultralytics, opencv-python, aiortc, shapely, mysql-connector-python, requests, pandas

Quick setup

  1. Creating conda environment:

    conda env create -f environment.yaml
    conda activate V89_monitoring

    Updating environment:

    conda env update --file environment.yaml --prune
  2. Configure DB access (the code uses connect_V89DB() defaults in utils/sql_cmd.py). Update credentials there or wrap via environment vars.

  3. Create DB tables:

  4. Add a user with the CLI:

    python user_management.py

    This uses [user_management.cli_menu] which calls [utils.login_utils.add_user].

Run the app

python server.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published