Donation boxes are widely used in mosques and other places of worship to collect funds for social and religious activities. Their accessible locations expose them to theft, while manual surveillance depends on personnel and cannot always be maintained continuously. This study presents a computer vision system for donation box security monitoring that deploys You Only Look Once version 8 (YOLOv8) on a Raspberry Pi 4. A webcam captures images for real-time detection of people and donation boxes. The system assigns four security categories, Safe, Suspicious, Highly Suspicious, and Danger, according to object presence, proximity, and duration. Suspicious activity triggers Telegram notifications accompanied by captured images. The model was trained for 55 epochs using an input image size of 640 × 640 pixels. The reported arithmetic means across the two classes were 70.5% for precision, 84.4% for recall, and 75.7% for the F1 score. System testing demonstrated detection of the defined security conditions and successful delivery of notifications. The implementation supports the feasibility of automated donation box monitoring and early warnings of potential theft under the tested conditions.
Copyrights © 2026