Opencv python(3)| cv. VideoCapture.get() 參數介紹


cv2.VideoCapture.get ()  的 (0-18)參數

 

cv2.VideoCapture.get(0)            視頻文件的當前位置(播放)以毫秒為單位


cv2.VideoCapture.get(1)            基於以0開始的被捕獲或解碼的幀索引


cv2.VideoCapture.get(2)             視頻文件的相對位置(播放):0=電影開始,1=影片的結尾。


cv2.VideoCapture.get(3)            在視頻流的幀的寬度


cv2.VideoCapture.get(4)            在視頻流的幀的高度


cv2.VideoCapture.get(5)             幀速率


cv2.VideoCapture.get(6)              編解碼的4字-字符代碼


cv2.VideoCapture.get(7)              視頻文件中的幀數


cv2.VideoCapture.get(8)               返回對象的格式


cv2.VideoCapture.get(9)               返回后端特定的值,該值指示當前捕獲模式


cv2.VideoCapture.get(10)            圖像的亮度(僅適用於照相機)


cv2.VideoCapture.get(11)             圖像的對比度(僅適用於照相機)


cv2.VideoCapture.get(12)             圖像的飽和度(僅適用於照相機)


cv2.VideoCapture.get(13)            色調圖像(僅適用於照相機)


cv2.VideoCapture.get(14)             圖像增益(僅適用於照相機)(Gain在攝影中表示白平衡提升)


cv2.VideoCapture.get(15)             曝光(僅適用於照相機)


cv2.VideoCapture.get(16)              指示是否應將圖像轉換為RGB布爾標志


cv2.VideoCapture.get(17)               × 暫時不支持


cv2.VideoCapture.get(18)               立體攝像機的矯正標注(目前只有DC1394 v.2.x后端支持這個功能)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM