[Prototype] detect straight line with tolerance