andrewrk / pyedsdk Goto Github PK
View Code? Open in Web Editor NEWPython library to control cameras via EDSDK
Python library to control cameras via EDSDK
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
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!
Please port the library to python 2.7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.