Page 1 of 1

digital camera driver

Posted: Wed Dec 23, 2015 11:48 am
by ehsan_canon
Dear Folks;
Do know if there is a digital camera driver to be used for Python video capture?

Re: digital camera driver

Posted: Wed Dec 23, 2015 6:38 pm
by ghans
Which type of camera module ? DSLR ? IP-Camera ? Camcorder ? Digital compact ? USB webcam ? A random "camera module" from Alibaba/EBay ?

ghans

Re: digital camera driver

Posted: Thu Dec 24, 2015 10:14 am
by ehsan_canon
Thanks for your reply. It is DLSR camera. I could take a live preview via python, however I need a DLSR driver (lib) to import in the Python to be used in cv2.VideoCapture (OpenCV command).
I look forward to hearing from you.

Re: digital camera driver

Posted: Thu Dec 24, 2015 10:39 am
by AndyD
I am not sure how easy it would be to get it to work. Unless there is some sort of interface to gphoto2 for opencv, you will need to jump through a few hoops.

I found this question on superuser.com - Can I use my DSLR as webcam through gphoto2 + v4l2loopback?. That talks about using gphoto2 and a number of other programs to make a DSLR have a webcam interface. If you can get that working, you could then use OpenCV (with Python).