diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-04 09:07:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-04 09:07:35 +0100 |
commit | 58b4133cc98701b630286e53e37d4b540d9436f2 (patch) | |
tree | d229ea6d4308e5055241616c0abce605ca973717 | |
parent | aa88a3fecad630d06cbc44428207b39b99a98395 (diff) |
initialize camera params in right order
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp index 25a19ee7..fad53d60 100644 --- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp +++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp @@ -170,15 +170,14 @@ void Tracker::StartTracker(QFrame *parent_window) this->video_frame = parent_window;
video_frame->setAttribute(Qt::WA_NativeWindow);
video_frame->show();
- apply(s);
video_widget = new PTVideoWidget(video_frame, this);
QHBoxLayout* video_layout = new QHBoxLayout(parent_window);
video_layout->setContentsMargins(0, 0, 0, 0);
video_layout->addWidget(video_widget);
video_frame->setLayout(video_layout);
video_widget->resize(video_frame->width(), video_frame->height());
- start();
camera.start();
+ apply(s);
start();
reset_command(PAUSE);
}
|