Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

draw bounding box on image python cv2

# cv2.rectangle(img, pt1, pt2, color, thickness, lineType, shift)
cv2.rectangle(img, (x1, y1), (x2, y2), (255,0,0), 2)

"""
x1,y1 ------
|          |
|          |
|          |
--------x2,y2
"""
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #draw #bounding #box #image #python
ADD COMMENT
Topic
Name
1+4 =