Viscom Software VideoCap ActiveX Control

EffectFaceShowBackProjection Method

Description:   

Enable or disable shows the back projection image. Useful for finding threshold for black and gray. The threshold value for black and gray will affect the result of face detection.  You must call EffectFaceShowBackProjection before call Start. After the back projection image, you may call EffectFaceThreshold with different threshold value to finding best threshold value.

Usage:   

VideoCap1.EffectFaceShowBackProjection bShow

bShow
 true - enable back projection image.
 false - disable back projection image.

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.EffectFaceCaptureFileName "c:\temp\test1.jpg"
VideoCap1.EffectFaceTemplateFile "haarcascade_frontalface_alt.xml"
VideoCap1.Start