projekt_widzenie/model_pred/check_model_on_cpu/crop.ipynb
Mikołaj Pokrywka dfa235b473 wip
2023-01-22 14:43:02 +01:00

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>