C# WPF break statement to close the camera

General information about Neurotechnology and its software

C# WPF break statement to close the camera

Postby longbowsolution » Jun 04, 2018 16:24

Hi,

Im using the below code but i failed to set timer to close the camera, the camera keep running until the face is captured. How i can put "break" statement to close the camera if it detect nothing, or else i couldn't proceed the rest of the code.
Appreciated for help!

Code: Select all
      NBiometricStatusstatus = biometricClient.Capture(subject);
longbowsolution
 
Posts: 10
Joined: May 31, 2018 14:02

Re: C# WPF break statement to close the camera

Postby MartynasV » Jun 04, 2018 16:48

longbowsolution wrote:Hi,

Im using the below code but i failed to set timer to close the camera, the camera keep running until the face is captured. How i can put "break" statement to close the camera if it detect nothing, or else i couldn't proceed the rest of the code.
Appreciated for help!

Code: Select all
      NBiometricStatusstatus = biometricClient.Capture(subject);

Hello,

Set Timeout value, so after it is expired the task will be stopped:
Code: Select all
biometricClient.Timeout = value;
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 390
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 7 guests

cron