//-----------------------------------------------------------------------------
Tracker::Tracker()
	: frame_count(0), commands(0), video_widget(NULL), tracking_valid(false)
{
	qDebug()<<"Tracker::Tracker";
	TrackerSettings settings;
	settings.load_ini();
	apply(settings);
	camera.start();
	start();
}
Example #2
0
//-----------------------------------------------------------------------------
// ITracker interface
void Tracker::Initialize(QFrame *video_frame)
{
	qDebug("Tracker::Initialize");
	// setup video frame	
	this->video_frame = video_frame;
	video_frame->setAttribute(Qt::WA_NativeWindow);
	video_frame->show();
	update_show_video_widget();
	TrackerSettings settings;
	settings.load_ini();
    camera.start();
    apply(settings);
	start();
}