Code Monkey home page Code Monkey logo

canon.eos.framework's Introduction

REMARKS:

I no longer own a Canon Eos Camera. So, any bugs you find - and there are many - I am unable to fix. If you want me to keep working on this project, feel free to sponsor or even lend me a camera. I am willing to put more work into this but without a camera, this is not going to make any sense at all.

Canon.Eos.Framework (Alpha Version)

Canon.Eos.Framework tries to provide a better and more convenient way to integrate the Canon EOS SDK into .NET applications. You still need to apply for and download the original SDK which includes all the DLLs.

How to use it

See the included sample program for details.

canon.eos.framework's People

Contributors

simonbuehler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

canon.eos.framework's Issues

Support for Type 1 cameras

Hi esskar. I've tried to take a picture with my eos 20d using your framework. Program releases the shutter but after that, nothing is displayed on the panel, and i get following message in the console:
A first chance exception of type 'Canon.Eos.Framework.EosException' occurred in Canon.Eos.Framework.dll

Camera is set to Normal mode. According the API (I have edsdk v2.7) eos 20d is "type 1" camera. In the API ref. for kEdsObjectEvent_DirItemCreated there's a note

"Because objects are not indicated for type 1 protocol standard cameras, (that is, objects are indicated as NULL), you must again retrieve child objects under the camera object to identify the new objects." Myabe this is related to the issue. Do you know how to sole this problem? Thank you in advance and please, forgive me my poor language skills.

Issue in EosImageTransporter.cs

{Root}\esskar-Canon.Eos.Framework-18411b0\esskar-Canon.Eos.Framework-18411b0\Canon.Eos.Framework\Internal\EosImageTransporter.cs

I think:
return new EosFileImageEventArgs(imageBasePath) ==> return new EosFileImageEventArgs(imageFilePath);

Thanks for your Eos.Framework which is very good.

anybody have a problem when use Canon.Eos.Framework in windows 7

we development a software control two cameras use Canon.Eos.Framework. when we run it in windows xp, it's ok, but when run it in windows 7, start it is OK. it can start liveView mode when in open the software. but when i hit the button take picture or change the driver len use(EDSDK.EvfDriveLens_Far2), the software is crashed. can't continue. i test in several machine. three installed XP is OK. two installed windows 7 the same problem. any idea? thank you!

NullreferenceException in EnsureOpenSession

hi,

tried your code but it crashes at

at EDSDKLib.EDSDK.EdsOpenSession(IntPtr inCameraRef)
at Canon.Eos.Framework.EosCamera.EnsureOpenSession() in C:\Users\test\Downloads\esskar-Canon.Eos.Framework-af05dc4\esskar-Canon.Eos.Framework-af05dc4\EosCamera.cs:line 88

also a CallbackOnCollectedDelegat MDA is thrown before

EosException Device Busy

Hi all,
I did have this system working nicely - both the demonstration "Cockpit" and my own app using the framework. Thanks so much to Esskar.
However, this morning my own app (simply provides a command line interface to take a photo) is not working - the camera sounds like it is taking a photo, but no photo is stored either on the camera or on the pc.
I then tried using the Cockpit test again and got the following error:

Failed to take a picture.
Canon.Eos.Framework.EosException: Device Busy.
Failed to take picture at Canon.Eos.Framework.Helper.Util.Assert(U1nt32 result String message) in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\Helper\Util.cs:line 28 at Canon.Eos.Framework.EosCamera.TakePicture() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.Framework\EosCamera.cs:line 475 at Canon.Eos.CameraCockpit.Forms.CockpitForm.< HandleTakePictureButtonClick> b_0() in D:\esskar-Canon.Eos.Framework-Oaacd29\Canon.Eos.CameraCockpit\Forms\CockpitForm.cs:line99 at Canon.Eos.CameraCockpit.Forms.CockpitForm.SafeCalI(Action action, Action]. exceptionHandler) in D:\esskar-Canon,Eos.Framewok-Oaacd29\Canon.Ecs.CameraCockpit\Forms\CockpitForm.cs: Iine 154

As I said, it was working. What have I changed? Any suggestions would be welcome.

Storagetype

Hi Esskar

Thanks for your great work!

I have a small question: because I need the pictures as fast as possible on my pc, I would like to shoot without a memory card. I tested this in the EOS utility, and it did gain me about half a second gain (the camera seems to write to the memory card first, and only then transfers the data over usb). However in your framework I did't find a way to set the storagetype to 'none'. Can you help me with that.

