问题描述
我在写一个爱好项目来处理相机上的文件。
以前,我发现。
I'm writting a hobby project to deal with files on cameras.Previously I found issues with the camera and the FolderBrowserDialog.
我相信的是相机是使用MTP或PTP(图片传输协议不是点对点)。
What I believe is happing is that the camera is using MTP or PTP (Picture Transfer Protocol not peer-to-peer).
为了使与摄像机的接口更加无缝,我想使用PTP或MTP来访问摄像机。有没有任何MTP / PTP封装.Net人可以推荐?
In order to make interfacing with the camera more seamless I'd like to use PTP or MTP to access the camera. Are there any MTP / PTP Wrappers for .Net people can recommend? I'm keen to avoid writing my own or dabbling in unmanaged code if possible.
推荐答案
我发现这篇博文是由dimeby8发表的这是一个伟大的起点,有很多关于协议如何工作的有用的信息,但是它在托管实现方式上留下了很多希望。
I have found this blog post by dimeby8 which has been a great starting point with a lot of useful information about how the protocol works, however it leaves a lot to be desired in the way of managed implementations
我还发现一个粗略的C ++ / CLI MTP包装器 - 它没有功能,但是一个很好的示例混合管理/代码:
I have also found a crude C++/CLI MTP wrapper- it has next to no functionality but is a good demonstration of mixed managed/unmanged code:
还有一个CodePlex项目,但它没有演示传输或我感兴趣的编辑摄像机元数据(特别是相机日期)
And there's a CodePlex project but it doesn't demonstrate transfers or - what I'm interested in- editing camera metadata (specifically the camera date)
此项目是否获得了成功?
Have you had any success with this project?
这篇关于.Net MTP / PTP包装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!