Answer the question
In order to leave comments, you need to log in
How to copy ROI from image when working with OpenCV?
Hello, here is my code:
img = cv2.imread('data\\Hunt.jpg', cv2.CAP_MODE_GRAY)
cv2.imshow('w', img)
ROI = []
Roi = 0
while (Roi != (0,0,0,0)):
Roi = cv2.selectROI('w',img)
os.system('cls')
if Roi != (0,0,0,0):
ROI.append(img[Roi[0]:Roi[1], Roi[2]:Roi[3]])
pass
cv2.destroyAllWindows()
img[280:340, 330: 390]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question