Thanks in advance
m00se

Save to host?

Hi

I'm trying to save pictures to host, using your sample code but with the following changes:

try
{
camera.SavePicturesTo = EosCameraSavePicturesTo.Host;
camera.SavePicturesToHostLocation(@"c:\temp\camera");

camera.TakePicture();

}

The folder is created and the camera snaps an image but no file is created. Am I doing it wrong?

I'm using an EOS600D, Windows XP and Visual Studio 2010.

Nonetheless, awesome work!

could not take picture because Auto Focus Failed


Failed to take a picture.

Canon.Eos.Framework.EosException: Take Picture Auto Focus Failed.

Failed to take picture.

at Canon.Eos.Framework.Helper.Util.Assert(UInt32 result, String message) in e:\TDDOWNLOAD\down\esskar-Canon.Eos.Framework-0aacd29\esskar-Canon.Eos.Framework-0aacd29\Canon.Eos.Framework\Helper\Util.cs:line 28

at Canon.Eos.Framework.EosCamera.TakePicture() in e:\TDDOWNLOAD\down\esskar-Canon.Eos.Framework-0aacd29\esskar-Canon.Eos.Framework-0aacd29\Canon.Eos.Framework\EosCamera.cs:line 475

at Canon.Eos.CameraCockpit.Forms.CockpitForm.b__0() in e:\TDDOWNLOAD\down\esskar-Canon.Eos.Framework-0aacd29\esskar-Canon.Eos.Framework-0aacd29\Canon.Eos.CameraCockpit\Forms\CockpitForm.cs:line 99

at Canon.Eos.CameraCockpit.Forms.CockpitForm.SafeCall(Action action, Action`1 exceptionHandler) in e:\TDDOWNLOAD\down\esskar-Canon.Eos.Framework-0aacd29\esskar-Canon.Eos.Framework-0aacd29\Canon.Eos.CameraCockpit\Forms\CockpitForm.cs:line 154

live view not working

i am using the latest version of the EOS Framework and a new T3 Rebel. Having problems with stopping the live view. Sometimes it works fine and other times it will crash the program.

SDK version

@esskar what version of EDSDK you are used for work with your framework? I try it with v2.3, all works perfect with the 40D camera. after that my software were used with the 600d, and we got some problems. THis time we used EDSDK.dll version 2.4.0.1. After that we try to replace those dll's to newer v. 2.10.0.10, camera loaded corectly, liveview started. So what version of SDK used and same question about camera model?

Architecture question

Hello,

1.) why there is EosObject class when only EosCamera extends this class.
2.) will your implementation works in multi-thread application?
3.) It's later possible to have more than one kind of Exception (if it really makes sense)?
4.) What camera did you use for testing?

Btw very impressive piece of work.

Compilation errors

I have obtained a new copy of the code. I get errors when I try and compile it under the C# express version of Visual Studio 2008. The error is given as " Default parameter Specifiers are not permitted" the framework code contains three instances of this error. My question is does this code require a version of c# professional to compile? I have tried removing the default specifier and simply get additional errors relating to number of constructor arguments. Can you give me some advise as to the minimum compiler package needed to handle this code?
Thanks

EosSavePicturesToHost Issue

I am trying to implement saving the pictures to some locations in the computer:

camera.TakePicture();
camera.SavePicturesToHost("G:\Test_Canon");

However, there is always a error :

Unhandled Exception: Canon.Eos.framework.EosException: Device Busy.
Failed to set SaveTo Location.

I will appreciate your answer.

License

I was hoping to use this framework as part of a larger project, but can't see any license text anywhere (maybe I've missed it), so am hesitant to do so (since I believe no license means you retain all rights, as per https://help.github.com/articles/open-source-licensing).
It would be great if the intended license could be clarified.

Camera does work only one time

The program only works the first time.

After turning the camera's off and on the program is able to start a second time.

Is there a fix for this?

Thanks in advance for your answer.

I can't run this project

I can't run this project. This error occurs....:
error: A project with output type of class library cannot be started directly. In order to debug this project, add an executable project to this solution which reference the library project. Set the executable project as the startup project.

please give me solution.

Issue with stopping the live view

I am having problems with stopping the live view. I am using 1100D, latest framework and EDSDK 2.10.
The CameraCockpit application will crash when I try to stop the live view.

Any idea?

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.