finalized output ROI frames

This commit is contained in:
Loic Delattre 2023-02-06 14:34:31 +01:00
parent 2cb4fb5e70
commit 540c79d5c6
1 changed files with 1 additions and 2 deletions

View File

@ -56,13 +56,12 @@ def get_frames(vid):
imRGB = img[y1:y2, x1:x2]
cv2.imwrite('frames/frame'+str(i)+'.jpg',imRGB)
i+=1
except:
print('error on min value of ex')
#extra values in x and y in the parameters are adjustements made after manual testing
#cv2.rectangle(roi_color, (fx,fy-150),(fx+100,fy-20),(0,127,255),2)
i+=1
cap.release()
cv2.destroyAllWindows()
return