You Don't Need New Cameras to Catch a Thief in the Act
Most sites already have cameras. The usual gap is not a lack of lenses. It is that nobody can watch every stream, all day, without missing events that only show up later on the recorder. Replacing the estate with new "A
Most sites already have cameras. The usual gap is not a lack of lenses. It is that nobody can watch every stream, all day, without missing events that only show up later on the recorder.
Replacing the estate with new "AI cameras" is often unnecessary. If the cameras or the NVR can publish a live stream, you can treat analytics as another client on that stream: software that decodes frames, applies rules, and raises an alert when those rules match. The NVR can keep recording.
Get a standards-based stream first
RTSP is the usual transport. Many IP cameras and NVRs expose a URL per channel and per stream, often a main-stream path and a sub-stream path on port 554. You need a viewer account, and RTSP is sometimes disabled until you enable it in the recorder UI.
ONVIF sits above that. Profile S is the common baseline for live streaming and for retrieving the RTSP URI. Profile T adds newer codec and streaming features, including H.265, on devices that implement it. WS-Discovery works on a flat LAN; across VLANs you will usually add the device by IP and credentials. Analog cameras need an encoder, or an NVR that already digitises the coax inputs.
Do not port-forward cameras onto the public internet. Put cameras and the recorder on a dedicated VLAN, allow the analytics host — on-site or via a connector or VPN on that LAN — to pull streams, and keep management interfaces off the open web. If you cannot get a stream from a given camera, no analytics product will invent one.
Codec, sub-stream, bitrate, and keyframe interval
Most cameras offer at least two encoders: a main stream for recording and review, and a sub-stream for live view or analytics. Detection rarely needs 4K or a full 1080p 25 fps encode. Point analytics at the sub-stream when you can, and leave the main stream for the NVR so an operator can still open a high-quality clip after an alert. InsightCam's RTSP camera AI integration guide walks through RTSP URLs, authentication, and that main-stream versus sub-stream choice in more detail.
H.264 (AVC) and H.265 (HEVC) dominate. H.265 usually delivers a similar picture at a lower bitrate, but every hop that transcodes or inspects the video must actually decode it. If a box or VMS in the path is H.264-only, a cheaper H.265 stream is not a free win.
Bandwidth is arithmetic, not marketing. If each analytics stream is encoded at 2 Mbps, 16 cameras is about 32 Mbps of sustained ingest, before recording traffic or alert clips. For detection, a modest resolution at 8–15 fps is often enough to tell a person from a vehicle.
The keyframe interval (GOP length, or how often an IDR frame is sent) is easy to ignore. A long GOP saves bitrate, but a reconnect or a clip cut from a live encode has to wait for the next keyframe before the picture is decodable. A 1–2 second interval is a common compromise for analytics and for extracting a short alert clip.
Motion detection is not object detection
Pixel-change motion detection (the classic VMD most NVRs already have) flags any region whose luminance moved enough. Headlights, foliage, rain, or an IR illuminator kicking in can all look like motion. It is a poor sole trigger if you care about what entered the frame.
Object detection classifies regions (a person, a vehicle, a bag) and then your rules decide whether that class, in that place, at that time, is worth an alert. Set confidence thresholds per camera: too high and you miss objects at a distance or under IR; too low and you page someone for reflections. Debounce alerts as well. Without a cooldown or a "still present" merge, one walk-through becomes dozens of notifications.
Polygon zones beat full-frame rules in almost every busy picture. If a parked car in a legitimate bay looks the same as a car blocking a shutter, draw the rule only around the shutter. For loitering, require the same class to remain inside the zone for a dwell time you have actually chosen (tens of seconds, not milliseconds), and put the rule on a schedule so daytime lobby traffic does not use the same logic as a yard after close.
You do not need to identify a face to know that someone is in the yard at 02:00.
Night, IR, and the picture the encoder actually emits
A rule that works at noon will fail at night if you never looked at the night encode. IR-cut switching, IR wash, motion blur from a slow shutter, WDR fighting a doorway, and a dirty dome all change what the detector sees. Check a day frame and a night frame at the distance that matters, on the same stream the analytics will use. No amount of threshold tweaking will recover detail the encoder already discarded.
Edge versus cloud, in operational terms
A local (edge) stack keeps decode and inference on a machine that can reach the camera VLAN. Video does not have to leave the site. You size CPU, memory, and decode capacity for the number of streams. Recorders with built-in analytics, or local open-source tools such as Frigate, live in this category.
A cloud service is usually faster to stand up: you publish or proxy the streams, configure classes, zones, and schedules, and receive alerts without building a detection host. The trade-offs are uplink capacity (that 2 Mbps × N cameras sum matters immediately), a privacy review of what leaves the site and how long alert clips are kept, and a design that still does not require cameras to be reachable from the public internet.
If you want a cloud option that connects to the cameras you already have over standard video streams, InsightCam is built for that. It adds alerts for people, vehicles, unattended objects, fire and smoke, loitering and camera tampering, and it is meant to run alongside the NVR or VMS you already use, rather than replace it. I work on it. InsightCam adds AI alerts to the security cameras you already have. Add your first camera at https://insightcam.si
Cartoon thief vector by Graphix Studio on Vecteezy
Do not point every camera at the new layer on day one. Connect one or two streams, run them through a week of day and night, and count false alerts before you add the rest.
A short checklist
- Confirm an RTSP URI or an ONVIF path (Profile S or T) for each camera, on a private VLAN, with no public exposure.
- Point detection at a sub-stream in H.264 or H.265 sized for bitrate, resolution, frame rate, and a short keyframe interval; leave the main stream for recording.
- Prefer object classes over raw motion; set confidence, polygon zones, dwell time, schedules, and alert debounce per camera.
- Verify the same stream at night under IR, not only in daylight.
- Choose edge or cloud from where video is allowed to go and from the uplink maths, then test on one or two cameras first.
- Keep only the images you need for an alert, and only for as long as you need them.
You probably do not need new cameras. You need a decodable stream, a tight set of rules, and a week of honest testing.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.