Friday, July 18, 2008

Linux: Using the Canon EOS IDs Mark III with gphoto2

I've got the Canon EOS 1Ds Mark III capturing and downloading images via its built-in USB port (not via the external WFT-E2A ethernet/usb dongle) at just under 1fps (105 seconds for 100frames). The 21MP JPG images are 5.2MB each.

If I turn the JPG quality all the way to its lowest setting, the images are 1.5MB each and I get 100f/75s = 1.3fps.



$ gphoto2/gphoto2 --shell
gphoto2: {gphoto2: {.../gphoto2-2.4.2} /> } /> list-config
/main/settings/capturetarget
/main/settings/capture
/main/capturesettings/focuslock
gphoto2: {gphoto2: {.../gphoto2-2.4.2} /> } /> set-config capture=1
gphoto2: {gphoto2: {.../gphoto2-2.4.2} /> } /> capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt0000.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...
gphoto2: {gphoto2: {.../gphoto2-2.4.2} /> } />

I can also extract metadata for images on the CF card:

gphoto2: {gphoto2: {.../gphoto2-2.4.2} /store_00010001/DCIM/880CANON> }
/store_00010001/DCIM/880CANON> show-info 0N8H8866.JPG
Information on file '0N8H8866.JPG' (folder '/store_00010001/DCIM/880CANON'):
File:
Name: '0N8H8866.JPG'
Mime type: 'image/jpeg'
Size: 3076382 byte(s)
Width: 5616 pixel(s)
Height: 3744 pixel(s)
Time: Thu Jul 17 09:54:58 2008
Thumbnail:
Mime type: 'image/jpeg'
Size: 3132 byte(s)
Width: 160 pixel(s)
Height: 120 pixel(s)
Audio data:
None available.

And once I set-config capture=1, I can see more config options:

gphoto2: {gphoto2: {.../gphoto2-2.4.2} /store_00010001/DCIM/880CANON> }
/store_00010001/DCIM/880CANON> list-config
/main/settings/eos-time
/main/settings/eos-synctime
/main/settings/capturetarget
/main/settings/capture
/main/imgsettings/eos-iso
/main/imgsettings/eos-whitebalance
/main/capturesettings/eos-exposurecompensation
/main/capturesettings/picturestyle
/main/capturesettings/eos-meteringmode
/main/capturesettings/focuslock
gphoto2: {gphoto2: {.../gphoto2-2.4.2} /store_00010001/DCIM/880CANON> }
/store_00010001/DCIM/880CANON>

The gphoto2 maintainer accepted my patch to libgphoto2, so the Mark III will eventually work by default.


I can also download 160x120 image thumbnails from CF:

gphoto2: {gphoto2: {...le/jholt/gphoto2-2.4.2} /store_00010001/DCIM/880CANON> } /store_00010001/DCIM/880CANON> get-thumbnail 0N8H8846.JPG
Downloading '0N8H8846.JPG' from folder '/store_00010001/DCIM/880CANON'...
Saving file as thumb_0N8H8846.jpg

No comments: