summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/camera.cpp
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-03-10 17:10:02 +0100
committerStéphane Lenclud <github@lenclud.com>2019-03-10 17:10:02 +0100
commit8a9d143523fddbf8ee9cb1c58cb281ac380d3ae0 (patch)
treeae5cabae1134456eff8260ff6e7c30639c9ef42c /tracker-pt/module/camera.cpp
parentc90f8fbd1a83ffeed6b0bb9d55e91f4a4a9b8641 (diff)
Kinect Point Tracker: Working on basic architecture.
Diffstat (limited to 'tracker-pt/module/camera.cpp')
-rw-r--r--tracker-pt/module/camera.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tracker-pt/module/camera.cpp b/tracker-pt/module/camera.cpp
index 1afecc92..816f5baf 100644
--- a/tracker-pt/module/camera.cpp
+++ b/tracker-pt/module/camera.cpp
@@ -85,6 +85,7 @@ Camera::result Camera::get_frame(pt_frame& frame_)
bool Camera::start(int idx, int fps, int res_x, int res_y)
{
+
if (idx >= 0 && fps >= 0 && res_x >= 0 && res_y >= 0)
{
if (cam_desired.idx != idx ||
@@ -96,6 +97,11 @@ bool Camera::start(int idx, int fps, int res_x, int res_y)
stop();
desired_name = get_camera_names().value(idx);
+ bool kinectIRSensor = false;
+ if (desired_name.compare(KKinectIRSensor) == 0)
+ {
+ kinectIRSensor = true;
+ }
cam_desired.idx = idx;
cam_desired.fps = fps;
cam_desired.res_x = res_x;