title: Check if there is line between two end points or not, opencv
body: <p>I am using opencv to detect shapes, I have to detect a shape like this <img src="https://i.stack.imgur.com/5Bfs4.png" alt="enter image description here"></p>
  
  <p>this will be a hand drawn picture, and i am using kinect to detect the picture by checking on frames. Now I get 6 points for these kind of pictures, by removing noise, edge detection, finding contours and than approxDP, now I am not able to detect the shape is right faced, left face, down or up. As the points location change for each picture. </p>
  
  <p>So I want to know given two points, how can I check if there is a line segment between the points or not. After getting there two points, I can calculate from remaining points position that where is the shape pointing.</p>
  
  <p>If anyone has better solution, please share.</p>