Questions tagged [libgphoto2]

gPhoto is a program and library framework that lets users download pictures from their digital cameras. The libgphoto2 library gives you access to hundreds of models of digital cameras on several platforms.

gPhoto2 is a free, redistributable, ready to use set of digital camera software applications for Unix-like systems, written by a whole team of dedicated volunteers around the world. It supports more than 1800 cameras

gPhoto2 runs on a large range of UNIX-like operating system, including Linux, FreeBSD, NetBSD, MacOS X, etc. gPhoto is provided by major Linux distributions like Debian GNU/Linux, Ubuntu, Gentoo, Fedora, openSUSE, Mandriva, etc.

libgphoto2 is freely available and distributed under the terms of the GNU LGPL.; the other gphoto programs are freely available and distributed under the terms of the GNU GPL.

Newer libgphoto2 versions also support Media Transfer Protocol (MTP) based media players since their communications protocol is based on the Picture Transfer Protocol (PTP).

For a deeper view of the inner working of libgphoto2, please read the appropriate chapter in the gPhoto2 manual

72 questions
0
votes
1 answer

Python - gphoto2 How to figure out what a function does?

I am playing around with gphoto2 and I found that camera object has a public function file_get_info(). I would like to know: what this function does how to call it But so far I have failed to find any information about it. This is what I…
elena
  • 91
  • 2
  • 12
0
votes
0 answers

How do I use Python threading to send one command at a time to a usb device?

I'm hoping that you can look at my code and tell me how I'm not using threading correctly. I'm trying to send commands to my usb attached camera via Python's threading module. "get_live_view" tells the camera to take a low resolution image every 2…
user1106278
  • 747
  • 1
  • 9
  • 18
0
votes
1 answer

Could not open camera using gphoto2 in python

I try to control a Sony Alpha using Python/gphoto2 on a Raspberry PI. I've tried a number of python bindings (python-gphoto2, gphoto2-cffi, ...) but they all fail at the instruction to create a camera object (eg. my_cam = gphoto.Camera()) with the…
Chu Bun
  • 513
  • 1
  • 5
  • 17
0
votes
0 answers

Can we format SD card present in dslr from desktop connected over usb cable

I have to format the SD card present in dslr (Nikon d3400) from desktop (preferably ubuntu) connected over usb cable. I am using ubuntu desktop with libgphoto2 camera library to control my dslr. I can capture image, record video, copy images from…
Amol
  • 49
  • 1
  • 7
0
votes
1 answer

Does Canon provide SDK documentation to their camera's

I'm currently using gphoto2 to interface to my Canon EOS M100 and remotely control it. One feature that I really need is the ability to display images on the camera's lcd screen so it can be previewed. Unfortunately, gphoto2 does not provide such…
tyleax
  • 1,556
  • 2
  • 17
  • 45
0
votes
2 answers

Why I can't change the name of my files in my Python program using os.listdir

I'm starting to create a new 3D scanner with a Raspberry Pi 3B + and a Canon 6D. I have a part of the Python code to recover the images thanks to the gphoto2 library but I can not change the name of the recovered images, currently, I have two files:…
ValentinDP
  • 323
  • 5
  • 14
0
votes
2 answers

PTP error in gphoto2 running against Linux kernel 2.6.21.3

In the hope that there is a gphoto or Linux kernel guru hanging around out there I am asking this question here. I am trying to build a custom front end to the Linux libgphoto2 library. For the moment I am using gphoto2 to call into the library. I…
anonymous coward
0
votes
1 answer

Can't detect camera with gphoto2 in Ubuntu(VM)

I'm trying to control my EOS 1000D with gphoto2. But can't detect with gphoto2 it. with lsusb I can find the Camera. Any idea what is going wrong? My setup: VirtualBox Version 5.2.18 r124319 (Qt5.6.2), Ubuntu 18.04.1 LTS, gphoto2 2.5.15,…
Dominic
  • 15
  • 4
0
votes
1 answer

How to install gphoto2?

Whenever I try to install gphoto2 using pip this error message pops up: C:\Python27>pip install gphoto2 Collecting gphoto2 Using cached…
MaciasMucias
  • 1
  • 1
  • 2
0
votes
1 answer

Python 3: Using subprocess to take photo via gphoto2 but can't set custom filename doing it.

everything works fine while I do it via terminal but when I use python script it doesn't. Command: gphoto2 --capture-image-and-download --filename test2.jpg New file is in location /capt0000.jpg on the camera Saving file…
Piotr Kołtan
  • 45
  • 3
  • 11
0
votes
1 answer

'[crit]' 398#398: *45 error - loading jpg from gphotofs mounted file system

Background: Busy with a project with the goal of serving jpg from a nikon d750 camera with nginx. Physical key -> GPIO RPI -> Callback -> websocket -> client -> show jpg from: gphotofs mounted file system. Everything works fine as long as I don't…
0
votes
1 answer

Memory leaks in PyQt w/ QImage in a loop

I'm working on a Python application right now that uses PyQt5 and CFFI bindings to libgphoto2. I have this section of code that will poll the camera every 1/60 of a second to get a preview image and then schedule to draw it on the screen. def…
Benjamin
  • 1,223
  • 1
  • 13
  • 22
0
votes
1 answer

Python Anaconda - gphoto2

OS: LINUX - UBUNTU I downloaded and installed gphoto2 following the instructions given in this link: https://hyfrmn.wordpress.com/2015/02/03/install-libgphoto2-and-gphoto2-from-source-on-raspberry-pi/ It is working as a charm on terminal. I can…
Jesh Kundem
  • 960
  • 3
  • 18
  • 30
0
votes
1 answer

Problems while compiling libgphoto2

I am trying to get the latest version of libgphoto2 (2.5.12) and gphoto2 (2.5.11) to work on Debian Jessie. I downloaded and extracted the source files from git and followed the install instructions: autoreconf --install --symlink ./configure…
MonsterMax
  • 35
  • 7
0
votes
2 answers

How to set Shutterspeed of Ricoh Theta S via USB using gphoto or ptpcam?

I want to control a ricoh theta 360 camera using a raspberry pi 3 and ubuntu mate. I got gphoto2 via apt-get and ptp build from source. I also have the latest firmware version for the theta installed. Further, the exposure program was set to 1…
user3063903
  • 95
  • 1
  • 7