Bounding Boxes and Zones in CCTV AI, Explained

A bounding box in CCTV AI is a rectangle that marks the estimated position of a detected object, such as a person or vehicle, within a camera image. A detection zone is a defined area of that image where specific monitoring rules apply. Together, they help turn ordinary camera images into relevant security alerts rather than treating every visible object as an event that requires attention.

What is a bounding box in CCTV?

When an AI model analyses a CCTV image, it looks for visual patterns associated with recognised object categories. If it detects an object, it can represent its estimated location using a rectangular outline known as a bounding box.

The rectangle surrounds the visible object as closely as the model can estimate. A person standing near a doorway might have a tall, narrow box around their body, while a parked car might have a wider box around its visible outline.

What does the label on a bounding box mean?

A label identifies the object category assigned by the AI model. Common examples include person, vehicle and bag.

The label describes what the model estimates the object to be. It does not explain why the object is there, whether it belongs to someone or whether its presence is permitted.

For example, a person label near a warehouse entrance does not establish that the person is an employee or an unauthorised visitor. Additional monitoring rules and human review provide the context needed to interpret the detection.

For a broader explanation of this process, read what AI video analytics is.

Is a bounding box always an exact outline?

No. A bounding box is an estimated rectangle, not a precise outline of every visible part of an object. It may include background space around a person or vehicle.

Boxes can also change in size or position as objects move, become partially hidden or appear under different lighting conditions. A person behind a counter, for instance, may have a box surrounding only the visible portion of their body.

This matters when designing detection zones because the boundaries of an estimated box do not necessarily correspond exactly to the physical space occupied by the object.

What is a detection zone in CCTV?

A CCTV detection zone is a selected region within a camera's field of view. It tells the analytics system where a particular monitoring rule should apply.

Zones are commonly drawn as polygons, which are shapes made by connecting several points. Unlike a rectangular bounding box, a polygon can follow the irregular outline of a driveway, doorway, loading area or restricted section of a building.

A zone generally stays in a fixed position within the camera image until someone changes its configuration. A bounding box, by contrast, is generated from the objects visible in an individual analysed image.

FeatureBounding boxDetection zone
PurposeLocate a detected objectDefine an area to monitor
ShapeRectangleUsually a polygon
PositionDepends on the objectDefined by the operator
MeaningEstimated object locationSpatial condition for a rule

Why use zones instead of monitoring the entire image?

Not every object visible to a security camera is relevant to the business. A camera overlooking a warehouse gate might also capture a public pavement, neighbouring property and passing traffic.

Without spatial filtering, detections from these areas could create unnecessary notifications. A zone allows the operator to focus a monitoring rule on the gate or private access road while excluding unrelated parts of the scene.

How bounding boxes and zones create CCTV alerts

A detection alone does not necessarily require an alert. The system needs a rule describing which object categories, locations and other supported conditions are relevant.

A typical zone monitoring process works like this:

  1. The system receives an image from a security camera.
  2. An AI model analyses the image and estimates object categories and locations.
  3. The analytics logic checks whether a relevant object meets the configured spatial condition.
  4. Applicable conditions, such as an active monitoring schedule, are evaluated.
  5. An alert is generated when the configured event conditions are satisfied.

The exact method used to determine whether an object is inside a zone varies between analytics systems. Some use bounding box overlap, while others evaluate a reference point associated with the object. Understanding the method used by your system helps when testing zone boundaries.

InsightCam adds AI video analytics to compatible existing security cameras, using RTSP, ONVIF through a compatible connection, or HTTP snapshots. Businesses can use configured monitoring areas and alerts without needing to replace every camera with dedicated AI hardware.

Example: A person in a restricted zone after hours

Consider a camera overlooking a staff entrance and a public walkway. People walking along the public area during the evening are not necessarily relevant to the business.

An operator can define a restricted zone covering the staff entrance and configure person detection during selected hours. If a person is detected within the monitored area while the rule is active, the system can generate an alert for review.

Example: A vehicle in a no-parking area

A business may want to keep an access lane or emergency entrance clear of vehicles. A polygon can cover the area that needs to remain unobstructed while excluding the adjacent road.

Vehicle presence within that zone can trigger an alert when the configured conditions are met. However, a vehicle passing through the area might also be detected, so presence alone does not prove that it is parked or that a parking violation has occurred.

Where the operational requirement depends on duration or movement history, verify that the analytics system supports those specific conditions before relying on the alert.

Common mistakes when drawing CCTV detection zones

Drawing a zone that is too large

Covering the entire camera view can include public roads, pavements and other irrelevant areas. This often defeats the purpose of defining a zone.

Draw the polygon around the actual area of interest and test whether normal activity outside it remains excluded from the rule.

Ignoring camera perspective

A physical area that is rectangular on the ground may appear as a trapezoid in the camera image. Draw the zone according to the visible boundaries in the image rather than the shape shown on a building floor plan.

See the camera positioning guide for AI detection for practical considerations when choosing a suitable camera view.

Placing boundaries too close to normal traffic

A pedestrian walking beside a restricted area may have a bounding box that overlaps its edge. Depending on the spatial rule, this could trigger an unwanted alert.

Leave a practical separation from unrelated traffic where possible, without excluding important access points. Test objects approaching the boundary from both directions.

Forgetting to update zones after moving a camera

A polygon is tied to the camera image. Adjusting the camera angle, zoom or orientation can change which physical area the polygon represents.

Review and redraw zones whenever the camera view changes. Also check them after maintenance or accidental movement.

How to test and improve your detection zones

Start with one camera, one clear monitoring area and one relevant object category. Test normal activity outside the zone, expected activity inside it and objects close to its boundaries.

Repeat these checks under different lighting conditions and during typical operating hours. Review both unwanted alerts and relevant events that were not detected. A correctly drawn polygon cannot compensate for an object that is too small, obscured or poorly illuminated for reliable detection.

Adjust the camera view, polygon or available monitoring conditions based on the results. For additional practical advice, see how to reduce false alarms from security cameras.

Frequently asked questions

Does my CCTV camera need built-in AI to display bounding boxes?

No. An external analytics system can generate bounding boxes from images received from a compatible existing security camera. The camera itself does not need to perform object detection.

Can a CCTV detection zone have an irregular shape?

Yes, polygon zones can follow irregular boundaries within a camera image. This makes them useful for driveways, restricted entrances and other areas that are not rectangular in the camera view.

Can multiple objects be detected inside the same zone?

Yes, an AI model can detect multiple visible objects within a single image. Whether those detections generate individual or combined alerts depends on the configured analytics rules.

Will a detection zone eliminate all false alarms?

No. Zones help exclude irrelevant areas, but image quality, object classification errors and boundary conditions can still affect alerts. Regular testing and configuration adjustments remain important.

Can I add detection zones to cameras I already own?

Yes, compatible cameras can be connected to InsightCam for AI video analytics without replacing the existing hardware. Check that the camera provides a supported RTSP, ONVIF or HTTP snapshot connection and a suitable view of the area you want to monitor.

Add your first camera