Detect lines in image