OpenCV問題系列

1. CV_CAP_PROP_FRAME_WIDTH 找不到
在這裏插入圖片描述
解決辦法:
Those constants have been changed in name and location in OpenCV for some time now.

For the capture properties, they no longer begin with CV_, so remove that prefix from all of them. You can find a list of all available capture properties here, note that they all simply start with CAP_PROP_.

The FOURCC code constructor is a method on the VideoWriter class now, so you should use VideoWriter::fourcc(…). The docs can be found here.

來自 stackoverflow

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章