Change filter to minSize and brought up-to-date with master

Sorry new branch to avoid git pull push errors. Branch updateEvalDetection can be deleted in favor of this one
You should use a reference variable for `allDetections[key]` so you don't have to keep indexing into it.