{"action":"created","issue":{"url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/1","labels_url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/1/comments","events_url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/1/events","html_url":"https://github.com/DevHwan/K4Wv2OpenCVModule/issues/1","id":51229200,"number":1,"title":"Display color frame from sensor","user":{"login":"yar78","id":10097767,"avatar_url":"https://avatars.githubusercontent.com/u/10097767?v=3","gravatar_id":"","url":"https://api.github.com/users/yar78","html_url":"https://github.com/yar78","followers_url":"https://api.github.com/users/yar78/followers","following_url":"https://api.github.com/users/yar78/following{/other_user}","gists_url":"https://api.github.com/users/yar78/gists{/gist_id}","starred_url":"https://api.github.com/users/yar78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yar78/subscriptions","organizations_url":"https://api.github.com/users/yar78/orgs","repos_url":"https://api.github.com/users/yar78/repos","events_url":"https://api.github.com/users/yar78/events{/privacy}","received_events_url":"https://api.github.com/users/yar78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-07T20:02:09Z","updated_at":"2015-02-23T08:33:02Z","closed_at":null,"body":"Hi,\r\n\r\nI was trying to use this module with OpenCV, I'm not sure if I'm doing it the right way , appreciate any help on this.\r\nFor start I would like to know how to capture and display a color frame from the sensor.\r\nTrying to follow the instruction\r\nI launched KinectService.exe (which I think was already running)\r\nCreated an object of class CK4Wv2OpenCVModule \r\nInitializeKinectDevice()\r\nupdateData()\r\nThen I was trying to display colorMappedFrameMat but looks like it is empty..\r\n\r\nbelow my code:\r\n\r\n    ===main.cpp===\r\n    #include <opencv2/core/core.hpp>\r\n    #include <opencv2/highgui/highgui.hpp>\r\n    #include <iostream>\r\n    #include <K4Wv2OpenCVModule.h>\r\n\r\n    using namespace cv;\r\n    using namespace std;\r\n\r\n    int main( )\r\n    {\r\n    //Launch KinectService.exe\r\n    ShellExecuteA( NULL, \"open\", \"C:\\Windows\\System32\\Kinect\\KinectService.exe\", NULL, NULL, SW_SHOWNORMAL );\r\n\r\n    //Create a class object\r\n    CK4Wv2OpenCVModule K4Wv2;\r\n\r\n    //initialize kinect device\r\n    K4Wv2.InitializeKinectDevice();\r\n\r\n    //Update data\r\n    K4Wv2.UpdateData();\r\n\r\n\r\n     if(! K4Wv2.colorMappedFrameMat.data ) // Check for invalid input\r\n     {\r\n     cout << \"Could not open or find the image\" << std::endl ;\r\n     return -1;\r\n     }\r\n\r\n     namedWindow( \"Display window\", CV_WINDOW_AUTOSIZE );// Create a window for display.\r\n     imshow( \"Display window\", K4Wv2.colorMappedFrameMat ); // Show our image inside it.\r\n\r\n     waitKey(0); // Wait for a keystroke in the window\r\n     return 0;\r\n     }\r\n    ======\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/comments/75505345","html_url":"https://github.com/DevHwan/K4Wv2OpenCVModule/issues/1#issuecomment-75505345","issue_url":"https://api.github.com/repos/DevHwan/K4Wv2OpenCVModule/issues/1","id":75505345,"user":{"login":"DevHwan","id":2802437,"avatar_url":"https://avatars.githubusercontent.com/u/2802437?v=3","gravatar_id":"","url":"https://api.github.com/users/DevHwan","html_url":"https://github.com/DevHwan","followers_url":"https://api.github.com/users/DevHwan/followers","following_url":"https://api.github.com/users/DevHwan/following{/other_user}","gists_url":"https://api.github.com/users/DevHwan/gists{/gist_id}","starred_url":"https://api.github.com/users/DevHwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevHwan/subscriptions","organizations_url":"https://api.github.com/users/DevHwan/orgs","repos_url":"https://api.github.com/users/DevHwan/repos","events_url":"https://api.github.com/users/DevHwan/events{/privacy}","received_events_url":"https://api.github.com/users/DevHwan/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T08:33:02Z","updated_at":"2015-02-23T08:33:02Z","body":"The kinect device requires warming up time for several frames. Please call UpdateData several times."}}