A practical walkthrough of the augmentation and calibration steps that fixed our night-time detection rate.
Daytime recall was fine; after dusk it collapsed. Sensor noise and low contrast pushed detections below threshold.
Scale down confidence when the scene is dark, then re-calibrate the threshold:
# adjust detection confidence at night
def adjust_confidence(pred, lux):
if lux < LOW_LIGHT_THRESHOLD:
pred.conf *= NIGHT_SCALE_FACTOR
return predCode language: Python (python)FANAP Advanced Technologies Laboratory