Při Použití tohoto kódu:
start_point = (centerXList[i] +16,centerYList[i]-14)
end_point = (centerXList[i]+50,centerYList[i]+24)
color=(255,0,0)
x1=cv2.rectangle(x1,start_point,end_point,color)
imshow(x1)
plt.show()
Výsledky imshow jsou:
https://i.stack.imgur.com/s1NeC.png
Ale při ukládání obrazu pomocí: save_img("./Předpověděl Images/abc.jpeg", x1)
Výsledek je:
https://drive.google.com/file/d/1A4q1buJJk9tBWfstQccgETHe8LDEOtxX/view?usp=sharing
Chci uložit obrázek stejný jako zobrazen imshow. Jak to udělat, že?
Díky předem