michalfaber / keras_Realtime_Multi-Person_Pose_Estimation

Keras version of Realtime Multi-Person Pose Estimation project
Other
782 stars 370 forks source link

Hello,how to do video mp4? #109

Open candrwow opened 5 years ago

candrwow commented 5 years ago

I try your code below not work python3 demo_video.py --video sample_images/sample1.mp4 console tips me

Traceback (most recent call last):
    File "demo_video.py", line 290, in <module>
    out = cv2.VideoWriter(video_output,fourcc, output_fps, (input_image.shape[1], 
    input_image.shape[0]))
AttributeError: 'NoneType' object has no attribute 'shape'

How should I do?I try your demo_image.py success. Thank you!

michalfaber commented 5 years ago

Try this command: python3 demo_video.py --video sample1.mp4 By default it takes the file form the subfolder videos/