I've handled many a shrimp over the years. As long as you're careful, the exoskeleton of the shrimp is very resilient. A ruler outside the tank is OK, but the camera needs to be perpendicular to the tank glass, and is highly susceptible to reflections and flash. I used to do it that way, but now I find it much quicker.
Another option is to take a small plastic dish, with a flat bottom, and put the shrimp in it with enough tank water to barely cover the shrimp. A friend of mine in Germany does this (with a custom made box made of Plexiglas with a ruler and glued it to the bottom of the dish). Then places his camera on a tripod directly above the dish.
Another option is to take a small plastic dish, with a flat bottom, and put the shrimp in it with enough tank water to barely cover the shrimp. A friend of mine in Germany does this (with a custom made box made of Plexiglas with a ruler and glued it to the bottom of the dish). Then places his camera on a tripod directly above the dish.