1

How can i start a OpenCV application without the console window in background? I have a app that uses the webcam and i would like to see only the webcam window.

Thank you.

Andrei Bularca
  • 914
  • 2
  • 11
  • 29

2 Answers2

1

You get a console window because the program you created is a console program, this has nothing to do with OpenCV. You need to change the type of your program from console to standard (windowed) Windows.

This SO post lists the different solutions to do this, but the easiest is to change your main() function name to WinMain().

Community
  • 1
  • 1
CharlesB
  • 86,532
  • 28
  • 194
  • 218
-1

You should use this

int main(){ FreeConsole(); }

it work fine, checked :)

MaSza
  • 435
  • 7
  • 22