Open lanyusea opened 9 years ago
I got same problem. The after building this, it should run to demonstrate it works. Instead I got code that have a nonsensical input that can't run.
The example use the cokecan sequence (from the dataset available in the CMT project page http://www.gnebehay.com/cmt/ ).
for the video capture, you use something like : cv::VideoCapture cap(cameraId); cv::Mat img; cap >> img; to obtain your images the first call to CMT must be the initialise with the first image and the top-left and bottom-right coordinates of the bounding box of the target. then you call processFrame on the next images
wow thanks for the quick response.
Hi, I'm trying to modify the code in order to process with my camera.
But I got a segmentation fault (core damped) after compile.
I use the
cv::VideoCapture cap(1)
to read my camera, then put cv::Mat img and cv::Mat im_gray out of the for loop thencap>>img;
inside the loop. Also comment thenum2str
andsprintf
.But it doesn't work, Can anyone tell me what else should I modify?
Thanks.