r/computervision • u/TodayFar9846 • 27d ago
Help: Project Building a production CV system for restaurants (seat occupancy + table cleanliness): looking for architecture advice and feature ideas
Hi everyone,
I’m building a computer vision solution for restaurants and want to do it the right way (production-ready, not just a demo). I’d love your advice on two things.
Context
- Input: CCTV / IP cameras in a dining area (RTSP streams)
- Goal: help restaurant staff see in real time which tables are free, occupied, or need cleaning and etc.
- Output: a browser-based dashboard showing live table status and analytics
- Scale: [e.g. 1 restaurant, 4-8 cameras, 20-50 tables] (In the future, we will implement a hierarchy-based structure that allows a single owner to manage multiple resources from one centralized platform.)
- Hardware: [e.g. a single GPU server / Jetson / cloud / edge device]
Question 1: How would you solve seat/table occupancy detection in production?
My current thinking:
- Detect people with a model like YOLOv8/YOLO11 or RT-DETR, and also consider head detection for crowded or occluded scenes
- Define a polygon (ROI) for each table/seat zone and check overlap with person detections
- Use tracking (ByteTrack / BoT-SORT) so someone walking past a table isn’t counted as “occupied”
- Add temporal smoothing (e.g. a seat counts as occupied only after X seconds of presence)
- Use a distance/proximity check between person and table
What I’m unsure about:
- Is person detection + ROI overlap enough, or should I use pose estimation / head detection / segmentation instead?
- How do you handle occlusion (chairs, other people, tall objects) and cases where someone is standing near a table but not seated?
- How do you distinguish a seated customer from staff walking by?
- Best way to handle different camera angles and lighting without retraining per restaurant?
- Should I fine-tune on my own data? If so, how much data and what annotation approach worked for you?
- What does a good production pipeline look like: edge vs. cloud, DeepStream / TensorRT / ONNX, frame sampling rate, and how to keep latency and cost low?
- How do you monitor accuracy once it’s deployed (drift, false alarms)?
Question 2: Which features would you add?
Besides seat occupancy, I’m planning:
- Table clean/dirty detection (empty plates, glasses, food leftovers on the table)
- Table status states: free / occupied / needs cleaning / reserved
- Wait-time and table turnover analytics
- Queue and waiting-area people counting
- Heatmaps of busy zones
- Alerts to staff when a table needs cleaning or a customer has been waiting too long
What other features would be valuable for a restaurant owner? And of these, which would you prioritize for an MVP?
Privacy note: I plan to avoid face recognition and store only anonymous counts/status, not raw video. If you’ve dealt with GDPR/privacy concerns in similar deployments, I’d appreciate tips.
If you’ve built something similar or know good papers, repos, or datasets, please share. I’ll post an update with the features I finalize and credit the people whose suggestions helped.
Thanks in advance!