Matura webcam face to face

27 Feb

By doing this, we can visualize the detected face immediately, and then update the emotions later once the API call returns.

The second sample app is a bit more interesting, and allows you to choose which API to call on the video frames.

On the left hand side, the app shows a preview of the live video, on the right hand side it shows the most recent API result overlaid on the corresponding frame.

This could also cause multiple threads to enter the Consume Result() function simultaneously, which could be dangerous, if the function is not thread-safe.

Finally, this simple code does not keep track of the Tasks that get created, so exceptions will silently disappear.

The user can specify the exact form of the API call, and the class uses events to let the calling code know when a new frame is acquired, or a new analysis result is available.To illustrate some of the possibilities, there are two sample apps that uses the library.Math Works Machine Translation The automated translation of this page is provided by a general purpose third party translator tool.Math Works does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.