Face Detection ActiveX Control

Add2BlackList

 

Added specific detected rectangle to blacklist. Before you output the image file, you can filter some detected rectangle.  You should use DetectedRectGetX, DetectedRectGetY, DetectedRectGetWidth, DetectedRectGetHeight methods to get the detected rectangle size, then pass these size to Add2BlackList method.
 

Public Function Add2BlackList(
 ByVal iX As Integer, _
 ByVal iY As Integer, _
 ByVal iWidth As Integer, _
 ByVal iHeight As Integer
)

 

Parameter
iX
Specifies the logical x-coordinate of the starting point of the detected rectangle.

iY
Specifies the logical y-coordinate of the starting point of the detected rectangle.

iWidth
Specifies the width of the detected rectangle.

iHeight
Specifies the height of the detected rectangle.

No Return Value

Example

   

Visual Basic Syntax
ix = FaceDetectionControl1.DetectedRectGetX(0)
iy = FaceDetectionControl1.DetectedRectGetY(0)
iwidth = FaceDetectionControl1.DetectedRectGetWidth(0)
iheight = FaceDetectionControl1.DetectedRectGetHeight(0)
 FaceDetectionControl1.Add2BlackList ix, iy, iwidth, iheight