Ask Your Question

enzom83's profile - activity

2015-01-02 15:21:48 -0500 received badge  Student (source)
2015-01-02 13:14:23 -0500 asked a question Why does OpenCV not define the alias Size2d?

For convenience, the following type aliases are defined in OpenCV:

typedef Point_<int> Point2i;
typedef Point2i Point;
typedef Point_<float> Point2f;
typedef Point_<double> Point2d;
typedef Size_<int> Size2i;
typedef Size2i Size;
typedef Size_<float> Size2f;

Why does OpenCV not define the alias Size2d for Size_<double>?

2014-04-14 15:54:43 -0500 received badge  Organizer (source)
2014-04-14 15:50:09 -0500 asked a question A segmentation fault sometimes occurs when the function cvCreateFileCapture is invoked on network URL

A segmentation fault occurs when the function cvCreateFileCapture is sometimes invoked using a network URL as argument, for esample: rtsp://IPaddress:Port/Path...

int main(int argc, char *argv[])
    QApplication a(argc, argv);


    CvCapture* capture = cvCreateFileCapture("rtsp://...");


    return a.exec();

No error occur if the argument is a file on disk.

I build the source code in debug mode and I when the segmentation fault has occurred, the following stack trace is listed:

CvCapture_GStreamer::open(int, char const*)
cvCreateCapture_GStreamer(int, char const*)

If I create a Plain C++ Project, the call to the function cvCreateFileCapture always results in a segmentation fault. If, instead, I create a Qt Gui Application project, the segmentation fault occurs randomly.

Could the error be caused by the library gstreamer (see the above stack trace)?