Viscom Software VideoCap ActiveX Control

EffectFaceThreshold Method

Description:   

  Set the threshold for black and gray. It will affect the result of face detection.  You may call EffectFaceThreshold if the face detection result is not very good.

Usage:   

VideoCap1.EffectFaceThreshold vmin, smin

vmin
 the threshold for black . The value from 1-100

smin
 the threshold for gray . The value from 1-100
 

Return Value:

No Return value.

Example:   

This Visual Basic example shows how to use face detection

VideoCap1.EffectType =1
VideoCap1.EffectFxType=4
VideoCap1.EffectFaceShowBackProjection=true
VideoCap1.EffectFaceCaptureFaceOnly true
VideoCap1.EffectFaceCaptureToFile true
VideoCap1.EffectFaceThreshold 65,20
VideoCap1.EffectFaceCaptureFileName "c:\temp\test1.jpg"
VideoCap1.EffectFaceTemplateFile "haarcascade_frontalface_alt.xml"
VideoCap1.Start