box_detection: moved magic consts into Parameters struct