How to set the Kinect devices specific properties in matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
In Matlab
1. Create the videoinput object for the depth sensor. Note that a second object is created (vid2), and DeviceID 2 is used for the depth sensor. vid2 = videoinput('kinect',2,'Depth_640x480');
2. Look at the device-specific properties on the source device, which is the depth sensor on the Kinect. src = getselectedsource(vid2);
src
Display Summary for Video Source Object:
General Settings:
Parent = [1x1 videoinput]
Selected = on
SourceName = DepthSource
Tag =
Type = videosource
Device Specific Properties:
Accelerometer = [0.0 -1.0 0.0]
BodyPosture = Standing
CameraElevationAngle = 4
DepthMode = Default
FrameRate = 30
IREmitter = on
SkeletonsToTrack = [1x0 double]
TrackingMode = off
How we want to preset device specific properties?; For example,
Reset BodyPosture = Standing to be BodyPosture = Sitting
Reset DepthMode = Default to be DepthMode = Near
(*For this condition we can reset in C programming language, but for matlab language how we want to reset it?)
댓글 수: 0
답변 (1개)
Madhura Suresh
2015년 5월 21일
Hi Lim,
Based on whether the object/person is standing or sitting, different joint coordinates are returned. You should be able to edit this value. More information here:
Try src.DepthMode = 'Near';
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Acquisition Using Kinect for Windows Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!