   Computer Vision line detection from an outline
  Hello there,This is just a post to ask for help/links to theories to do with automatically generating lines based on an outline. Here is a demo of what im working from / how far I am:As you can see I can create a clear outline of the objects I am trying to track. I can even make the line just one pixel thick or several pixels thick if needed. What I would like now is for another step where the lines of the P are detected and drawn so that they are perfectly straight (not necessarily perfect to the image) and I can use this data later to try to determine which kind of shape I am looking at. This is great for capital letters/numbers in licence plates because they have lots of straight lines except for 6 and 9. Will look into curves later.Thanks again,Stuartp.s. yes I have done google searches and found some interesting articles but they mainly appear to be dealing with general line detection of an entire scene and are far more complex than necessary. I already have a grid 'map' of 1 and 0 showing the outline I want to check for lines.   
  I'm not sure if I completely understand what you're looking for, but here's something I found:http://en.wikipedia.org/wiki/Hough_transformCould you explain your goal in a different way?   ;I'm not sure if I completely understand what you're looking for, but here's something I found:http://en.wikipedia....Hough_transformCould you explain your goal in a different way?Ok, imagine you had just that blue outline and it was the P from the video. It would be nice if as well as a grid of 1s and 0's representing the blue outline, i had a list of equations built in the form y=mx + c with the starting and end positions on the grid in terms of x or y. This would mean that you culd redraw the outline to be more straight and even use the equations to help recognize the letters/shapes and determine aspects of the object, such as orientation etc. Is that clearer? The hugh transform is along the right lines.   ;  I understand.Could you not use an edge detector on your binary grid to detect the edges and then represent those as lines?I'm sorry I don't have an answer with certainty but this seems to be helpful:http://www.indiana.edu/~dll/B657/B657_lec_hough.pdfBest of luck.   