Git Product home page Git Product logo

pyedsdk's Introduction

Python library to control Canon cameras via EDSDK in Windows.

For sample usage, see test.py

To install the python module in windows:

    install python 3.1 32bit (can't be 64bit)
    install MinGW (with g++)
    install Python for Windows Extesions for python 3.1 32bit
    get EDSDK
    copy $(EDSDK_ROOT)/Library/EDSDK.lib to $(MINGW_ROOT)/lib
    execute the following in this dir (where "python" is the python you installed above):
        python setup.py build -c mingw32
        python setup.py install
    copy $(EDSDK_ROOT)/Dll/*.dll to the cwd where you execute from
    Disable User Account Control. If you had it turned on, you'll need to reboot.

To compile the test C++ program in windows:

    g++ -o test.exe test.cpp edsdk/Camera.cpp edsdk/Utils.cpp edsdk/Filesystem.cpp -lEDSDK -lole32

pyedsdk's People

Contributors

andrewrk avatar thejoshwolfe avatar

Stargazers

 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

pyedsdk's Issues

int too long to convert

I know this is probably a long shot since this repository hasn't undergone any changes in many years, but I just discovered this repository and tried it with the most recent Canon SDK under python3.9. With some small syntax changes (python 2->3) it actually seems to work but I get some errors that I don't quite understand.

Exception ignored on calling ctypes callback function: <function ObjectHandler_py at 0x000001BA3AD47670>
Traceback (most recent call last):
  File "c:\PyEDSDK.py", line 56, in ObjectHandler_py
    DownloadImage(object)
  File "c:\PyEDSDK.py", line 92, in DownloadImage
    Call(edsdk.EdsGetDirectoryItemInfo(image, byref(dirinfo)))
ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert

Do you have any ideas what it could be and do you maybe have any updated code or idea reference to another python library that interfaces with the Canon SDK? I'd be grateful for some pointers / help! Thanks!

python 2.x

Please port the library to python 2.7

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.