Viscom Software VideoCap ActiveX Control

EffectFaceTrackBoxColor Method

Description:   

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

Usage:   

VideoCap1.EffectFaceTrackBoxColor iR, iG, iB

 iR
 The color value with red component of track box (0-255).
 iG
 The color value with green component of track box (0-255).
 iB
 The color value with blue component of track box (0-255).
 

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.EffectFaceCaptureFaceOnly true
VideoCap1.EffectFaceCaptureToFile true
VideoCap1.EffectFaceThreshold 65,20
VideoCap1.EffectFaceCaptureFileName "c:\temp\test1.jpg"
VideoCap1.EffectFaceTemplateFile "haarcascade_frontalface_alt.xml"
VideoCap1.Start