我正在使用 sdk 2,sample face basic。(C# 编程)我想插入一个断点或只流动预定数量的帧,或者使用预定帧作为图像来分析它。我在哪里以及如何获取代码来执行此操作?我在获取帧功能,但我不知道如何影响要处理的帧。
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;
}
我想提取某个特定框架的一个特定特征。
感谢你的回复!