you could use a pretrained object detection model with some lightweight logic built around it (e.g. send you a slack notification when a human object is detected in at least 5 consecutive frames between these hours) but you might also want to find-tune a pretrained model to work well given your camera's angle, lighting conditions, etc.