Prune detection rects and keep average