1

I am having an issue as below.

I make a Qt application to show video got from the camera module. And when showing video, if the camera is unplugged from CSI bus, I must know that and show a warning on the screen like "Camera is unplugged!".

Is there any solution to know if the camera is unplugged from CSI bus when it is running? By Qt API or Linux command.

  • What software gets the video stream. Doesn't it get an error status when the camera is unplugged? – Chad Farmer Nov 1 '18 at 19:50
0

You can use vcgencmd get_camera in console, it will give you an output like:

$ vcgencmd get_camera
supported=2, detected=0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.