I am wondering how to go about localising a robot in a rectangle drawn on a smooth surface. Basically, there is a tape that lines the shape of the rectangle, and the color of this tape is unique in the scene. I have a camera mounted on the robot. So my question is, is it possible using image processing, and knowing the size of the rectangle, to localise the robot within this rectangle so it may navigate the area of the rectangle. Obviously the robot is driving in the same plane as the rectangle. Thanks
If you know the color and also how long the line is then, you can detect it (easy color detection with opencv) and estimate the distance between the line and the camera.
Basic concept you find how many pixels the line is occuping on the picture, you can find the focal length of your camera (from the manual) and you know also the actual size of the line in the real world so you can estimate the distance of the camera to the line.
as you can see in the picture