Giter Club home page Giter Club logo

Comments (5)

jim-easterbrook avatar jim-easterbrook commented on July 25, 2024

I think this is a problem with libgphoto2 itself, rather than the Python interface, so you might get more help from the gphoto2 user mailing list. I did a quick web search and found this (http://gphoto-software.10949.n7.nabble.com/Switching-back-to-ive-view-mode-after-image-capture-RTIAcquire-td15391.html) which sounds similar to your problem.

Have you tried it without exiting the first camera & context, i.e. carry on using the same camera and context for the second capture? Alternatively, have you tried deleting the first camera and context objects as soon as they are finished with?

from python-gphoto2.

Elmout33 avatar Elmout33 commented on July 25, 2024

The link you gave don't give the answer ... just a similar problem :(

And yes I try to make with one "camera" and one "context" but I have the same problem ...

What's "deleting" ? I used the gp_camera_exit function wich is made for, not ?

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 25, 2024

The lack of an answer is why I don't have an answer.

gp_camera_exit releases the camera (only one program can control a camera at any one time) but the camera and context objects (and the C structs they are proxies of) still exist. The Python del statement can be used to delete them, freeing up any resources they are holding on to.
https://docs.python.org/2.7/tutorial/datastructures.html#the-del-statement

from python-gphoto2.

Elmout33 avatar Elmout33 commented on July 25, 2024

I found a solution on the net : make a Time.sleep(0,05) and its good !!

But when i try to make a real capture the focus is not make ....

And idea ?

Thank you !

Le samedi 20 août 2016, Jim Easterbrook [email protected] a écrit :

The lack of an answer is why I don't have an answer.

gp_camera_exit releases the camera (only one program can control a camera
at any one time) but the camera and context objects (and the C structs they
are proxies of) still exist. The Python del statement can be used to
delete them, freeing up any resources they are holding on to.
https://docs.python.org/2.7/tutorial/datastructures.html#the-del-statement


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJay_HExcIhSBA0vto7LGdfIBAecmcPks5qhxC7gaJpZM4JpEsA
.

Cordialement,
Sylvain Lerouge

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 25, 2024

I've not done any capturing with my Canon cameras, and have no experience with Nikon. Have you tried doing what you want with the gphoto2 command line tool? If that works then you'll know it's possible and you just have to find the magic combination of libgphoto2 calls that's needed.

from python-gphoto2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.