How to check if monitor is present [closed]

asked 2020-01-30 05:14:01 -0500

dineshlama gravatar image

How do i first check if display or monitor is present or not in opencv and if present than only call the imshow method in c++?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2020-01-30 14:16:24.574766


you can't, using opencv.

(and i doubt, this is possible at all)

berak gravatar imageberak ( 2020-01-30 05:28:23 -0500 )edit

train a deeplearning to check if monitor is plugged!

LBerger gravatar imageLBerger ( 2020-01-30 08:52:20 -0500 )edit

This is not related to OpenCV.

You will need to dig into low level API. On Unix and with X11, you should be able to retrieve information about display. Something like xrandr, lspci -v allow getting this info.

Eduardo gravatar imageEduardo ( 2020-01-30 14:14:30 -0500 )edit