计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
segmentation-tracking【效率与协作】Guides SimpleCV color, difference, running, MOG segmentation, motion, and tracking workflows across images or frames.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task needs foreground/background masks, segmentation state, frame differencing, or object tracking across frames.
Read references/workflows.md for segmentation model setup, track routing, and finite static-image recipes.
Read references/troubleshooting.md for empty masks, unstable models, tracker availability, and hardware/display traps.
Read the root ../../references/api-reference.md for verified constructor and method signatures.
Run scripts/segmentation_recipe.py --help for a finite static-image segmentation helper.
ColorSegmentation, DiffSegmentation, RunningSegmentation, and MOGSegmentation.Image.findMotion(...) and Image.track(...).Track, TrackSet, CAMShiftTrack, LKTrack, SURFTrack, and MFTrack concepts.../image-processing-basics/SKILL.md.../feature-detection/SKILL.md.../acquisition-display-shell/SKILL.md.../machine-learning-legacy/SKILL.md.Image frames or a static image plus a color model.ColorSegmentation for learned foreground/background colors.DiffSegmentation for frame-to-frame differences.RunningSegmentation for running-average background subtraction.MOGSegmentation for mixture-of-Gaussians background modeling.addImage(...) for each frame.isReady() and isError() before reading results.getSegmentedImage(...), getRawImage(), or getSegmentedBlobs() depending on whether the user needs a mask, raw diff, or blob objects.Use tracking only after the input source and bounding box are clear:
track_set = img.track(method='CAMShift', ts=track_set, img=previous_img, bb=bounding_box)
The old source examples often require a live camera and display loop. For automation, convert them into finite frame sequences or use VirtualCamera from ../acquisition-display-shell/.
Camera.python sub-skills/segmentation-tracking/scripts/segmentation_recipe.py --recipe diff --output-dir /tmp/simplecv-segmentation
python sub-skills/segmentation-tracking/scripts/segmentation_recipe.py --recipe color --output-dir /tmp/simplecv-segmentation
Good final candidates include test_segmentation_diff, test_segmentation_running, test_segmentation_color, movement-related native tests, and static image-pair segmentation checks. Live tracking demos remain optional/hardware-gated unless explicitly requested.