Viscom Software VideoCap ActiveX Control

EffectFaceTrackBoxStyle Method

Description:   

 Set the style of trackbox.  If the face detected, it will display track box.

Usage:   

VideoCap1.EffectFaceTrackBoxStyle iStyle

 iStyle
  0 - Rectangle + Ellipse track box.
  1 - Thin Rectangle track box.
  2 - Ellipse track box.
  3 - Strong track box.

 

Return Value:

No Return value.

Example:   

This Visual Basic example shows how to use face detection

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