How to connect microsoft kinect studio as kinect v2

6 次查看(过去 30 天)
So, I have videos from a Kinect v2 (.XEF). I know that when I open then o Kinect studio I can access on c#/c++ applications as a Kinect v2 camera. But, using the support package for Kinect in MATLAB does not see it as if there is a Kinect v2 camera. There is anything that can be done so MATLAB recognize the Kinect Studio device connection?
  2 个评论
Jayaram Theegala
Jayaram Theegala 2017-5-3
What is the MATLAB version you are using? And do you get any error when connecting to the Kinect camera? If yes, what is the error message?
Arthur Fernandes
Arthur Fernandes 2017-5-18
编辑:Arthur Fernandes 2017-5-18
Hi Jayaram, I'm using the R2016, and there is no error when installing the support package. The thing is the support package does not recognize the Kinect Studio connection as a camera. So when I initialize the Kinect c2 camera object on matlab it is a just an empty object.
The solution I've found: Kinect SDK has this functionality, as like Kinect Studio. Thus the solution was to create mex wrap on c++ code that access the Kinect v2 connection trough the Kinect SDK. While doing my own wrapper I found Kin2-Kinect wrapper I built my application based on this.

请先登录,再进行评论。

采纳的回答

Arthur Fernandes
Arthur Fernandes 2017-5-18
I've found the solution my self. First some comments:
The matlab support package does not recognize the Kinect Studio connection as a camera. Thus, when I initialize the Kinect v2 camera object on matlab it is a just an empty object. That even if there is an open .XEF video playing on Kinect studio with an open connection.
The solution I've found: Kinect SDK has this functionality to open .XEF as an emulated Kinect camera, as like Kinect Studio. Thus I can use this on my C++ applications. That is great for development, because I don't need to have a Kinect camera connect to my PC all the time.
Thus the solution was to create mex wrapper on c++ code that access the Kinect v2 connection and it's functionalities trough the Kinect SDK. While doing my own wrapper I found Kin2-Kinect wrapper by Juan R. Terven. This was agreat starting point, lac some of the functionalities I want, but has more than I need too. Then, I built my application based on this.

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by