Some are Boojums--

purpose: Grant's less-than-daily weblog.

Thu, 21 Feb 2008

Tethered capture with gphoto2

It turns out that it's fairly easy to use a linux box to take pictures using my Nikon D50 and display the results to the screen:

$ gphoto2  --capture-image --interval 10 -F 2 --hook-script showpic.sh

The above takes two frames ten seconds apart (making a D50 into a very expensive webcam). Alternatively, I could use the following to use the camera normally but have the pictures show up on the computer screen:

$ gphoto2 --capture-tethered --hook-script showpic.sh

The "hook script" is what does the actual display after each shot:

$ cat showpic.sh
#! /bin/bash

self=`basename $0`

case "$ACTION" in
    init)
    echo "$self: INIT"
    # exit 1 # non-null exit to make gphoto2 call fail
    ;;
    start)
    echo "$self: START"
    ;;
    download)
    echo "$self: DOWNLOAD to $ARGUMENT"
    eog ${ARGUMENT} &
    ;;
    stop)
    echo "$self: STOP"
    ;;
    *)
    echo "$self: Unknown action: $ACTION"
    ;;
esac

exit 0

Pretty darn cool!

Wed, 30 Jan 2008

Shaving the D50

The nikon D50 viewfinder is only about 95% accurate. Specifically, it misses about 50px total on the left and right, and 75px total at the top and bottom. Here's a fix:

$ convert foo.jpg -shave 25x38 +repage foo_shaved.jpg

This way the final result is what was actually seen.

Mon, 30 Jul 2007

Lighting our mixer

I'm learning how to use my Nikon D50 with off-camera flash.

Here's a shot of our mixer:

Kitchen Aid mixer

and here's a shot of the set-up:

Kitchen Aid mixer set-up shot

Learn to light (better than I have so far) at http://strobist.blogspot.com.

Sat, 31 Mar 2007

Rosco gel sampler

I'm having fun with my Nikon D50. Using the DIY macro studio and two external flashes:

Rosco gel sampler

Learn to light (better than I have so far) at http://strobist.blogspot.com.

pyblosxom::1.4.3 01/10/2008

All contents Copyright 2006 Grant Goodyear.
Creative Commons License
This work is licensed under a Creative Commons License.