Have you ever felt anxious leaving your home, shop, or property unattended? What if someone’s lurking around your property? What if someone’s trying the door or peeking through windows?Sure — you could install IP cameras, but who has the time to watch them 24/7?Good news — you don’t have to anymore. With VideoDB RTStream, you can build a smart, AI-powered property surveillance system that actively monitors live video streams, detects suspicious activity, and immediately sends alerts for escalating security breaches — all without human supervision.
Step 2: Index Scenes with Multi-Level Threat Analysis
Create a scene index that monitors for all threat levels:
property_scene_index = property_stream.index_visuals( batch_config={ "type": "time", "value": 5, "frame_count": 2, }, prompt="""Monitor the area around the house closely. Detect and classify human presence around the house as either loitering, interacting with the door/lock, or entering the house; otherwise, consider the area safe.""", name="Property_Security_Index",)
# Level 1: Loitering (Low Threat)loitering_event_id = conn.create_event( event_prompt="Detect if a person is loitering near the house perimeter.", label="loitering_near_property",)# Level 2: Door Interaction (Medium Threat)intrusion_attempt_event_id = conn.create_event( event_prompt="Detect if a person is interacting with the door or visibly checking the lock.", label="intrusion_attempt",)# Level 3: Property Entry (Critical Threat)entry_event_id = conn.create_event( event_prompt="Detect if a person enters the house or crosses the property boundary unlawfully.", label="property_entry",)
webhook_url = "https://your-webhook-url.com"# All three alerts routed to the same webhook with different priority labelsloitering_alert_id = property_scene_index.create_alert(loitering_event_id, callback_url=webhook_url)intrusion_alert_id = property_scene_index.create_alert(intrusion_attempt_event_id, callback_url=webhook_url)entry_alert_id = property_scene_index.create_alert(entry_event_id, callback_url=webhook_url)
{ "event_id": "event-entry-breach-001", "label": "property_entry", "confidence": 0.96, "explanation": "Unauthorized entry detected! Person has crossed the property boundary and is entering the house.", "timestamp": "2025-05-27T20:35:42.123456+00:00", "start_time": "2025-05-27T20:35:42.000000+05:30", "end_time": "2025-05-27T20:35:47.000000+05:30", "stream_url": "https://rt.stream.videodb.io/manifests/rts-019711a0-0fde-7911-b282-25bc0b4ecf65/1748445342000000-1748445347000000.m3u8"}