ChethankrishnaRao/Offline-AI-CCTV-System-for-Shops-Offices ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple offline AI CCTV app for shops or offices that can watch a webcam, a video file, or an IP camera stream and draw boxes around common things it sees like people, cars, dogs, cats, and other everyday objects.
I want it to use a YOLOv8 model, show the label and confidence for each detection, and keep running in real time with an FPS counter so I can tell how fast it is working. Make it easy to change the confidence threshold and the video source from the command line, and let me press q to stop the live feed.
It should work locally after the model is downloaded once, so it can keep running offline. Please include basic error handling for missing model files, bad camera input, or failed video loading, and keep the code clean and separated into a main script and small helper files for model loading and drawing boxes. If you need to check the latest setup details, look up the current docs online.