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
1
vote
0 answers

Is there a way to trigger an action camera using python

trying to make a timelapse using a cheap action cam - model: hyundai cnu3000 my first attampt was using it as a webcam, with a simple opencv script to get the imgs: import cv2 cap = cv2.VideoCapture(0) # reseting resolution to max it out # since…
Frank Musterman
  • 642
  • 1
  • 7
  • 14
1
vote
1 answer

Python - gphoto2: how to capture image Canon 5D Mark IV

I am using gphoto2 to capture photos from camera So far, I can capture photo successfully using command line command = ["sudo","gphoto2","--set-config","manualfocusdrive=6","--set-config","capturetarget=1","--capture-image"] call(command) However,…
Phong Vu
  • 2,726
  • 6
  • 24
  • 52
1
vote
1 answer

Python - gphoto2: how to convert output to JSON or python array

I am working with gphoto2, most commands are working, but I don't know how to use the output from command-line for next operations. For example: I want to get list of photos in camera command =…
Phong Vu
  • 2,726
  • 6
  • 24
  • 52
1
vote
0 answers

Raspberry Pi: Canon Camera disconnected after an unusing time

I have a Canon 5DS IV, connect to a RPi 3 Model B+ via USB port. I am using gphoto2 to capture photo. Problem is: after around 5-6 hours not in use but camera + Pi are still on, camera disconnects to the Pi, I run lsusb, it return nothing about…
Phong Vu
  • 2,726
  • 6
  • 24
  • 52
1
vote
1 answer

Gphoto2 capture and download

I'm using gphoto2 capture image and download but it takes 3 or 4 seconds. I want it to only take 1 second; is it possible? Can anyone help me please? This is my code: time gphoto2 --capture-image-and-download --stdout > /dev/null Which…
1
vote
1 answer

Downloading Image to a specific folder using gp_filesystem_get_file()

Trying my hands on libgphoto2 library examples and while going through simple-capture.c file. Can i download foo.jpg captured image to a specified folder on my computer? As far as i understood, in capture_to_file() camera_file_path.folder is the…
Milind Deore
  • 2,887
  • 5
  • 25
  • 40
1
vote
0 answers

How do I use C libraries installed using Homebrew

I used Homebrew to install gphoto2 and libgphoto2 for use in a camera-control application using C++. I have confirmed that header files were linked in /usr/local/includes: Screencap of includes folder on my system Based on the sample code…
Tim Harding
  • 299
  • 1
  • 12
1
vote
2 answers

get current status of gphoto2

I have gphoto running with a --wait-event-and-download argument, so that the pictures I take using my infrared remote are saved to the computer. I have a second script set up to interrupt the wait process and take a picture programatically, like…
ajlowndes
  • 179
  • 1
  • 10
1
vote
0 answers

gphoto2 Script in localhost php

I am trying to run gphoto2 command in LAMP on Ubuntu 15. This is my PHP script c.php: When I run this on terminal it works fine, but when I run it in browser with…
Dave1
  • 48
  • 1
  • 10
1
vote
1 answer

How does gp_camera_file_get work?

I'm new to libgphoto2 and had some questions about where the actual image memory is located. It seems that photos are accessed via an object called a CameraFile. There's an example included in the source called sample-capture.c that has a function…
mynameisjohnj
  • 421
  • 4
  • 12
1
vote
1 answer

How do I link two libraries to my program using cmake?

I want to write a program in c++ that uses the two lybraries libgphoto2 and opencv3.0. Therefore, I want to include a self written header file, witch contains some functions that make use of functions defined in the libgphoto2 library, into my main…
Markus H
  • 31
  • 4
1
vote
3 answers

java.lang.NoClassDefFoundError when trying to instantiate class from jar

I did found quite a lot about this error, but somehow none of the suggested solutions resolved the problem. I am trying to use JNA bindings for libgphoto2 under Ubuntu in Eclipse (moderate experience with Java on Eclipse, none whatsoever on Ubuntu,…
UncleBob
  • 1,233
  • 3
  • 15
  • 33
0
votes
0 answers

Configuring Settings for Sony A7RM2 using Python and gphoto2

I'm trying to configure the shutter speed, aperture, and iso for my Sony A7RII, but I can't figure out how to access these settings in the code and can't find where this is referenced in the documentation. This camera model is listed as one of the…
0
votes
0 answers

gphoto2 --capture-tethered capture event not being detected

i'm running gphoto2 on a Linux Raspberry Pi, waiting for a photo to be taken on a Canon EOS 1200D which is connected to the RPi via a USB cable. Most of the time (every once in a while it does work), it seems that the photo capture event isn't…
sazira
  • 1
  • 1
0
votes
0 answers

While recording a video using libgphoto2, can I get the last video frame for analysis?

Is it possible to get the last frame of a video being recorded by using the C libgphoto2 library ? Is it also possible to achieve this result using the gphoto2 command line utility ? If yes, what would be the commands ? I want to get this frame…