To consistently label two specific individuals (Person A and B) in a real-time CPR application using YOLOv11, follow this structured approach:

Solution Overview

  1. Integrate a Tracking Algorithm (e.g., DeepSORT/SORT) to maintain persistent IDs across frames.
  2. Use Heuristics (e.g., spatial position, pose keypoints) to differentiate between Person A and B.
  3. Handle Edge Cases (occlusions, new people entering the frame) using tracking longevity and fallback logic.

Step-by-Step Implementation

1. Detection + Tracking Pipeline

2. Track ID Longevity

3. Select Primary Candidates (A and B)

4. Differentiate Person A vs. B