diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-23 13:52:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-23 14:16:35 +0100 |
commit | 386795a320f8c007186c41b0d10a4f4281a9c28c (patch) | |
tree | 87c69863c44b7ad1794636102fea0ccc47911b2b /tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | |
parent | 45e48310779c8adec67de7cf76328aa7bd034466 (diff) |
video/opencv, tracker/nn: add exposure presets
Diffstat (limited to 'tracker-neuralnet/ftnoir_tracker_neuralnet.cpp')
-rw-r--r-- | tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index d8077326..cbfb3496 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -750,6 +750,22 @@ NeuralNetDialog::NeuralNetDialog() : tie_setting(settings_.force_fps, ui_.cameraFPS); #endif + { + const struct { + QString label; + exposure_preset preset; + } presets[] = { + { QStringLiteral("Near (1-4ft)"), exposure_preset::near }, + { QStringLiteral("Far (4-8ft)"), exposure_preset::far }, + { QStringLiteral("Custom"), exposure_preset::ignored }, + }; + + for (const auto& [label, preset] : presets) + ui_.exposure_preset->addItem(label, int(preset)); + + tie_setting(cs_.exposure_preset, ui_.exposure_preset); + } + connect(ui_.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); connect(ui_.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); connect(ui_.camera_settings, SIGNAL(clicked()), this, SLOT(camera_settings())); |