[英]C# Break point, selection of frame kinect v2
I m using the sdk 2, sample face basic.(C# programming) I would like to insert a breakpoint or flow only a predefinite number of frame, or use a predefinite frame as image for analyze it. 我使用的是sdk 2,基本为样面。(C#编程)我想插入一个断点或仅流动预定数量的帧,或使用预定帧作为图像对其进行分析。 Where and how can I get in the code to do this?
我在哪里以及如何获得代码来执行此操作? I am in acquisition frame function, but I do not know how to act to influence the frame to be processed.
我正在获取帧功能,但是我不知道如何采取行动来影响要处理的帧。
using (FaceFrame faceFrame = e.FrameReference.AcquireFrame())
{
if (faceFrame != null)
{
// get the index of the face source from the face source array
int index = this.GetFaceSourceIndex(faceFrame.FaceFrameSource);
// check if this face frame has valid face frame results
if (this.ValidateFaceBoxAndPoints(faceFrame.FaceFrameResult))
{
// store this face frame result to draw later
// here i can extract the feature of face of all frame
this.faceFrameResults[index] = faceFrame.FaceFrameResult;
}
I would like to want to extract the feature of one particular of some particular frame. 我想提取某个特定框架的特定特征。
Thank you for your reply! 谢谢您的回复!
您可以在任何需要的地方简单地使用System.Diagnostic
命名空间提供的Debugger.Break()
方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.