video = cv2.VideoCapture(sys.argv[1])
while True:
    ret, frame = video.read()
if not ret:
    break
result = hog.detectMultiScale(frame, **hogParams)
print(result)
HOGDescriptor with videos to recognize objects