adding 'tolerance' option used to detect objects from single lines