Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
for contour in contours:
    [x,y,w,h] = cv2.boundingRect(contour)
    cv2.rectangle(gray,(x,y),(x+w,y+h),(255,0,255),2)
    cv2.putText(frame,'Show the text',(x-10, y-10), font, 1, (0,255,0), 4,cv2.CV_AA)