fix 2nd stage object output, set min threshold for white dynamically