Skip to content

Instantly share code, notes, and snippets.

@ashhadulislam
Last active June 16, 2021 05:46
Show Gist options
  • Save ashhadulislam/a366c9f31ee88f59cac267a3b9e9dc4e to your computer and use it in GitHub Desktop.
Save ashhadulislam/a366c9f31ee88f59cac267a3b9e9dc4e to your computer and use it in GitHub Desktop.
import cv2
import matplotlib.pyplot as plt
import os, shutil
img=cv2.imread("raw_yolo_keras/train/001446_jpg.rf.00a11ab7cffb0a8fec57e98b2c4663d5.jpg")
crop_img = img[ 318:373, 216:265]
fig,axs=plt.subplots(1,2)
axs[0].imshow(img)
axs[1].imshow(crop_img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment