QuercusVL Programming Manual
virtual void OnIncidence(Incidence inc)
{
printf("OnIncidence (%d,%d), %d,"
switch(inc.get_Type())
{
}
if(inc.get_Images().Count()>0) printf("Image 0 secs:%d\n",
else printf("Image NOT FOUND\n");
if(inc.get_Video().IsValid()) printf("Video %dx%d duration:%d frameRate:
else printf("Video NOT FOUND\n");
}
virtual void OnSummary(Summary sum)
{
printf("OnSummary (%d ,%d) ",sum.get_Unit().get_Id(),sum.get_DetectorId());
switch(sum.get_DetectorType())
{
}
}
};
CEventHandler EventHandler;
int main(int argc, char *argv[])
{
if(VLLoad()==-1) return -1;
if(!System::Initialize("Central.ini","Central.log",&EventHandler))
{
printf("Can't initialize system.\n");
return -1;
}
printf("Press [RETURN] to exit\n");
getchar();
System::Terminate();
VLUnload();
return 0;
}
Parts of the sample code:
#include "VLWrapperCpp"
The only header file required to interact with QuercusVL
using namespace VL;
Quercus Technologies
,inc.get_Unit().get_Id(),inc.get_DetectorId(),inc.get_Id());
case IT_RED_LIGHT_VIOLATION:
case IT_STOPPED_CAR_VIOLATION:printf("IT_STOPPED_CAR_VIOLATION\n");
inc.get_Images().Item(0).get_Timestamp().get_Seconds());
%d\n",inc.get_Video().get_Width(),inc.get_Video().get_Height(),
inc.get_Video().get_Duration(),inc.get_Video().get_Framerate());
case DT_SPEED:
case DT_QUEUE:
case DT_PRESENCE:
default:break;
printf("IT_RED_LIGHT_VIOLATION\n");
break;
break;
printf("DT_SPEED\n");
printf("DT_QUEUE\n");
printf("DT_PRESENCE\n");
®
from C++.
break;
break;
break;
17
Need help?
Do you have a question about the SmartLoop TS and is the answer not in the manual?