Results 5 issues of alpha

please tell me how to solve this question? I need to check where ?

替代opencv的resize跟copymakeborder

比如1080P的resize到640*640,上下需要补280,这种方式是上边补了280,不是上下各140?这样对推理有影响吧