Ask Your Question

Revision history [back]

Efficient solution for simple scaled shape problem

I have images with 3 bright red (reflected laser) points defining the vertices of a constant triangle. The triangle will be significantly scaled and slightly translated in each image, but not at all rotated. All I want is the scale factor relative to some reference size.

I imagine this is a relatively easy problem in opencv but I'm hoping someone can point me to a very efficient algorithm. I need it to run on a low power CPU, maybe raspberry pi or similar, ideally processing 5Mp images at more than 10 fps, although I could settle for less resolution. Is this achievable? If so, algorithm suggestions would be very much appreciated.