You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 then cap>>img; inside the loop. Also comment the num2str and sprintf.
But it doesn't work,
Can anyone tell me what else should I modify?
Thanks.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: