Face tracking fail on my web camera, but emotion work well

Face tracking fail on my web camera, but emotion work well

Hello , my problem is like this:

   when I use view capture or Emotion , the app works well with my web camera(not intel camera), but when I open the face location and landmark detection, pipeline.AcquireFrame always fail with return 0, and the app crashed with no error report.

  How can I fix the bug? the same results is produced by the samples in the SDK installed folder.

 

int main(int argc, wchar_t* argv[]) {

    UtilPipeline pipeline;

    pipeline.EnableImage(PXCImage::IMAGE_TYPE_COLOR);
    
    //
    //pipeline.EnableFaceLandmark();
    pipeline.EnableEmotion();
    pipeline.EnableFaceLocation();

    pipeline.Init();

    UtilRender *render = new UtilRender(L"Image test");
    render->SetSize(320, 240);

    while(1)
    {
        if(pipeline.AcquireFrame(false))
        {
            PXCImage *depth = pipeline.QueryImage(PXCImage::IMAGE_TYPE_COLOR);
            render->RenderFrame(depth);

            // use this to get raw buffer
            //PXCImage::ImageData rgbData;
            //rgb->AcquireAccess(PXCImage::ACCESS_READ, &rgbData);
            //rgbData.planes[0];
            //rgb->ReleaseAccess(&rgbData);

            // we must release the frame
            pipeline.ReleaseFrame();
        }
    }

    delete render;
}

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Did you mean you got error when you ran the face_tracking.exe sample?

Leave a Comment

Please sign in to add a comment. Not a member? Join today