Motion Masks vs. Analytics Masks: How They Work Together

If you've ever excluded an area in your camera's motion settings and then been surprised to see a detection in that very area, you've run into one of the most common points of confusion in video analytics. This guide explains what each mask does, why they behave independently, and how to set them up so detection is both reliable and efficient.

The short version: the camera's Motion Mask decides where movement can start a detection. The 3dEYE Analytics Mask decides where objects can be recognized once a detection has started. They are two separate settings, and excluding an area from one does not exclude it from the other.

1. How Detection Works: The Big Picture

Detection happens in two stages. First the camera notices movement. Then 3dEYE analyzes the video to work out what moved.

1. Camera detects movement
Only inside the Motion Mask
→ 2. Motion event is sent
Shown in dark blue on the timeline
→ 3. 3dEYE analyzes the video
Looks inside the Analytics Mask
→ 4. Analytics alarm
If a Human, Vehicle, Luggage or other enabled detection is found

In other words, 3dEYE runs its analytics after it receives a Motion event from the camera. No Motion event, no analytics check.

2. Two Masks, Two Jobs

Motion Mask Analytics Mask
Where it's set On the camera, or through the 3dEYE interface and applied to the camera where this is supported In 3dEYE
What it controls Which areas of the image are monitored for movement, and so which areas can trigger a Motion event Which areas of the image are evaluated by the analytics detectors (Human, Vehicle, Luggage and other supported types)
Question it answers "Where can movement start a check?" "Where can objects be recognized?"

The key point: the two masks operate independently, but they work together as part of the overall detection process.

3. The Surprise: Detections Outside the Motion Mask

When 3dEYE receives a Motion event, it analyzes the video according to the Analytics Mask, regardless of where the original movement happened. This can lead to results that look unexpected, especially when the camera has a restricted Motion Mask but the Analytics Mask covers the entire frame. This often happens when users have simply selected a billing plan with analytics but skipped the step of creating the analytical mask. In this case platform applies default analytical mask which looks for people and cars in the whole scene.

A Practical Example

  1. Something moves inside the Motion Mask. Swaying leaves, moving shadows or other environmental movement are enough. Basic camera motion detection doesn't tell people, vehicles and other movement apart.
  2. The camera sends a Motion event to 3dEYE.
  3. 3dEYE analyzes the video across the whole Analytics Mask. If the Analytics Mask covers the entire frame, that means the entire image.
  4. A person/car moving elsewhere is detected, even in an area you deliberately excluded from the camera's Motion Mask, because they are inside the Analytics Mask.

Illustration only, not an actual camera view.

This is expected behavior. It is consistent with how 3dEYE analytics are designed. Excluding an area from the camera's Motion Mask does not automatically exclude that area from analytics detection. To keep an area out of analytics, it must be left out of the Analytics Mask.

4. Recommended Setup: Configure Both Masks

For the best performance and efficiency, configure both the camera's Motion Mask and the 3dEYE Analytics Mask, rather than relying on just one.

The ideal arrangement is a camera motion area that is slightly larger than the Analytics Mask. Movement inside and just around your area of interest can then trigger analytics, while the Analytics Mask decides where relevant objects can raise alarms. 
IMPORTANT NOTICE: for an object to be considered important it enough for a single pixel from the object's bounding box to be inside of the analytical mask thus making the analytical mask slightly smaller then the intended protected perimeter is sometimes needed to exclude unwanted objects.

Illustration only, not an actual camera view.

Guidelines for Each Mask

Mask What to include What to leave out
Motion Mask The main area of interest, plus a small surrounding margin where appropriate Obvious sources of unnecessary movement, such as busy roads, moving vegetation, or other areas that aren't relevant to your monitoring
Analytics Mask The specific areas where you want Human, Vehicle or other enabled detections Areas where you don't want analytics alarms
Alignment Make sure the motion area fully covers the Analytics Mask, ideally extending a little beyond it Don't let the Analytics Mask reach outside the motion area, or relevant activity may be missed

5. An Alternative: Full-Frame Motion Detection

You can also set the camera's motion area to cover the entire frame and control detection using only the Analytics Mask. With this setup, movement anywhere in the image can trigger analytics processing, but only objects inside the Analytics Mask can generate analytics alarms.

Illustration only, not an actual camera view.

Pros Cons
Technically valid, and can simplify your initial setup Not necessarily the most efficient option, 
Movement anywhere can start an analytics check Generates extra Motion events from areas that aren't relevant,  leading to continuous motion event making motion detection search pointless

For this reason, properly configured Motion and Analytics Masks are generally the preferred approach, especially for cameras with complex or busy views.

6. Comparing the Three Setups

Setup What can start an analytics check Where alarms can come from Efficiency
Restricted Motion Mask + full-frame Analytics Mask Movement inside the Motion Mask Anywhere in the image, even outside the Motion Mask Can give unexpected results
Motion Mask slightly larger than Analytics Mask (recommended) Movement in and just around the area of interest Only inside the Analytics Mask Best
Full-frame Motion Mask + restricted Analytics Mask Movement anywhere Only inside the Analytics Mask Lower, with extra unnecessary checks

Quick Setup Checklist

  1. Decide which area you actually want to monitor (your area of interest).
  2. Set the Analytics Mask to cover only the areas where you want Human, Vehicle or other detections.
  3. Set the camera's Motion Mask to cover the Analytics Mask, extending slightly beyond it.
  4. Leave busy roads, moving vegetation and other irrelevant movement out of the Motion Mask.
  5. Check that the motion area fully covers the Analytics Mask, with no gaps at the edges.
  6. Run the camera for a while and review the events to confirm both masks behave as you expect, then adjust if needed.

Troubleshooting

What you see Likely cause What to do
A person or vehicle is detected in an area I excluded in the camera's motion settings The area is still inside the Analytics Mask. This is expected behavior. Reduce the Analytics Mask so it no longer covers that area.
Real activity in my area of interest isn't producing alarms The Motion Mask may not fully cover the Analytics Mask, so the movement never starts an analytics check Extend the Motion Mask so it covers the Analytics Mask, ideally with a small margin.
Lots of Motion events from trees, shadows or traffic The Motion Mask includes areas of unnecessary movement, or is set to full frame Exclude those areas from the Motion Mask.
Alarms for objects in places I don't care about The Analytics Mask is larger than the area of interest Tighten the Analytics Mask to the area you want to monitor.
Motion events but no analytics alarms Nothing recognizable was inside the Analytics Mask when the event happened Check that the Analytics Mask covers the area where people or vehicles actually appear.

If missed events or too many false events continue after your masks are set up, also review your camera's motion sensitivity and the analytics Confidence value. Our guide on motion detection and confidence scores covers both.

Glossary

Term Meaning
Motion event A signal from the camera that movement was detected; shown in dark blue on the timeline
Motion Mask The area of the image the camera monitors for movement
Analytics Mask The area of the image in which 3dEYE's analytics detectors look for objects
Detector An analytics type, such as Human, Vehicle or Luggage
Analytics alarm An alert raised when an enabled detector finds an object inside the Analytics Mask
Full-frame motion detection A camera setup where the whole image is monitored for movement

Not sure how your masks are set up, or seeing detections you didn't expect? Contact 3dEYE Support with the camera name and a screenshot of both masks, and we'll help you tune them.

Tags
Fire and smoke detection modules
How to optimize the camera image parameters to improve the object detection performance