{"action":"created","issue":{"url":"https://api.github.com/repos/delmottea/libCMT/issues/6","labels_url":"https://api.github.com/repos/delmottea/libCMT/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/delmottea/libCMT/issues/6/comments","events_url":"https://api.github.com/repos/delmottea/libCMT/issues/6/events","html_url":"https://github.com/delmottea/libCMT/issues/6","id":39584184,"number":6,"title":"Modify code to process video from camera","user":{"login":"lanyusea","id":2766729,"avatar_url":"https://avatars.githubusercontent.com/u/2766729?v=3","gravatar_id":"","url":"https://api.github.com/users/lanyusea","html_url":"https://github.com/lanyusea","followers_url":"https://api.github.com/users/lanyusea/followers","following_url":"https://api.github.com/users/lanyusea/following{/other_user}","gists_url":"https://api.github.com/users/lanyusea/gists{/gist_id}","starred_url":"https://api.github.com/users/lanyusea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanyusea/subscriptions","organizations_url":"https://api.github.com/users/lanyusea/orgs","repos_url":"https://api.github.com/users/lanyusea/repos","events_url":"https://api.github.com/users/lanyusea/events{/privacy}","received_events_url":"https://api.github.com/users/lanyusea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-06T02:25:15Z","updated_at":"2015-01-29T18:39:24Z","closed_at":null,"body":"Hi, I'm trying to modify the code in order to process with my camera.\r\n\r\nBut I got a segmentation fault (core damped) after compile. \r\n\r\nI 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`.\r\n\r\nBut it doesn't work,\r\nCan anyone tell me what else should I modify?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/delmottea/libCMT/issues/comments/72079162","html_url":"https://github.com/delmottea/libCMT/issues/6#issuecomment-72079162","issue_url":"https://api.github.com/repos/delmottea/libCMT/issues/6","id":72079162,"user":{"login":"bwang22","id":10714433,"avatar_url":"https://avatars.githubusercontent.com/u/10714433?v=3","gravatar_id":"","url":"https://api.github.com/users/bwang22","html_url":"https://github.com/bwang22","followers_url":"https://api.github.com/users/bwang22/followers","following_url":"https://api.github.com/users/bwang22/following{/other_user}","gists_url":"https://api.github.com/users/bwang22/gists{/gist_id}","starred_url":"https://api.github.com/users/bwang22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwang22/subscriptions","organizations_url":"https://api.github.com/users/bwang22/orgs","repos_url":"https://api.github.com/users/bwang22/repos","events_url":"https://api.github.com/users/bwang22/events{/privacy}","received_events_url":"https://api.github.com/users/bwang22/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T18:39:24Z","updated_at":"2015-01-29T18:39:24Z","body":"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. "}}