2

I have a PC with multiple monitors.

I want to display different windows in different monitor with OpenCV/C++.

How can I show the window in the specific window?

Thanks!

Halley Wang
  • 35
  • 1
  • 8
  • Maype this can help you with something: [http://stackoverflow.com/questions/24540091/opencv-fullscreen-windows-on-multiple-monitors] – Mara Black Mar 25 '17 at 11:14
  • @Skywrath Thanks for the reply! But I don't want to use with QT.. I was wondering if this can be done just by OpenCV. Now I'm going to display multiple images in an array, and each size is set as a monitor size. – Halley Wang Mar 26 '17 at 08:48
  • Have you tried to use http://docs.opencv.org/2.4/modules/highgui/doc/user_interface.html#movewindow with (values ~= your screen resolution) for that? Wonder if will disappear or move to the other monitor. If the second is true - just find values which would suit you better. If it doesn't help - i guess you will need to use API provided by your OS to move window to different monitor. – Dmitrii Z. Mar 27 '17 at 14:11
  • @DmitriiZ. Yeah, after trying this ...it works!!! Thank you! =D – Halley Wang Mar 31 '17 at 05:13
  • Nice to hear that, I've posted this as an answer :) – Dmitrii Z. Mar 31 '17 at 06:11
  • For debugging purpose I'd highly recommend using Image watch VS extension https://marketplace.visualstudio.com/items?itemName=WolfKienzle.ImageWatch – TripleS Mar 31 '17 at 07:43

1 Answers1

3

You should use MoveWindow with (values ~= your screen resolution). Just find values which would suit you better, you can try using your OS API to get values for screen resolution, or get this data from system variables

Community
  • 1
  • 1
Dmitrii Z.
  • 2,287
  • 3
  • 19
  • 29