Open DrWateryCat opened 7 years ago
It appears that if kinect.GetVideo()
returns false, the Mat won't be initialized, which would lead to this bug.
And by "this bug", I mean it's a bug in your program, not cscore. :)
I added if (!kinect.GetVideo(rgb)) { rgb = cv::Mat::zeros(cv::Size(640, 480), CV_8UC3); }
just inside the while loop, and took out the PutFrame for the depth data. Valgrind gives the same error.
I am trying to use cscore to stream a kinect's RGB and depth data over a MJPEG connection, but when I call PutFrame, I get a segfault. Here's a gist of the C++ code I'm using: https://gist.github.com/DrWateryCat/c225e436d5761bbb21fd622c78e78972 and here's the stacktrace by valgrind: