How to check if camera is enabled?
Hello. Is there any way to check if my camera is enabled (I don't mean available and I know that the light of computer is on when camera is on),but I'm writing a program with many files and functions and I want to check if camera is enabled -> do this ,if not -> do that ? So, I want to have a function to tell me if camera is enabled or not and use it to check other things in my program, but I want to know if can be happen.
Ubuntu 18 , Python 3 Thanks.
what do you mean, "enabled"? OpenCV can't know if any video device in your system is currently being used. that's not OpenCV's purpose.
Ok,I undestand.