HarshadJha/CrowdSafe_ — reverse-engineered prompt
Reverse engineered prompt
Build me a CrowdSafe app that lets a control room monitor a live crowd from a CCTV video, uploaded video, or phone camera stream. It should show the video with detected people highlighted, keep a live people count, split the view into left, center, and right areas, and show which areas are getting crowded.
I want it to warn staff when the crowd becomes too dense or suddenly increases, with a simple incident panel where they can create, acknowledge, resolve, or escalate incidents. Add a heatmap on top of the video so dense spots are easy to see. Send email alerts through Gmail SMTP, and push the latest status to Firebase so the data can be viewed in real time elsewhere.
Use Python with a Streamlit dashboard and YOLOv8 for person detection. Include clear setup for environment variables, Firebase credentials, email settings, a sample local video path, logs, and a simple run command. Look up current docs online if you need to.
Want more depth? Deep Reverse