RedcherryDOCUMENTATION
Accueil docs

Motion Detection types (Frame based vs Experimental)

Overview

Redcherry provides three motion detection algorithms to suit different surveillance environments and requirements. Each algorithm offers different levels of accuracy, CPU usage, and configuration options.

Motion Detection Algorithms

🟢 DEFAULT (Original Motion Detection)

Best for: Simple, stable environments with consistent lighting and limited CPU resources.

Characteristics:

How it works: Uses a single reference frame that slowly adapts to scene changes, comparing each new frame against this background reference.

🔵 EXPERIMENTAL (Basic Motion Detection)

Best for: Simple, stable environments with consistent lighting when you need quick response to movement.

Characteristics:

Available Controls:

🟡 FRAME BASED (Advanced Motion Detection)

Best for: Environments with changing lighting, background motion (trees, shadows, bugs), or when motion detection accuracy is critical.

Characteristics:

Available Controls:

Configuration Parameters

Frame Downscale Factor

Purpose: Reduces frame resolution before motion analysis to improve performance.

Options: 0.125, 0.25, 0.5, 1.0

How it works: A value of 0.5 means the frame is scaled down to 50% of original size before processing.

Impact:

Recommendation: Start with 0.5 for most cameras. Use 0.25 for 4K cameras or systems with limited CPU.

Miniminal Motion Area %

Purpose: Sets the minimum percentage of the frame that must show motion to trigger detection.

Range: 1-100%

How it works: The system calculates what percentage of the total frame area contains motion. Only triggers if motion covers at least this percentage.

Practical Examples:

Recommendation: Start with 5-15% for most surveillance scenarios.

Maximum Motion Area %

Purpose: Sets the maximum percentage of frame motion before ignoring it as “too much motion.”

Range: 1-100%

How it works: If motion covers more than this percentage, it’s considered noise (camera shake, lighting changes) and ignored.

Practical Examples:

Recommendation: Set to 70-90% for most applications.

Miniminal Motion Frames (FRAME BASED only)

Purpose: Sets how many consecutive frames must show motion before triggering an event.

Range: 1-255

How it works: Uses a temporal buffer to track motion across multiple frames. Only triggers when motion is detected in at least this many frames within the buffer.

Impact:

Recommendation: Start with 10-15 frames for most environments.

Maximum Motion Frames (FRAME BASED only)

Purpose: Sets the size of the frame buffer used for temporal analysis.

Range: 1-255

How it works: This is the “ring buffer” size that stores the motion history of recent frames for temporal analysis.

Impact:

Recommendation: Set to 20-30 frames for most applications.

Reference Frame Blending Ratio (FRAME BASED only)

Purpose: Controls how quickly the reference frame adapts to changes in the scene.

Range: 2-100

How it works: The reference frame is continuously updated by blending new frames with the existing reference. This ratio determines the blend percentage.

Impact:

Recommendation: Start with 10-20 for most environments.

Motion Sensitivity Grid

The motion sensitivity grid provides preset sensitivity levels that affect the motion detection thresholds:

Note: These sensitivity levels are about motion detection threshold sensitivity, not object size. High sensitivity detects smaller movements, while low sensitivity only detects larger movements.

Configuration Recommendations

For Indoor Surveillance

For Outdoor Surveillance

For High-Traffic Areas

For Low-Light Environments

Troubleshooting

Too Many False Positives

Missing Important Events

High CPU Usage

Poor Performance in Changing Lighting

Debug Features

Enable Debugging Snapshots

When enabled, the system saves motion detection debug images to help troubleshoot configuration issues. These images show:

Location: Debug images are typically saved to /tmp/ or the system’s temporary directory.

Best Practices

  1. Start with defaults and adjust based on your specific environment
  2. Test thoroughly in your actual surveillance environment
  3. Monitor CPU usage and adjust Frame Downscale Factor if needed
  4. Use FRAME BASED for environments with changing lighting or background motion
  5. Enable debug snapshots temporarily when fine-tuning settings
  6. Consider camera placement - avoid pointing at moving objects like trees or flags
  7. Regular maintenance - review and adjust settings as environmental conditions change