Results 1 to 4 of 4

Thread: Read video with Qt and Opencv

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Read video with Qt and Opencv

    Hello!

    I need load a video files with opencv.
    I used this programming in the main.cpp.

    VideoCapture capture("video2_alcorcon.avi");
    for(; {

    capture >> src;
    imshow("imagen", src);
    waitKey(10);
    }

    In file.pro I include:


    INCLUDEPATH += C:\\Users\\Amaia\\Desktop\\opencvmin\\install\\inc lude
    LIBS += -LC:\\Users\\Amaia\\Desktop\\opencvmin\\install\\li b \
    -lopencv_core240 \
    -lopencv_highgui240 \
    -lopencv_imgproc240 \
    -lopencv_features2d240 \
    -lopencv_calib3d240

    And in header too:


    #include <opencv/cv.h>
    #include <opencv2/core/core.hpp>
    #include <opencv2/highgui/highgui.hpp>
    #include <opencv2/imgproc/imgproc.hpp>

    using namespace cv; //opencv

    But, I have got an error (file upload). I'm looking for a solution but I haven´t got.

    Please help me. I need use opencv in my proyect.
    Attached Images Attached Images

Similar Threads

  1. Replies: 18
    Last Post: 7th August 2015, 15:53
  2. Corrupted video with OpenCV reading
    By yoti13 in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2013, 01:43
  3. read webcam with opencv
    By rodolfo.marques in forum Newbie
    Replies: 5
    Last Post: 1st July 2012, 08:30
  4. How to capture Video with OpenCV
    By CCDamon in forum Qt Programming
    Replies: 5
    Last Post: 17th June 2011, 14:18
  5. Qt Gui with OpenCV video and buttons
    By marcusbarnet in forum Qt Programming
    Replies: 3
    Last Post: 20th May 2011, 08:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.