ehsan_canon
Posts: 15
Joined: Wed Nov 18, 2015 9:59 am

digital camera driver

Wed Dec 23, 2015 11:48 am

Dear Folks;
Do know if there is a digital camera driver to be used for Python video capture?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: digital camera driver

Wed Dec 23, 2015 6:38 pm

Which type of camera module ? DSLR ? IP-Camera ? Camcorder ? Digital compact ? USB webcam ? A random "camera module" from Alibaba/EBay ?

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

ehsan_canon
Posts: 15
Joined: Wed Nov 18, 2015 9:59 am

Re: digital camera driver

Thu Dec 24, 2015 10:14 am

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.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: digital camera driver

Thu Dec 24, 2015 10:39 am

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).

Return to “Python”