Magic Lantern Firmware Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 166: Line 166:
 
Connect the camera via USB and run the script ''focus-snap.py'':
 
Connect the camera via USB and run the script ''focus-snap.py'':
 
python focus-snap.py
 
python focus-snap.py
βˆ’
It will display a live preview. If you want to change settings, close the window, press the Live View button on the camera (while it's still connected to USB) and you can change shooting settings. Put a short exposure time, like 1/250, 1/500, to avoid motion blur. Then run the script again.
+
It will display a live preview. If you want to change settings, close the window, press the Live View button on the camera (while it's still connected to USB) and you can change shooting settings. Put a short exposure time, like 1/250, 1/500, to avoid motion blur.
   
   
 
Look at the title bar of the preview window. It should display "Looking for focus peak". Now point the camera at some object and rotate the focus ring. The object will be focused; turn the ring a bit farther, and the object will become blurred. The title bar will say "Focus peak found". Now turn the focus ring back ''sloooooooowly'' and camera will take a picture when the object will come back into focus.
 
Look at the title bar of the preview window. It should display "Looking for focus peak". Now point the camera at some object and rotate the focus ring. The object will be focused; turn the ring a bit farther, and the object will become blurred. The title bar will say "Focus peak found". Now turn the focus ring back ''sloooooooowly'' and camera will take a picture when the object will come back into focus.
βˆ’  
 
==How it works==
 
==How it works==
 
My implementation estimates the amount of focus on the live preview image, and takes a picture when it detects a peak (well, almost).
 
My implementation estimates the amount of focus on the live preview image, and takes a picture when it detects a peak (well, almost).
Please note that all contributions to the Magic Lantern Firmware Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)