from imutils.video import VideoStream
from imutils.video import FPS
import argparse
import imutils
import time
import cv2
import numpy as np
cap = cv2.VideoCapture('C4-13.mp4')
fps = cap.get(cv2.CAP_PROP_FPS)
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
stime = get_sec(args.s)
starttime = args.s
etime = get_sec(args.e)
sframe=int(float(fps)*float(stime))
eframe=int(float(fps)*float(etime))
cap.set(1,sframe)