Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. opencv
    Log in to post

    • UNSOLVED 'opencv2/opencv.hpp' file not found
      General and Desktop • c++ opencv opencv cpp • • blackbox  

      4
      0
      Votes
      4
      Posts
      708
      Views

      I meant the header files since those are the ones currently not found.
    • SOLVED Live camera image using OpenCV showing in Qlabel crashes due to out of memory error
      General and Desktop • gui qimage opencv c++ qt qpixmap • • Imran Hassan  

      9
      1
      Votes
      9
      Posts
      188
      Views

      Thank you all guys. Your suggestions and expert opinion helped a lot with solving the problem. QT forum is always so helpful. After trying many things here is the conclusion and code is now working perfectly fine I removed the tic toc part time(&start); timer = double(getTickCount()); tic(); It was working but crashing then just to make sure that QImage is not NULL I removed the img = QImage(); // releasing memory with if(!img.isNull()) img = QImage(); Its working perfectly fine now.
    • SOLVED QT image display is not working without declaring openCV namedWindow in windows 10
      General and Desktop • windows 10 opencv c++ qt qt 5.14.2 • • Imran Hassan  

      17
      0
      Votes
      17
      Posts
      312
      Views

      @Imran-Hassan said in QT image display is not working without declaring openCV namedWindow in windows 10: The problem is solved great, so please don't forget to mark your post as such!
    • SOLVED Link / Build Error QtCreator 4.10.2, Qt 5.13, OpenCV, Ubuntu 18.04.
      General and Desktop • opencv ubuntu 18.04 linking • • Pl45m4  

      6
      0
      Votes
      6
      Posts
      422
      Views

      I still don't know what exactly went wrong, but after I removed all of the OpenCV stuff and re-installed a fresh v4.1, it worked. So even though I checked all lib-files, there must have been something wrong with the linked libs (Pointing to different versions?! Links not working?!, etc.) Thanks @SGaist, your answer made me remove everthing and try the OCV version that is provided by Ubuntu 18.04. I got 3.X.X from there... After I removed this version again (because I want a newer one) and installed 4.1 from OCV page, it worked :-)
    • Create and show the object of my QWidget (heir) in the main window (heir of QMainWindow)
      General and Desktop • qwidget qmainwindow opencv qt designer videocapture • • Algorithm0  

      4
      0
      Votes
      4
      Posts
      255
      Views

      @jsulm Hello! Sorry, but that doesn't work. I tried to insert a loop in different places, but the result remains the same. I also tried to display the main widget. @SGaist Hello. So the VideoWindow.h file (VideoWindow class) is my custom widget. This is the first piece of code that I presented.
    • SOLVED QDataStream an openCV::mat serialisation...
      General and Desktop • opencv qbytearray qdatastream • • Dariusz  

      3
      0
      Votes
      3
      Posts
      200
      Views

      @jsulm said in QDataStream an openCV::mat serialisation...: @Dariusz What is stream here? Is it QDataStream? "Any idea what did I mess up with this ?" - well, what is not working? Yep :- ) I think I might "got it". Naturally 5 min after asking question... elemSize1() return incorrect number of channels. Looks like I need elemSize() instead. still testing. Yep it was wrong element number. Hope it helps other "serializers" out here : -)
    • SOLVED OpenCV 4.1.1 Imread() & Imwrite() Crashes Program ?
      General and Desktop • opencv imread imwrite • • R-P-H  

      23
      0
      Votes
      23
      Posts
      1235
      Views

      @r-p-h said in OpenCV 4.1.1 Imread() & Imwrite() Crashes Program ?: now everything is working fine. so please don't forget to mark your post as solved! Thanks.
    • SOLVED Using a label to display large images in QT GUI
      General and Desktop • opengl opencv qlabel image display pixmap • • rtavakko  

      5
      0
      Votes
      5
      Posts
      367
      Views

      An update on this. It works perfectly and its a very low-cost solution. My processing time remains almost the same (~10mS) using this method since the painter does the scaling for you when it draws. Thanks for your help guys.
    • UNSOLVED QT 5.12.3, OpenCV 3.4.3, Rasberry Pi 3B+, Cross-Compilation failure
      Installation and Deployment • opencv qt5.12.3 raspberry pi 3b • • Chris1092387456  

      2
      0
      Votes
      2
      Posts
      663
      Views

      @chris1092387456 could it be possible you have mixed Qt versions from the one you cross-compiled and the one it's used by the OpenCV install script you used. Assuming you run Ubuntu/opencv_latest.sh which in turn calls opencv_install.sh and then dependencies.sh, there are some apt-get install calls, so you''ll end up having pre-built Qt libraries along with your cross-compiled ones... function install_dependency { echo "--- Installing dependency: $1" sudo apt-get -y install $1 } ... install_dependency libqt5x11extras5 install_dependency libqt5opengl5 install_dependency libqt5opengl5-dev So may I suggest to start from scratch? First I'd follow the mechatronics guide to cross-compile and deploy Qt in the RPi device. Then I'd follow this guide to cross compile the latest version of OpenCV for Raspberry Pi. As you'll use WITH_QT=ON flag I guess, please adjust the paths in the CMake script(s) to use the cross-compiled Qt version in your host PC. And also use the correct path for cross-compiled OpenCV in your .pro file. As example, the following doesn't look good to me: LIBS += -L/usr/local/lib/libopencv_highgui.so
    • UNSOLVED GUI freezing issue
      Mobile and Embedded • qthread gui opencv c++ qt serial interfac • • dev_512  

      3
      0
      Votes
      3
      Posts
      266
      Views

      @Gojir4 thanks, I am trying that right now. I’ve added a 1s delay in my image grabbing thread. Let’s see. Fingers crossed!
    • SOLVED OpenCV VideoCapture Failure from QThread
      General and Desktop • qthread gui opencv crash videocapture • • rtavakko  

      22
      0
      Votes
      22
      Posts
      2527
      Views

      @JKSH This is how I emit the OpenCV mat data: emit processedImage(2, videoFrameOut.ptr(0,0),videoFrameOut.cols, videoFrameOut.rows, videoFrameOut.step); The first parameter is just used to determine which display should draw the image and the rest are dimensions and stride which I think are ok. @SGaist You are correct, I changed the line below to make a copy: displayImage = QImage(imageData, width, height, step, QImage::Format_RGBA8888).copy(0,0,width,height); I think this fixed the issue. I got a couple of crashes in 'memcpy' but that was when loading files a little too quickly. I think most likey resizing the data quickly was the issue. I will do more testing this week and post the results. UPDATE: I did a lot more testing and making a local copy fixed the issue. The issue was that I was modifying the array before it was fully copied and this caused crashes when the array was downsized. I will need to revise the overall structure to make sure everything is done sequentially. Thanks!
    • SOLVED Video Rendering Application with Overlay
      General and Desktop • opencv plot h264 video processin • • cirquit  

      3
      0
      Votes
      3
      Posts
      325
      Views

      Thank you for your answer! I've yet to find a good introduction into QML for C++ developers, but I was a little put off by the somewhat convoluted approach as different tutorials either don't show any QML or only use it soley to develop a very simple application. The main problem I'm struggling is with QML is the ability to generate a GUI based on some set preferences. In my case the amount of e.g tabs in the "Options" pane should be defined by the amount of video files which are currently loaded. Is this easily possible to programatically extend QML GUIs?
    • UNSOLVED modeless QDialog passes mouse click event to its parent
      General and Desktop • qwidget qdialog opencv mouse event • • shawnL  

      5
      0
      Votes
      5
      Posts
      791
      Views

      Then add a signal to your dialog that you will emit when needed from your mouse move event.
    • UNSOLVED Trouble with #include in Windows
      General and Desktop • opencv include vs2017 • • mdresser  

      2
      0
      Votes
      2
      Posts
      271
      Views

      Problem Solved: '/' not '\' in .pro file AND run qmake after change. I tried changing '\' to '/' but didn't run qmake.
    • UNSOLVED How to display image that I already edit with "cv::Line" in Gui?
      General and Desktop • gui opencv draw line • • Mawarditaman  

      2
      0
      Votes
      2
      Posts
      393
      Views

      Hi and welcome to devnet, Can you show the code you are using ? What exactly do you expect ? What exactly do you get ?
    • UNSOLVED QWidget: Cannot create a QWidget without QApplication - OpenCV imshow() 2.4.13 ?
      General and Desktop • qwidget opencv qapplication • • R-P-H  

      30
      0
      Votes
      30
      Posts
      5485
      Views

      @sierdzio said in QWidget: Cannot create a QWidget without QApplication - OpenCV imshow() 2.4.13 ?: Is Qt the only supported backend? If yes, then indeed requirements do propagate. No, it has been added later on. It's maybe even the latest that has been implemented. AFAIK, what the OP is hitting here, is that OpenCV doesn't have an implementation for imgshow for iOS. It would require to either use Qt to show the result of what he's doing or native stuff.
    • UNSOLVED Resizing a constant Video stream from OpenCV to PyQt5 with QPainter in a QWidget using a Raspberry Pi
      Language Bindings • qwidget python qpainter opencv pyqt • • Xenoshell  

      24
      0
      Votes
      24
      Posts
      12875
      Views

      Yeah i feel like i do sudo apt-get update && upgrade at least once a day. I just checked about SIP and i compiled it from source but i cant remember if i actually used the command make and make install. Does that mean i have to reinstall pyqt5 again? I guess i just open a new thread. Thanks for all the help @SGaist
    • UNSOLVED Unable to read image frames using gstreamer in opencv for yocto linux image
      Mobile and Embedded • linux opencv yocto • • Sumit  

      2
      0
      Votes
      2
      Posts
      790
      Views

      Hi, GStreamer in OpenCV ? Shouldn't you rather post this question on either or maybe both of their forum ?
    • UNSOLVED [solved] Astonishingly weird behaviour of Qt Creator + OpenCV
      General and Desktop • qt creator opencv image display • • Gmember  

      3
      0
      Votes
      3
      Posts
      2627
      Views

      @Chris-Kawa Thank you, now it works. The solution was simple, but apparently I must understand better how the paths work. If you have any advice on where to start reading or you know any interesting online article/tutorial, please tell me :-)
    • UNSOLVED Linking openCv with Qt
      Mobile and Embedded • opencv cpp • • Anas_Deshmukh  

      2
      0
      Votes
      2
      Posts
      1364
      Views

      Hi, Maybe a silly question but are you sure that OpenCV is properly installed in opencvArm ?
    • SOLVED [solved] Impossible to include OpenCV path
      General and Desktop • qmake opencv includepath • • Gmember  

      9
      0
      Votes
      9
      Posts
      10384
      Views

      dll paths do not influence the build so they are not included in qmake. if you use QtCreator in the right bar select project and in the build and run tab, select the run subtab and you can customise the run environment adding the paths of the dlls to the run environment PATH otherwise you can use the INSTALLS of qmake to deploy all the binaries where you need them
    • UNSOLVED OpenCV & QT: 'emit' undeclared identifier error
      General and Desktop • qt5 opencv emit signal • • htmlboss  

      6
      0
      Votes
      6
      Posts
      4136
      Views

      Hi, Just a quick note, taking a look at fixing this "fix", I just saw that the latest version of the contrib repository doesn't contain the offending code anymore.
    • SOLVED Offline mobile based object detection
      Mobile and Embedded • android ios opencv • • Sam_  

      4
      0
      Votes
      4
      Posts
      1165
      Views

      @Sam_ I'm glad i could help. Please mark the Thread as "solved" if it's solved for you. :)
    • UNSOLVED Display OpenCV Live Cam Feed In Qt
      General and Desktop • c++ opencv qt 5.4.0 • • Trav  

      2
      0
      Votes
      2
      Posts
      844
      Views

      hello, here is a working example https://goo.gl/2puvC1
    • SOLVED How to install openCv in Qt
      3rd Party Software • opencv path qt 5.4.0 • • Trav  

      16
      0
      Votes
      16
      Posts
      4662
      Views

      Good ! In that case, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
    • UNSOLVED generate an exe on QT5.2 and OpenCV 3.1 in static mod.
      General and Desktop • opencv static qt5.2 libwebp • • ammarmoez  

      6
      0
      Votes
      6
      Posts
      2284
      Views

      @SGaist yes all opencv files is included in the path. After some research in log file, i think I have a problème with the génération of libopencv_imgcodecs310 and libopencv_imgproc310 files. I'll keep you posted.
    • SOLVED Can desktop kit in qt for android be used for opencv desktop development
      General and Desktop • opencv qt for windows qt for android • • lama  

      6
      0
      Votes
      6
      Posts
      1336
      Views

      @SGaist said: Android Hello all, Sorry for the late reply As SGaist said i was able to build and run qt with opencv successfully on windows desktop using mingw for desktop bundled with qt for android Thanks Amal
    • SOLVED OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?))
      Mobile and Embedded • c++ opencv • • sachin786  

      8
      0
      Votes
      8
      Posts
      4406
      Views

      As it is not related to Qt you should ask OpenCV community.
    • UNSOLVED static opencv build for QT using MinGW. mingw32-make: *** [all] Error 2
      General and Desktop • opencv mingw mingw32-make build from sour • • Griz  

      1
      0
      Votes
      1
      Posts
      2028
      Views

      No one has replied

    • UNSOLVED Is it configuration problem of opencv3.10 with qt 5.5? Showing Error "undefined reference to `cv::imread(cv::String const&, int)"
      Qt in Education • opencv opencv3.10 load imagmatrix sobel • • beginMyCoding  

      8
      0
      Votes
      8
      Posts
      4363
      Views

      Take a look at the answer here
    • UNSOLVED error :could not find glib-genmarshal in your path
      Mobile and Embedded • opencv • • sachin786  

      7
      0
      Votes
      7
      Posts
      3149
      Views

      ok..thanks
    • SOLVED OpenCV project from Linux to .exe
      General and Desktop • dll opencv mingw build error • • Edwin  

      11
      0
      Votes
      11
      Posts
      3027
      Views

      Use the "Topic Tool" button :)
    • UNSOLVED Displaying multiple OpenCV VideoCapture objects in QT
      General and Desktop • c++ qt 5.4 opencv opencv3.00 • • SgtSherif  

      4
      0
      Votes
      4
      Posts
      3342
      Views

      Hi Did you try to show vodeo capture only from the slow one? I think it might be usefull to test if the second camera slow only when image from both cameras is shown or it's always slow. Another suggection is to try to swap devices. It may be some kind of hardware problem. The last suggestion is to try to use QGraphicsView as soon as it might be just quicker than labels. However I don't think that the problem you described is in labels.
    • UNSOLVED Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
      Mobile and Embedded • qtcreator opencv gtk • • MarKS  

      4
      0
      Votes
      4
      Posts
      7779
      Views

      I downloaded and compiled opencv3 with gtk3 on, and then I installed Qt and had the same issue. I found a work around for this is to recompile opencv with cmake and set: WITH_GTK3=OFF. And reinstall the library. After that my Qt application work fine. Hope this helps
    • Camshift Multiple Trackers Application and Source Code
      Showcase • opencv source code binary camshift mean shift • • amahta  

      2
      1
      Votes
      2
      Posts
      2624
      Views

      Hi @amahta , I was browsing the applications you have written, and they look really good. Would you be interested in having them presented in the Qt Showroom? http://showroom.qt.io They would be a good fit there, as they show off using Qt together with OpenCV in a practical way. Ping me on chat if you are interested. Tero // Online Community Manager
    • OpenCV Feature Points Comparison Program
      Showcase • opencv source code binary features object detectio point matching • • amahta  

      1
      0
      Votes
      1
      Posts
      723
      Views

      No one has replied

    • Image Transformer (Android app created using Qt and OpenCV)
      Showcase • android opencv image processin google play fourier image transform • • amahta  

      2
      0
      Votes
      2
      Posts
      1137
      Views

      Thanks @tekojo and of course Qt. Image Transformer is now being displayed in Qt Showroom: https://showroom.qt.io/image-transformer/