158 KiB
158 KiB
import cv2 as cv
import matplotlib.pyplot as plt
import matplotlib
%matplotlib inline
image = cv.imread("C_test_own.png", cv.IMREAD_COLOR)
image = cv.cvtColor(image, cv.COLOR_BGR2RGB)
image = image[0:600, 0:600]
image = cv.cvtColor(image, cv.COLOR_RGB2BGR)
plt.imshow(image)
# cv.imwrite('C_test_rect.png', image)
<matplotlib.image.AxesImage at 0x7f90524e0cd0>