0

enter image description here

This is the GUI I created usin Qt. I want to do the same thing using OpenCV. I have read about the new Qt Functions in the documentation. The thing is, the implementation is not clear, so is there any tutorial or any guide present that implements these functions?

praxmon
  • 5,009
  • 22
  • 74
  • 121
  • 1
    Is there a reason why you don´t do it the other way around and use Qt for GUI and OpenCV for processing and show the processed Image in the Qt Gui? That how i usually do it... the OpenCV Gui is IMHO just for very quick testing GUIs... – Mailerdaimon Jan 30 '14 at 07:14
  • 1
    GUI provided by OpenCV is too simple, I think you need to convert cv::Mat to QImage, so OpenCV does the image processing and Qt is in charge displaying the result – azer89 Jan 30 '14 at 07:20
  • @Mailerdaimon I don't know how to include OpenCV in a Qt application. If there is any tutorial or you know how to do so then please tell me. – praxmon Jan 30 '14 at 07:21
  • 1
    This might be helpful: http://stackoverflow.com/questions/5026965/how-to-convert-an-opencv-cvmat-to-qimage you can then show your image as a QImage in the Qt GUI (in a QLabel for example) – Mailerdaimon Jan 30 '14 at 07:22
  • @Mailerdaimon You also don't know how to add OpenCV to Qt so I can make GUI using Qt and program using OpenCV? – praxmon Jan 30 '14 at 07:24
  • I just wrote what you need. The point is how to get your image data from OpenCV to Qt format, the rest is programming as usual. I don´t understand what else you need?! – Mailerdaimon Jan 30 '14 at 07:43
  • @PrakharMohanSrivastava - there are a few answers here on SO on how to set up openCV in QT. I did it on OSX but there are links to doing it on windows. It's pretty easy and then you have the whole QT toolkit. See my Q & A here: http://stackoverflow.com/questions/17518408/setting-up-opencv-in-qt-on-osx. The gist is build and install openCV and then just link to it. – spring Jan 31 '14 at 06:02

0 Answers0