title: opencv - Polyline and rectangle intersection
body: <p>I would like to get if a polyline and rectangle intersect on opencv+Python:</p>
  
  <pre><code>A = cv2.rectangle(frame,(384,0),(510,128),(0,255,0),3)
  pts = np.array([[1300,900],[1750,700],[1000,200],[600,200]], np.int32)
  pts = pts.reshape((-1,1,2))
  B = cv2.polylines(frame,[pts],True,(244,66,66),7)
  </code></pre>
  
  <p>How can I find if A intersect with B?
  Thank you</p>