91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

關于opencv設置視頻的屬性無效問題

發布時間:2020-08-11 21:37:17 來源:網絡 閱讀:1401 作者:qq58edf671cb8f8 欄目:開發技術

自己最近做一個項目,采用Opencv2.4.10+MFC處理,結果發現,在視頻處理過程中,采用bool VideoCapture::set(int propId, double value)函數設置圖像的分辨率,返回值為0,查看opencv2.4.10文檔,是這樣的

propId – Property identifier. It can be one of the following:
– CV_CAP_PROP_POS_MSEC Current position of the video file in milliseconds.
– CV_CAP_PROP_POS_FRAMES 0-based index of the frame to be decoded/captured
next.
– CV_CAP_PROP_POS_AVI_RATIO Relative position of the video file: 0 - start of the
film, 1 - end of the film.
– CV_CAP_PROP_FRAME_WIDTH Width of the frames in the video stream.
– CV_CAP_PROP_FRAME_HEIGHT Height of the frames in the video stream.
– CV_CAP_PROP_FPS Frame rate.
– CV_CAP_PROP_FOURCC 4-character code of codec.
– CV_CAP_PROP_FRAME_COUNT Number of frames in the video file.
– CV_CAP_PROP_FORMAT Format of the Mat objects returned by retrieve() .
– CV_CAP_PROP_MODE Backend-specific value indicating the current capture mode.
– CV_CAP_PROP_BRIGHTNESS Brightness of the p_w_picpath (only for cameras).
– CV_CAP_PROP_CONTRAST Contrast of the p_w_picpath (only for cameras).
– CV_CAP_PROP_SATURATION Saturation of the p_w_picpath (only for cameras).
– CV_CAP_PROP_HUE Hue of the p_w_picpath (only for cameras).
– CV_CAP_PROP_GAIN Gain of the p_w_picpath (only for cameras).
– CV_CAP_PROP_EXPOSURE Exposure (only for cameras).
– CV_CAP_PROP_CONVERT_RGB Boolean flags indicating whether p_w_picpaths should
be converted to RGB.
– CV_CAP_PROP_WHITE_BALANCE Currently unsupported
– CV_CAP_PROP_RECTIFICATION Rectification flag for stereo cameras (note: only
supported by DC1394 v 2.x backend currently)
value – Value of the property.

文檔中并沒有明確視頻幀的寬度,高度僅僅適合攝像頭或是視頻,于是我用

CV_CAP_PROP_FRAME_WIDTH,CV_CAP_PROP_FRAME_HEIGHT設置視頻幀的分辨率,結果

結果發現,設置無效,于是總結出目前的opencv版本不支持視頻幀

分辨率設置。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

德清县| 乡宁县| 康平县| 屏东县| 简阳市| 民县| 微博| 保靖县| 如皋市| 荆州市| 巴彦县| 海阳市| 洛浦县| 辛集市| 商城县| 亚东县| 贡觉县| 黑山县| 朝阳县| 屯留县| 榆树市| 张家口市| 浑源县| 博野县| 湾仔区| 容城县| 元阳县| 兖州市| 河南省| 海兴县| 潮州市| 土默特右旗| 睢宁县| 藁城市| 花垣县| 广河县| 固镇县| 仪陇县| 汉中市| 和平区| 海林市|