andrewrk / pyedsdk

Python library to control cameras via EDSDK
21 stars 11 forks source link

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