diff options
author | Pedro Silva <sparta14gaming@gmail.com> | 2022-05-11 19:20:14 +0100 |
---|---|---|
committer | Pedro Silva <sparta14gaming@gmail.com> | 2022-05-11 19:20:14 +0100 |
commit | c4efa268c0bd783cd8b04ed1cd6601ab5d3d398a (patch) | |
tree | bacf4ee1ed636f0e2e578607d276e1d6833888c0 /tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | |
parent | 1227e6ba5d23dad303761d57a85b6d4b221282b2 (diff) |
Added support for MJPEG compression for neuralnet
- Added support for MJPEG compression for neuralnet tracker
Diffstat (limited to 'tracker-neuralnet/ftnoir_tracker_neuralnet.cpp')
-rw-r--r-- | tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index afee8a68..3687a6cd 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -607,6 +607,8 @@ bool neuralnet_tracker::open_camera() if (fps) args.fps = fps; + args.use_mjpeg = s.use_mjpeg; + if (!camera->start(args)) { qDebug() << "neuralnet tracker: can't open camera"; @@ -786,6 +788,7 @@ neuralnet_dialog::neuralnet_dialog() : tie_setting(s.offset_up, ui.ty_spin); tie_setting(s.offset_right, ui.tz_spin); tie_setting(s.show_network_input, ui.showNetworkInput); + tie_setting(s.use_mjpeg, ui.use_mjpeg); connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); |