Register · Search · Software · Join Upload & Sell · Hosting

Moderated by: Fred Miranda
Username   Password

FM Forum Rules
Canon SLRs, primes, and zooms lenses reviews
FM Forums | Canon-mount SLRs | Join Upload & Sell   
Search Used
end
  

Archive 2009 · Computer controlled focus, API?
  
 
floris
Offline
Dedicated FM
Upload & Sell: On
p.1 #1 · Computer controlled focus, API?


I was wondering if anyone knew whether it was possible to control the focus of an AF lens on one of the modern cameras like the 5D2. And, if so, is there an API such that I can control the focus from a programming language like C/python? Any help would be much appreciated, thanks!

By control the focus I mean, I want to tell the lens what distance to focus at, or to literally just control the USM motors, whatever to that effect is possible.

Aug 13, 2009 at 03:37 AM
nathanlake
Offline
Dedicated FM
Upload & Sell: On
p.1 #2 · Computer controlled focus, API?


I don't know for sure, but Canon is not exactly third-party friendly. I really doubt they would publically document how to control their cameras/lenses.

Aug 13, 2009 at 03:40 AM
kewlcanon
Online
Dedicated FM
Upload & Sell: On
p.1 #3 · Computer controlled focus, API?


Maybe checkout this site:

http://magiclantern.wikia.com/wiki/Magic_Lantern_Firmware_Wiki

They've been tinkering with 5D2.

Aug 13, 2009 at 03:42 AM
 



stanj
Offline
Dedicated FM
Upload & Sell: On
p.1 #4 · Computer controlled focus, API?


Yes, this can be done. You need to register as a developer with Canon and you can get a Mac/PC SDK. It's pretty poorly architected but it works. I use it for night exposure control and a buddy at work uses it for focus control (helican focus or whatever) to get more DOF for macro. You write code in C / ObjC on the Mac side - I don't know / care for PC

Aug 13, 2009 at 05:05 AM
floris
Offline
Dedicated FM
Upload & Sell: On
p.1 #5 · Computer controlled focus, API?


Awesome, thanks guys!

Aug 13, 2009 at 06:53 PM
BrianO
Offline
Dedicated FM
Upload & Sell: On
p.1 #6 · Computer controlled focus, API?


kewlcanon already mentioned Magic Lantern, but I thought you might find this link particularly useful:

http://magiclantern.wikia.com/wiki/Focus

Aug 14, 2009 at 08:18 AM
end




FM Forums | Canon-mount SLRs | Join Upload & Sell

end
    
 

You are not logged in. Login or Register

  Username   Password  
Lost your password?