opencv官方文档上写的,https://docs.opencv.org/master/dc/d2e/tutorial_py_image_display.html Color image loaded by OpenCV is in BGR mode. But Matplotlib displays in RGB mode. So color images will not be displayed correctly in Matplotlib if image is read with O
Difference between plt.draw() and plt.show() in matplotlib down voteaccepted plt.show() will display the current figure that you are working on. plt.draw() will re-draw the figure. This allows you to work in interactive mode and, should you have chan
import torch from models.models import Model import cv2 from PIL import Image import numpy as np from matplotlib.animation import FFMpegWriter import time import matplotlib.pyplot as plt from torchvision.transforms import functional exp_name = './xxx