pupil_thres up to 255