开发者

Connect opencv to qtcreator

开发者 https://www.devze.com 2023-03-03 11:08 出处:网络
I have VC++ & opencv code and I want to design GUI to it using qtcreator. First of all, I included 开发者_JS百科the libraries to the project and it ran without any errors.

I have VC++ & opencv code and I want to design GUI to it using qtcreator.

First of all, I included 开发者_JS百科the libraries to the project and it ran without any errors.

Now, what should I do after this?

How can I add the code into main.cpp file in the project?

should I change every opencv code to Q... like IpImage to QImage?


Install the VS-addin it will hook the.pro file to a gui editor automatically


About connecting OpenCV to Qt GUI classes , here is an example code QtOpenCV 1 . It takes content ipmage ,IIRC converts into rgb32 and paints it over a QWidget in paintEvent(QPaintEvent*);

0

精彩评论

暂无评论...
验证码 换一张
取 消