简体   繁体   English

佳能是否向其相机提供SDK文档

[英]Does Canon provide SDK documentation to their camera's

I'm currently using gphoto2 to interface to my Canon EOS M100 and remotely control it. 我目前正在使用gphoto2连接到我的佳能EOS M100并进行远程控制。 One feature that I really need is the ability to display images on the camera's lcd screen so it can be previewed. 我真正需要的功能之一是能够在相机的LCD屏幕上显示图像,以便可以预览图像。 Unfortunately, gphoto2 does not provide such support. 不幸的是,gphoto2不提供这种支持。 It looks like I need to develop my own driver to interface to the camera but to get started I need to know if Canon provides SDK documentation? 看来我需要开发自己的驱动程序以连接相机,但要开始使用,我需要知道佳能是否提供SDK文档? So far I haven't been able to find anything, though something must exist since gphoto2 exists? 到目前为止,我还没有找到任何东西,尽管自从gphoto2存在以来必须存在一些东西?

I'm not quite sure what exactly you mean by preview image though. 我不太清楚预览图像到底是什么意思。 If you mean the live view, gphoto2 should be able to do that, the Canon SDK definitely can. 如果您说的是实时取景,那么gphoto2应该可以做到,Canon SDK绝对可以。

In any case, Canon does provide a documentation for their SDK (the EDSDK: EOS Digital SDK) but it has a very similar feature set than gphoto2. 无论如何,佳能确实为其SDK提供了文档(EDSDK:EOS Digital SDK),但是它具有与gphoto2极为相似的功能集。 The documentation only covers how to use the software though, not the actual protocol. 该文档仅涵盖如何使用该软件,而不涉及实际协议。 gphoto2 reverse engineered the PTP commands Canon cameras use. gphoto2对佳能相机使用的PTP命令进行了反向工程。
PTP is the protocol most cameras use. PTP是大多数相机使用的协议。 It provides a few commands like taking a photo or accessing files on the camera but a lot of the functionality is usually done with proprietary commands defined by the camera vendors. 它提供了一些命令,例如拍摄照片或访问相机上的文件,但是许多功能通常是由相机供应商定义的专有命令来完成的。

To add custom behavior to the camera itself you'd need to write your own software in the style of Magic Lantern . 要向相机本身添加自定义行为,您需要以Magic Lantern风格编写自己的软件。 Canon does not provide any documentation for that either, it's all reverse engineering. 佳能也没有提供任何文档,都是反向工程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM