Ask Your Question

malloc123's profile - activity

2018-05-05 11:58:35 -0600 asked a question remove line after canny detection

remove line after canny detection In this example take from (site) with python in this guide the undesired line are dele

2018-04-30 05:47:37 -0600 received badge  Supporter (source)
2018-04-30 05:41:10 -0600 marked best answer Why videocapture is not showing any frames?

I'm writing some simple code for opencv3 to process video stream

#include<opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/videoio/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include<iostream>
#include<conio.h>           


int main() {



std::string video = "/videos/video1.avi";
cv::VideoCapture capture(video);

if (!capture.isOpened())
    throw "Error when reading steam_avi";
cv::Mat frame;

for (;;)
{


    capture >> frame;
    if (!frame.empty()) {
        cv::imshow("name", frame);
    }
}


return(0);

}

But I always get a gray window that doesn't show any image what can be my problem?

2018-04-30 05:41:10 -0600 received badge  Scholar (source)
2018-04-30 05:22:16 -0600 asked a question Why videocapture is not showing any frames?

Why videocapture is not showing any frames? I'm writing some simple code for opencv3 to process video stream #include&l