How to check if monitor is present [closed]
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++?
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++?
Asked: 2020-01-30 05:14:01 -0600
Seen: 90 times
Last updated: Jan 30 '20
you can't, using opencv.
(and i doubt, this is possible at all)
train a deeplearning to check if monitor is plugged!
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.