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.

1
  • What software gets the video stream. Doesn't it get an error status when the camera is unplugged? Commented Nov 1, 2018 at 19:50

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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