pull/3471/head
kallaballa 2 years ago
parent 3f4c186ca8
commit 6906d0e9d6
  1. 12
      modules/v4d/samples/beauty-demo.cpp

@ -46,10 +46,10 @@ float skin_contrast = 0.7f;
//Show input and output side by side
bool side_by_side = true;
//Scale the video to the window size
bool scale = true;
bool stretch = true;
#else
bool side_by_side = false;
bool scale = false;
bool stretch = false;
#endif
//Face landmark detector
@ -337,7 +337,7 @@ int main() {
window->printSystemInfo();
facemark->loadModel("assets/models/lbfmodel.yaml");
window->setScaling(scale);
window->setStretching(stretch);
if (!OFFSCREEN) {
window->imgui([window](ImGuiContext* ctx){
@ -346,10 +346,10 @@ int main() {
Begin("Effect");
Text("Display");
Checkbox("Side by side", &side_by_side);
if(Checkbox("Scale", &scale)) {
window->setScaling(true);
if(Checkbox("Scale", &stretch)) {
window->setStretching(true);
} else
window->setScaling(false);
window->setStretching(false);
#ifndef __EMSCRIPTEN__
if(Button("Fullscreen")) {

Loading…
Cancel
Save