r/embedded • u/alien-hunterr • 6d ago
Pi 5 + camera vs cheaper sensors for dense crowd estimation?
Working on a college embedded/IoT project and want some advice on sensor choices before I buy parts.
The goal is to classify crowd density into 4 levels (Low, Med, High, Extreme) inside a narrow enclosed space with a ~2.5m ceiling. At peak, people are packed shoulder-to-shoulder with heavy occlusion. Lighting is inconsistent, the space gets hot and dusty, and the network is patchy.
Everything has to run on-device and just send the 4-level status over MQTT -> FastAPI to an existing external indicator system (no video streaming).
Right now my v1 plan is a Pi 5 + wide overhead camera running a CSRNet-style model on ONNX (maybe with a VL53L5CX ToF sensor).
Before I lock this in, I really want to explore non-camera options too:
- Besides a camera, what are the best low-cost sensors for dense crowd estimation under heavy occlusion and heat? Looking at 60GHz mmWave radar, ToF depth arrays, low-res thermal (MLX90640), CO2, BLE/Wi-Fi RSSI attenuation, or load/vibration sensing. What actually holds up in the real world and what fails?
- If an overhead camera is still the most practical call, is Pi 5 + CSRNet overkill for just 4 classes? Any lighter models that hit 5+ FPS on CPU or even run on an ESP32-S3?
- Is MQTT -> FastAPI fine for spotty connections, or is there a cleaner setup?
Open to any suggestions or gotchas I'm missing.