From 540c79d5c69012e29c7a7e31d95ad92d0a133a7e Mon Sep 17 00:00:00 2001 From: Loic Delattre Date: Mon, 6 Feb 2023 14:34:31 +0100 Subject: [PATCH] finalized output ROI frames --- get_frames.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/get_frames.py b/get_frames.py index 4c5df3d..152f622 100644 --- a/get_frames.py +++ b/get_frames.py @@ -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