import cv2 import os import sys import time import json #path = "JPEGImages\\3.jpeg" #image = cv2.imread(path) #cropImg = image[0:200,0:200] #cv2.imwrite("ttt.jpg",cropImg) def main(): output_dir = "img_cut" input_dir = "JPEGImages" img_paths = get_img(input_d…