I've just recently got a perl camera control script running under linux (using gphoto) that i can take large hdr photos with. so I've now started looking into building a motorised panoramic rig that i can control with this same script. I'd like to use either 2 or 4 motors on it, with 4 would allow me to adjust the nodal point of the camera from the script. but then here is my problem, there is no point in adding the extra cost and weight of the extra motors unless i can automate the calibration.

is it possible to get take 2 or more photos and have something say hugin to stitch the images and then if there are any parrallex errors it outputs a value that could be sent back to the script to adjust the position of the camera. then repeat the process until it stitches without any errors.