OpenCV (via python) on Linux: Set frame width/height?

前端 未结 5 1745
庸人自扰
庸人自扰 2021-01-02 00:02

I\'m using openCV via python on linux (ubuntu 12.04), and I have a logitech c920 from which I\'d like to grab images. Cheese is able to grab frames up to really high resolut

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 00:46

    From the docs,

    The function cvSetCaptureProperty sets the specified property of video capturing. Currently the function supports only video files: CV_CAP_PROP_POS_MSEC, CV_CAP_PROP_POS_FRAMES, CV_CAP_PROP_POS_AVI_RATIO .

    NB This function currently does nothing when using the latest CVS download on linux with FFMPEG (the function contents are hidden if 0 is used and returned).

提交回复
热议问题