Comments (8)
Yes but when i Calling gp_camera_capture_preview() then i always take a picture and the mirror is always going up and down. In piggyphoto there is an attribute called _leave_locked and when its True the mirror is flipped up and is locked. Then i can be is a loop and can display the image
from python-gphoto2.
I assume piggyphoto is calling the gp_camera_capture_preview() function to get a preview. If so, you can do that with python-gphoto2, then use gp_file_get_data_and_size() on the returned file to get the image data, then display it in a preview window of your choice (Qt, Tk, OpenGL, etc.).
from python-gphoto2.
I assume that's a camera configuration setting (gp_camera_get_config & gp_camera_set_config). All I know about libgphoto2 is what's in its documentation, and python-gphoto2 just provides a Python interface to that API.
from python-gphoto2.
In libgphoto2 gp_camera_capture_preview() takes 3 parameters in python-gphoto2 it only takes 2 parameters.
The parameters are
camera - a Camera
file - a CameraFile
context - a GPContext
The file parameter is missing is that a mistake in python-gphoto2?
from python-gphoto2.
No, it is not a mistake. The CameraFile is an output parameter that is allocated and returned by the function, as described in the README.
from python-gphoto2.
@jim-easterbrook is it possible to get like a video stream as a live preview?
from python-gphoto2.
Not with libgphoto2. I'd post a link to the libgphoto2 documentation but the web site is currently unavailable. I'm not aware of any libgphoto2 function that can stream anything.
from python-gphoto2.
from python-gphoto2.
Related Issues (20)
- Missing pre-req's(?) after building libgphoto2 from source on Raspberry Pi HOT 3
- Can not set datetime on Canon EOS 1200D HOT 4
- equivalent of gphoto2 --reset HOT 1
- delete a file HOT 2
- gp_camera_get_single_config HOT 2
- Socket error after gp_camera_exit in windows/msys2 HOT 15
- Faster way to copy files from camera HOT 7
- Sony FX3 overshoot HOT 1
- `delete_file()` does not delete file HOT 9
- Segmentation Fault segfault on gp.Camera.autodetect() on Github Actions Runner HOT 21
- LGPL vs. GPL license? HOT 8
- Test Virtual Camera HOT 4
- Missing bindings for gp_port_new, gp_port_open, and gp_port_reset? HOT 2
- capture_preview() broken in v2.5.0 HOT 4
- having trouble getting gphoto2 on rpi HOT 3
- use python-gphoto2 in Windows system HOT 1
- Always connected capture anytime HOT 1
- Github Actions Python 3.12 environment. HOT 1
- Is live data acquisition available in the library? HOT 1
- Error When Installing with "Local" libgphoto2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gphoto2.