Hi,
I would like to detect the lines on a normal running track using the CMUcam5. This should lead to a navigation system, where pixy tells the runner wether he crosses a white line.
As the lines are white and the rest of the track is orange, I am trying to achieve this by negative detecting. My problem is, that I get too many or not enough blocks/ that the white lines are too narrow. Most of the times the blocks don’t end at the lines or I have about 5 blocks between two lines.
I have tried an algorithm where I take just the biggest block pixy sees and compare its x coordinate to the middle of the field of view as well as one, where my board compares all blocks with the right signature in their position and if there are two blocks left and right of the middle it compares their distance to the middle.
The problem is that with both ways my programm always “pulls” to the left side and I don’t know what to do about it.
Is there a way to use the view I get when I start pixymon Without having a Color set? You know, the one with many equally sized white sqares that sees corners and stuff fairly well (this one: http://i74.photobucket.com/albums/i241/cmucam/Image%20043_zpsnjzpxikc.png )? I think the main problem is that because of the view my lines seem not parallel but like a triangle to pixy, so it can’t detect them right.
Does anyone have an idea how to solve this?