python - How to specify video dimensions in a video with opencv -
this program determines when there dramatic change in pixels in video , prints out @ frame , @ millisecond change occurred. using millisecond value in program save image of instant in video analyze image determine height of person in video. problem video resolution small. video length spans along whole screen when played in media player height 3 inches. when save image based on millisecond value image pitch black because above , below small video frame. change video size video seen across entire screen , when save image video based on millisecond value not black. crucial part of project. please me. thank much. i getting error: typeerror: expected cvcapture argument 'capture' this how have gone changing height , width of video: width = cv.setcaptureproperty(capfile, cv.cv_cap_prop_frame_width, 1280) height = cv.setcaptureproperty(capfile,cv.cv_cap_prop_frame_height, 720) import sys import cv2 import cv import numpy np # advanced scene detection parameters inte...