MATLAB: Method for calculating pixels in the distance varying image

image analysisimage processingImage Processing Toolboximage segmentation

I am designing a rover for fields. The rover will move in a field and can turn it's direction once it detects the arrow signboard. For this, I am using a simple web camera and capturing the images in regular time intervals. Now after converting these images into binary (after converting into binary my background is black and foreground is white), I am calculating a number of white pixels in regular intervals, but I am unable to change my rover's direction from this method. Please tell is this approach is good or suggest other methods for this task. Thanks in advance.

Best Answer

Why can't you just send a turn right or left signal via the RF communication? Why does it have to look at signs with arrows on them and do image analysis of them?
If you did need to do image analysis, just compute the orientation and split the blob in two and find out which side has more pixels on it. That side will be the side with the arrowhead on it. By the way, you forgot to attach a picture of your arrow.