Hygiene patterns for any OpenCV + dlib vision pipeline: camera index probing + macOS init quirks, warmup that verifies real frames, frame-skip policy for expensive inference.
96
93%
Does it follow best practices?
Impact
100%
1.36xAverage score across 6 eval scenarios
Passed
No known issues
No VideoCapture in subprocess workers
100%
100%
capture_to_disk pattern
100%
100%
Comment explains single-process camera constraint
100%
100%
No cap.set resolution on DJI Osmo
100%
100%
Face recognition skip = EXACTLY 3
0%
100%
Emotion classification skip = EXACTLY 10
0%
100%
Modulo counter gating (not time-based)
100%
100%
Emotion guarded by face presence
100%
100%
Different rates for face vs emotion
100%
100%
namedWindow + imshow + waitKey event-loop pump
0%
100%
1.0s warmup sleep (not 0.5s)
100%
100%
Frame mean threshold > 30
100%
100%
No cap.set resolution on DJI Osmo
100%
100%