opencv cv2.resize will produce extra frame paddle unet model output extra frame solution

If the identified picture has a bug, there will be more borders. The solution is to
modify line 492 of D:\Anaconda3\Lib\site-packages\paddlex\cv\models\deeplabv3p.py to
change

pred = cv2.resize(pred, (w, h), cv2.INTER_NEAREST) 

Replace this line of code with the following code

    image = Image.fromarray(pred)
    image = image.resize

Guess you like

Origin blog.csdn.net/phker/article/details/112663200