I am working on OpenCV-Python. I have a image like this(bellow image,but without light green lines) from live feed by webcam.I have found corners coordinates,
(array([[[280, 109]],
[[162, 206]],
[[189, 341]],
[[329, 389]],
[[444, 283]],
[[412, 160]]])
of polygon. How to draw a line around recognized polygon like light green lines shown on image?
You can use drawContours()
function:
cv2.drawContours(img, contours, -1, (0,255,0), 3)
The documentation explains it well:
http://docs.opencv.org/master/d4/d73/tutorial_py_contours_begin.html#gsc.tab=0
cv2.drawContours(img,[contours],-1,(0,255,0),3)
This is working properly.Thanks @Mahm00 - user_fs10 2016-01-23 13:16
What can I do for this - user_fs10 2016-01-23 12:20