Code Monkey home page Code Monkey logo

Comments (4)

esskar avatar esskar commented on July 28, 2024

i am on vaction right now, let me get back to you by next week

from canon.eos.framework.

esskar avatar esskar commented on July 28, 2024

you are right. i behaves strange when run from an command line.
i think for the event triggering to work, it has to run on a different thread, but not sure.
I added a sample solution to the project. A lot of features missing but i will try to smooth it up during the upcoming week.
Feel free to test and report bugs. Thanks for the feedback.

from canon.eos.framework.

hannesjung avatar hannesjung commented on July 28, 2024

hi esskar!
first of all - thank you so much for all your effort that you put into this! your framework is exactly what i was looking for.
i have a question concerning the savePicturesToHost functionality:

i'm trying to capture a picture with my canon 5d mark ii and then save it to a folder. this is what i have so far:

var framework = new EosFramework();
var cameras = framework.GetCameraCollection();

  foreach (var camera in cameras)
  {
    Console.WriteLine("Connected to {0}", camera.DeviceDescription);
    try
    {
      camera.SavePicturesToHost("./pictures/");
      camera.TakePicture();
    }
    catch (EosException eos)
    {
      Console.Error.WriteLine("Last Command Failed with error {0}, {1}", eos.EosErrorCode, eos);
      Console.ReadLine();
    }
  }

when camera.SavePicturesToHost("./pictures/"); the folder gets created but the pictures don't appear. however the pictures i took in the previous try get stored in the root folder sometimes.

before that i tried to add an eventhandler for camera.PictureTaken but it never got called, i also didn't get it to work with another thread. I would be glad if you could help me.

thanks again for such a great framework!
hannes

from canon.eos.framework.

esskar avatar esskar commented on July 28, 2024

yes, i have noticed that my self. but it only happens if you run this from the command line.
the EDSDK seems to use a strange threading model or depends on running in an own thread: i have to figure that out.
but it should work when running from a WinForms or WPF application

from canon.eos.framework.

Related Issues (19)

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.