Vision Solution
Then we can use the find straight edge function.
Now that we have our horizontal reference, we want to find the angle of the needle in much the same way. There are a few problems though, the biggest being the glare on the front of the gauge. To solve that we use the sophisticated engineering solution of a piece of paper with a hole cut in it.