IMVPresenceDetection
The IMVPresenceDetection interface contains methods and properties to configure the MV Presence Detetion filter
Methods:
| AreaOfInterestCount | Count of areas of interes. |
| Color | Drawing color |
| DrawAreasOfInterest | Draw the areas of interest. |
| FillValid | Fill valid areas. |
| GetAreaOfInterest | Get the parameter of an area of interes. |
| GetAreaOfInterestState | Get the state of an area of interes. |
| Invert | Invert the presence detection function |
| SegmentationThreshold | Threshold for binary segmentation. |
| SelectAreaOfInterest | Select an area of interest. |
| SetAreaOfInterest | Set the parameter of an area of interes. |
Header file:
IMVPresenceDetection.h
Interface definition language file: IMVPresenceDetection.idl
Typelib: MVPresenceDetection
Interface ID: IID_IMVPresenceDetection
Property IMVPresenceDetection::AreaOfInterestCount
Declaration: Property Get AreaOfInterestCount As LongCount of areas of interes.
C Prototype:HRESULT get_AreaOfInterestCount(LONG *pVal);
Property IMVPresenceDetection::Color
Declaration: Property Get/Put Color As LongDrawing color
C Prototype:HRESULT put_Color(LONG newVal);
HRESULT get_Color(LONG *pVal);
Property IMVPresenceDetection::DrawAreasOfInterest
Declaration: Property Get/Put DrawAreasOfInterest As BooleanDraw the areas of interest.
C Prototype:HRESULT put_DrawAreasOfInterest(VARIANT_BOOL newVal);
HRESULT get_DrawAreasOfInterest(VARIANT_BOOL *pVal);
Property IMVPresenceDetection::FillValid
Declaration: Property Get/Put FillValid As BooleanFill valid areas.
C Prototype:HRESULT put_FillValid(VARIANT_BOOL newVal);
HRESULT get_FillValid(VARIANT_BOOL *pVal);
Method IMVPresenceDetection::GetAreaOfInterest
Declaration: Sub GetAreaOfInterest(Index As Long, Enabled As Boolean, Left As Long, Top As Long, Width As Long, Height As Long, Level As Double)Get the parameter of an area of interes.
Parameter:
C Prototype:
Index Index of area of interest. Enabled State of the area of interest. Left Left position of the area. Top Top position of the area. Width Width of the area. Height Height of the area. Level Presence detection level in percent of pixel. HRESULT GetAreaOfInterest(LONG Index, VARIANT_BOOL* Enabled, LONG* Left, LONG* Top, LONG* Width, LONG* Height, DOUBLE* Level);
Method IMVPresenceDetection::GetAreaOfInterestState
Declaration: Function GetAreaOfInterestState(Index As Long) As BooleanGet the state of an area of interes.
Parameter:
C Prototype:
Index Index of area of interest. HRESULT GetAreaOfInterestState(LONG Index, VARIANT_BOOL* value);
Property IMVPresenceDetection::Invert
Declaration: Property Get/Put Invert As BooleanInvert the presence detection function
C Prototype:HRESULT put_Invert(VARIANT_BOOL newVal);
HRESULT get_Invert(VARIANT_BOOL *pVal);
Property IMVPresenceDetection::SegmentationThreshold
Declaration: Property Get/Put SegmentationThreshold As LongThreshold for binary segmentation.
C Prototype:HRESULT put_SegmentationThreshold(LONG newVal);
HRESULT get_SegmentationThreshold(LONG *pVal);
Property IMVPresenceDetection::SelectAreaOfInterest
Declaration: Property Get/Put SelectAreaOfInterest As LongSelect an area of interest.
C Prototype:HRESULT put_SelectAreaOfInterest(LONG newVal);
HRESULT get_SelectAreaOfInterest(LONG *pVal);
Method IMVPresenceDetection::SetAreaOfInterest
Declaration: Sub SetAreaOfInterest(Index As Long, Enabled As Boolean, Left As Long, Top As Long, Width As Long, Height As Long, Level As Double)Set the parameter of an area of interes.
Parameter:
C Prototype:
Index Index of area of interest. Enabled State of the area of interest. Left Left position of the area.
Top Top position of the area. Width Width of the area. Height Height of the area. Level Presence detection level in percent of pixel. HRESULT SetAreaOfInterest(LONG Index, VARIANT_BOOL Enabled, LONG Left, LONG Top, LONG Width, LONG Height, DOUBLE Level);