title: OpenCV - Extracting arrows from chart
body: <p>I'm trying to perform OpenCV on a flow chart to extract the structure (image 1). All images are computer generated. I can extract the blocks fine, and remove them from the image so we are just left with the arrows (image 3). </p>
  
  <p>The issue is I'm unsure how to extract the connections. I.e. when I apply HoughLinesP there is large number of lines generated for each arrow (image 2). Does anyone know a method of extracting the lines such that I only get one 'line' for each arrow extracted?</p>
  
  <p><img src="https://i.stack.imgur.com/4OjNB.png" alt="Original image">
  <img src="https://i.stack.imgur.com/GjZWk.png" alt="HoughLinesP applied to arrows">
  <img src="https://i.stack.imgur.com/VqsHu.png" alt="Arrows segmented from image"></p>