0

我正在使用 affdex SDK 来检测情绪,而在检测情绪时我需要向用户显示相机流以便能够看到自己,我正在使用 Aforge 库和 Affdex SDK。当我在主线程中编写两者时,相机流工作正常但情绪检测停止,所以我尝试线程但仍然启用相机但检测不起作用。知道如何解决这个问题吗?

穿线部分:

Thread camThread = new  Thread(camStart);
        camThread.Start();

public void camStart()
    {
        videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
        videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);
        videoSource.NewFrame += new NewFrameEventHandler(video_NewFrame);
        CloseVideoSource();
        videoSource.Start();
    }
4

1 回答 1

0

affdexMe 应用程序可能会提供一些有关如何执行此操作的线索,因为它提供了您描述的类似功能: https ://github.com/Affectiva/affdexme-win

于 2018-05-17T23:05:03.373 回答