Evo egomotion dynamic analysis

From OpenLAIR/OpenSkill · View interactive version

Evo egomotion dynamic analysis is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. For consecutive sampled frame pairs, computes sparse optical flow, estimates camera egomotion via partial affine transform, and detects dynamic objects via homography-based motion compensation and frame differencing.

How to use this skill

Skill file

evo-egomotion-dynamic-analysis

Analyzes consecutive grayscale frame pairs to classify camera motion and detect dynamic objects.

Key Functions

Returns (labels, good_prev, good_curr) where labels is a list of motion strings.

Returns boolean mask (H,W) where True = dynamic pixel.

Processes all consecutive pairs. Returns (motion_labels, dynamic_masks).

motion_labels: list of (sample_idx_prev, sample_idx_curr, labels_list)

dynamic_masks: list of boolean 2D arrays

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-egomotion-dynamic-analysis/scripts')
from utils import analyze_frame_pairs

motion_labels, dynamic_masks = analyze_frame_pairs(grayscale_frames)

Motion Classification Rules

Pipeline

  1. Shi-Tomasi corners (goodFeaturesToTrack, maxCorners=300)
  2. Lucas-Kanade optical flow (calcOpticalFlowPyrLK)
  3. estimateAffinePartial2D with RANSAC for egomotion
  4. findHomography with RANSAC for motion compensation
  5. warpPerspective + absdiff + threshold(25) for dynamic mask
  6. Morphological open(3x3) + close(7x7) cleanup
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.