error: ‘CV_BGR2RGB’ was not declared in this scope
生活随笔
收集整理的這篇文章主要介紹了
error: ‘CV_BGR2RGB’ was not declared in this scope
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
缺少庫(kù),添加相應(yīng)庫(kù)就行,ubuntu中Qt Create設(shè)置如下
LIBS += -L/home/mima111/opencv345/lib -lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio
實(shí)際只要添加-lopencv_imgproc就行,CV_BGR2RGB變量存儲(chǔ)在該庫(kù)中。
總結(jié)
以上是生活随笔為你收集整理的error: ‘CV_BGR2RGB’ was not declared in this scope的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 原神有隔阂的魂灵怎么打
- 下一篇: error: expected unqu