import cv2

video = cv2.VideoCapture('pedestrain_5.mp4')
# pre trained car classifier
car_tracker_file = 'car_detector.xml'
pedestrian_tracker_file = 'pedestrian_tracking.xml'
# create car classifier
car_tracker = cv2.CascadeClassifier(car_tracker_file)
pedestrian_tracker = cv2.CascadeClassifier(pedestrian_tracker_file)

while True:
    (read_successful, frame) = video.read()