为何输出的都是0
为何输出的都是0
Int32 nfaces = fdata.QueryNumberOfDetectedFaces();
Console.WriteLine(nfaces);//为何输出的都是0
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
// Create the SenseManager instance
PXCMSenseManager sm = PXCMSenseManager.CreateInstance();
// Enable face trackcing
sm.EnableFace();
// Initialize the pipeline
sm.Init();
// Stream data
while (sm.AcquireFrame(true).IsSuccessful())
{
// Get a face instance here (or inside the AcquireFrame/ReleaseFrame loop) for configuration
PXCMFaceModule face = sm.QueryFace();
// face is a PXCMFaceModule instance
PXCMFaceData fdata = face.CreateOutput();
// Get the number of tracked faces
Int32 nfaces = fdata.QueryNumberOfDetectedFaces();
Console.WriteLine(nfaces);//Why the output is 0
// Clean up
fdata.Dispose();
}
// Clean up
sm.Dispose();
}
}
}

Int32 nfaces = fdata.QueryNumberOfDetectedFaces();
Console.WriteLine(nfaces);//为何输出的都是0
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
// Create the SenseManager instance
PXCMSenseManager sm = PXCMSenseManager.CreateInstance();
// Enable face trackcing
sm.EnableFace();
// Initialize the pipeline
sm.Init();
// Stream data
while (sm.AcquireFrame(true).IsSuccessful())
{
// Get a face instance here (or inside the AcquireFrame/ReleaseFrame loop) for configuration
PXCMFaceModule face = sm.QueryFace();
// face is a PXCMFaceModule instance
PXCMFaceData fdata = face.CreateOutput();
// Get the number of tracked faces
Int32 nfaces = fdata.QueryNumberOfDetectedFaces();
Console.WriteLine(nfaces);//Why the output is 0
// Clean up
fdata.Dispose();
}
// Clean up
sm.Dispose();
}
}
}

...全文
相关推荐
s5pv210 timer0 pwm输出
s5pv210 通过timer0 输出pwm 控制蜂鸣器
Tensorflow2.0如何在网络中规定多个输出
有时,我们需要使所建立的网络输出多个层的结果(例如神经风格迁移中)。这时,我们需要在网络中定义输出。下面用VGG19网络举例。 加载VGG19模型 vgg = tf.keras.applications.VGG19(include_top=False, weights='imagenet') vgg.trainable = False 对于迁移学习,可以参考:Tensorflow2.0之tf.keras.applacations迁移学习 。 vgg.summary() 得到网络结构: Model: "vgg19" ______________________________________
DAC无法输出0V的问题应该如何解决
该问题由某客户提出,发生在STM32F100R8T6器件上。据其工程师讲述:在使用STM32F100的DAC时,不管如何设置输出的值,最低只能输出到63mV,无法输出0V,而63mV的电压经过他的放大电路,对产品的性能产生较大的影响。故其工程师询问是否有办法可以输出0V?
奥瑞输出中心 3.0
奥瑞服装输出管理中心 喷墨切割一体机 输出管理中心
电流模拟量0~20mA输出典型电路计算书
方便硬件开发者生成0~20mA模拟量,相细写明了计算过程及相关参数选型。


