finalized output ROI frames
This commit is contained in:
parent
2cb4fb5e70
commit
540c79d5c6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue