在for循环中,一张一张地绘制图片 matplot绘制RGB图片,fig, ax = plt.subplots()ax.imshow(tmp)fig.show()
在for循环中,一张一张地绘制图片 matplot绘制RGB图片
# copy 背景 tmp = self.somaBackground.copy() tmp = cv.polylines(tmp, tmpline2, 2, (255, 0, 0), 1) # tmp = tmp.swapaxes(0, 1) fig, ax = plt.subplots() ax.imshow(tmp) fig.show()