QuercusVL Programming Manual
Example in C++
if(detector.get_Type() == DT_RED_LIGHT)
{
RedLightDetector myRedLightDetector;
myRedLightDetector = detector;
// assignment operator
ProcessRedLightDetector(myRedLightDetector);
}
Example in C
if(Detector_get_Type(hDetector) == DT_RED_LIGHT)
{
ProcessRedLightDetector(hDetector);
}
3.14.1. Properties
●
CalculateMetrics
C++:
bool get_CalculateMetrics()
C:
int VL_RedLightDetector_get_CalculateMetrics (int h)
Returns true if the detector is enabled to calculate the metrics.
In C, the parameter “h” is a handler of detector (RedLightDetector).
●
Distance
C++:
int get_Distance()
C:
int VL_RedLightDetector_get_Distance (int h)
Returns the distance from the camera to the detector; in millimetres.
In C, the parameter “h” is a handler of detector (RedLightDetector).
●
Length
C++:
int get_Length()
C:
int VL_RedLightDetector_get_Length(int h)
Returns the length of the detector; in millimetres.
In C, the parameter “h” is a handler of detector (RedLightDetector).
●
DelayTime
C++:
int get_DelayTime()
C:
int VL_RedLightDetector_get_DelayTime(int h)
Quercus Technologies
46