Working like a charm.
Working, now based on canny edge detection.