title: How to fill a polygon in OpenCV?
body: <p>The Python code given below draws a triangle, how can I fill it with a color inside? Or another easier way to draw a triangle in OpenCV?</p>
  
  <pre><code>pts = np.array([[100,350],[165,350],[165,240]], np.int32)
  cv2.polylines(img,[pts],True,(0,255,255),2)
  </code></pre>