{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4931","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4931/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4931/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4931/events","html_url":"https://github.com/Itseez/opencv/issues/4931","id":97439087,"number":4931,"title":"Camera Status Check","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/affected:%202.4","name":"affected: 2.4","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20highgui-video","name":"category: highgui-video","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T11:09:24Z","updated_at":"2015-07-27T11:09:24Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/4188\r\n```\n|| Muhammad Qaisar on 2015-02-10 08:59\n|| Priority: Normal\n|| Affected: 2.4.9 (latest release)\n|| Category: highgui-video\n|| Tracker: Bug\n|| Difficulty: Medium\n|| PR: \n|| Platform: x86 / Windows\n```\n\nCamera Status Check\n-----------\n```\nDear sir\r\nI am Using opencv 2.4.10\r\ni am capturing video from axis video server. i use this code\r\nint main()\r\n{\r\ncv::VideoCapture\tcap;\r\ncap.open(\"rtsp://192.168.0.90:554/mpeg4/media.amp?type=.mjpg\");\r\nif(!cap.isOpened())\r\n{\r\n     cout <<\"cam not working\"<<endl;\r\n}\r\nwhile(cap.isOpened())\r\n{\r\nMat Frame;\r\ncap.read(Frame);\r\nif(Frame.empty())\r\n{\r\ncout <<\"\"<<endl;\r\n}\r\nwaitKey(1);\r\n}\r\nreturn 0;\r\n}\r\nthe code working good, but here the problem is when i unplug the power cable of camera NO VIDEO shows on top left corner. but i did not get any error... \r\nmy question is that how can i check the camera status on axis video server if running camera is disconnected... plz give me example with code.  thanks\n```\n\nHistory\n-------\n##### Vadim Pisarevsky on 2015-04-27 12:45\n```\n-   Category set to highgui-video\n```"}}