U See — Portfolio Project by Muhammad Daffa Ashdaqfillah
A macOS prototype that turns footage from multiple cameras into shared floor-plan trajectories, with cross-camera person tracking and optional privacy rendering.

Published on November 29, 2026
Project Details










U See turns recordings from several fixed cameras into movement paths on a shared floor plan. I worked on the computer vision backend, from person detection and appearance embeddings to cross-camera association and pipeline profiling. The macOS client handles clip selection, time alignment, and calibration, then passes the analysis job to a local Python service.
Demo

Choosing what runs per camera
I worked with a tracking-by-detection pipeline. A YOLO model detects people, BoT-SORT links detections within each view, and OSNet supplies a compact appearance vector from each sampled person crop. Each camera's tracker has its own ID namespace.
We compared YOLO11s with YOLO26s on the same CAVIAR test split. YOLO11s reached 0.915 AP50 at 6.16 ms/image, compared with 0.894 AP50 at 9.28 ms/image for YOLO26s. We then checked whether adapting YOLO11s to indoor camera datasets improved transfer to WiseNET. All three detector variants saw the same 9,213 sampled images and 6,769 annotated person boxes. Empty annotated frames were included.
| WiseNET detector | AP50 | F1 at 0.25 confidence | False positives | Mean inference time |
|---|---|---|---|---|
| YOLO11s base | 0.814 | 0.797 | 1,269 | 23.28 ms |
| YOLO11s fine-tuned on CAVIAR | 0.206 | 0.146 | 14,619 | 15.16 ms |
| YOLO11s fine-tuned on CrowdHuman + WiderPerson | 0.553 | 0.501 | 3,700 | 18.69 ms |
The base detector stayed the default. The fixed-detector tracker comparison held the input detections constant. BoT-SORT gave up a little tracking accuracy to StrongSORT while processing more than twice as many frames per second.
| Local tracker | HOTA | FPS |
|---|---|---|
| StrongSORT | 0.325 | 3.36 |
| BoT-SORT | 0.314 | 8.47 |
| BoT-SORT + ReID | 0.303 | 8.36 |
| ByteTrack | 0.301 | 9.46 |
| DeepOCSORT | 0.280 | 2.67 |
| OC-SORT | 0.266 | 7.61 |
The separate WILDTRACK appearance-model experiment informed the choice of OSNet X0.25 for the runtime. OSNet AIN X1.0 with MSMT17 weights scored 47.37 IDF1 at 7.60 FPS. The smaller model scored 44.55 IDF1 at 11.72 FPS in that test. Those numbers describe the appearance-model experiment on a separate fixture.
From two camera views to one trajectory
Calibration matches image points to known locations on the floor plan. A homography maps the bottom center of a tracked box into floor coordinates, treating that point as the person's contact with the ground. Reprojection errors and coverage help flag weak calibrations. The model assumes the observations lie on the same plane, so an inaccurate calibration can displace a whole path.
Each tracklet keeps up to 12 L2-normalized OSNet X0.25 descriptors. Sampling keeps the highest-confidence crop in each one-second bin. When both tracks have at least three descriptors, matching takes the median of the three highest pairwise cosine similarities, so a single unusually similar crop cannot decide the appearance score.
We first stitch plausible fragments from the same camera using time gap, distance, speed, and appearance. For simultaneous tracks across cameras, the backend interpolates floor positions at shared timestamps and checks both median and 95th-percentile separation. Candidate pairs must pass spatial gates informed by calibration uncertainty as well as an appearance gate. The overlap score weights appearance at 65% and spatial consistency at 35%. Hungarian assignment selects one-to-one overlap matches. For a handoff between non-overlapping views, the matcher uses time gap, travel speed, and appearance agreement between track endpoints.
Union-Find groups the accepted links. Before merging groups, the code rejects combinations that would give one track incompatible simultaneous observations, including two simultaneous tracks from the same camera. The resulting trajectory weights observations by tracking confidence and calibration uncertainty. Each ID describes an association within the analysis job.

Reducing wait time without changing the output
I removed a redundant frame decode between detection and tracking, changed the trajectory renderer to add only new path segments, and streamed frames directly to H.264. Privacy segmentation processes small batches and produces a mask for each frame. The camera cache stores boxes, timing, track data, and appearance vectors. A recalibration can reuse detection and tracking, with projection, association, and rendering recomputed for the new job.
The runtime check used two four-second clips, 1,920-pixel detector input, 5 FPS processing, and CPU ReID. All runs in this table completed video rendering.
| End-to-end run | Wall-clock time | Camera cache hits |
|---|---|---|
| Previous implementation | 15.19 s | 0 |
| Optimized comparison | 11.99 s | 0 |
| Repeat using the camera cache | 4.72 s | 2 |
| Final uncached verification | 11.75 s | 0 |
The optimized and cached comparisons preserved the same paths and summary of 10 tracks and 198 observations. A separate reduced-resolution and reduced-frame-rate trial changed the output to 11 tracks and 128 observations, so the default stayed at the original settings. The short runs check runtime and output consistency on that fixture. Tracking accuracy through long occlusions and handoffs was outside their scope.