Code: Select all
('width = %d, height = %d' % (w, h))Code: Select all
('width = %d, height = %d' % (w, h))It looks like you've got the font scale missing, you have the colour straight after the font which is where the error is.supra wrote:Code: Select all
cv2.putText(frame, ('width = %d, height = %d' % w, h, (x,y)), font,(0, 255, 0), 2, cv2.LINE_AA)
Code: Select all
cv2.putText(frame, ('width = %d, height = %d' % (w, h)), (x,y), font, 1, (0, 255, 0), 2, cv2.LINE_AA)