I have built a HD5000 webcam attachment with high precision orientation for fine vertical alignment.
This design is based on a DIY ball joint with adjustment screws.
The camera viewport is integrated in Gmocappy through camview-emc
I have used the camview "util.crop" module to achieve zooming. Accuracy is better than 0.05mm