运行在调度程序上使用Kinect v2传感器的WPF可执行文件 [英] Running a WPF executable that makes use of the Kinect v2 sensor on a scheduler

查看:62
本文介绍了运行在调度程序上使用Kinect v2传感器的WPF可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Kinect v2传感器并录制视频的exe WPF.当我单击它时,它将按预期运行.

I have a exe WPF that makes use of the Kinect v2 sensor and recording videos. When I click it it runs as it should.

我已经在Win 10 Task Scheduler中安排了计划任务,以便每天在某个小时定期运行它.在任务管理器中,它似乎像一个进程一样运行,但是Kinect传感器无法打开(或者应用程序未激活Kinect传感器).

I have made a scheduled task in Win 10 Task Scheduler to run it regularly every day at a certain hour. In the task manager it appears to run like a process but the Kinect sensor fails to turn on (or the app does not activate the Kinect sensor).

我已经检查了任务计划程序中的设置和条件,一切都很好.我已经创建了一个.bat文件来打开应用程序,但仍然无法激活Kinect.

I have check the settings and conditions in the task scheduler and everything is fine. I have made a .bat file that open the app but still it fails to activate the Kinect.

有什么解决办法吗?

最好

兄弟

推荐答案

我对Kinect的经验很少,但对此感到有些好奇.

I have very little experience with Kinect but I was kind of curious about this one.

看这里:

http://dotneteers.net/blogs/vbandi/archive/2013/03/25/kinect-interactions-with-wpf-part-i-getting-started.aspx

似乎传感器旋转起来可能需要一段时间.

It appears that it can take a while for a sensor to spin up.

启动应用后,也许它处于睡眠模式,您需要将其唤醒.

Maybe it's in sleep mode off when your app starts and you need to wake it up.

所以我想知道您拥有哪些代码可以尝试唤醒它.

So I'm wondering what code you have that might try and wake it up.

没有任何代码,就很难计算出您正在做的事情.

Without any code, kind of tricky to work out what you're doing.

在粘贴整个应用程序或3行之前,我建议您先考虑一下,您要足够但不要太多.金发姑娘区.

I recommend some thought before you paste in your whole app or 3 lines.You want enough but not way too much. The Goldilocks zone.


这篇关于运行在调度程序上使用Kinect v2传感器的WPF可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