Skip to content

Use OccupyAI to monitor and manage university study room occupancy using computer vision and cloud technologies. This project combines Raspberry Pi, FastAPI, Docker, and Supabase for real-time data collection, secure storage, and easy deployment.

Notifications You must be signed in to change notification settings

CarlosG-05/OccupyAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

72 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“πŸ“Š University Study Room Occupancy Tracker πŸš€

Welcome to OccupyAI, the ultimate study room monitoring system!
Track, manage, and visualize university study room occupancy with computer vision, FastAPI, Docker, and Supabase.

✨ Features

  • πŸ•΅οΈβ€β™‚οΈ Raspberry Pi Client: Detects room occupancy and sends data to the server.
  • ⚑ FastAPI Server: Receives, validates, and stores occupancy data.
  • πŸ—„οΈ Supabase Database: Securely stores rooms, logs, and user accounts.
  • 🐳 Dockerized Deployment: Easy setup and scaling with Docker Compose.
  • πŸ”’ Environment Security: Secrets managed via .env (never committed!).
  • πŸ‘₯ User Management: Authenticated access for students and admins.

πŸ› οΈ Technologies

  • 🐍 Python (Computer Vision, FastAPI)
  • 🐳 Docker & Docker Compose
  • 🦸 Supabase (PostgreSQL, Auth)
  • πŸ§ͺ PowerShell/Python scripts for testing

🚦 Setup & Usage

  1. πŸ—οΈ Set up Supabase and create tables (study_rooms, users, etc.).
  2. πŸ“ Fill in your .env file with Supabase credentials.
  3. 🐳 Build and run the FastAPI server:
    docker compose up --build
  4. πŸ€– Use the Pi client or test scripts to send occupancy data.
  5. πŸ“Š View and manage data in Supabase.

πŸ” Security

  • 🚫 Never commit your .env or secrets!
  • πŸ›‘οΈ Enable Row Level Security (RLS) in Supabase for production.

🀝 Collaborators

  • Carlos Guerrero β€” Electrial Engineering, UCSD
  • Elijah Inamarga β€” Computer Science, SDSU
  • Ruth Maggay β€” Bio Engineering, UCSD

About

Use OccupyAI to monitor and manage university study room occupancy using computer vision and cloud technologies. This project combines Raspberry Pi, FastAPI, Docker, and Supabase for real-time data collection, secure storage, and easy deployment.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •