koos808

Python - image(이미지)에서 원하는 부분 cropping(잘라내기) 본문

Python

Python - image(이미지)에서 원하는 부분 cropping(잘라내기)

koos808 2021. 1. 6. 21:56
728x90
반응형
  • image(이미지)에서 원하는 부분 cropping(잘라내기)
      def im_trim (img):
      for (x,y,w,h) in kkk:
          img_trim = img[y:y+h, x:x+w] 
          cv2.imwrite('test_cropping_data/' + 'test_image.jpg',img_trim) 
      return img_trim 

 


 

728x90
반응형
Comments