1 | initial version |
oh, that's a simple one:
you want to write opencv13.png
, but you're missing the point (well, the dot, pun intended ..)
cv2.imshow('opencv'+str(i)+'.png',img) # .png !
will do the trick ;)
2 | No.2 Revision |
oh, that's a simple one:
you want to write opencv13.png
, but you're missing the point (well, the dot, pun intended ..)forgot to put a dot between filename and extension
cv2.imshow('opencv'+str(i)+'.png',img) # .png !
will do the trick ;)
3 | No.3 Revision |
oh, that's a simple one:
you want to write opencv13.png
, but forgot to put a dot between filename and extension
cv2.imshow('opencv'+str(i)+'.png',img) filename = 'opencv'+str(i)+'.png'
cv2.imwrite(filename, img) # .png !
cv2.imshow(filename, img) # don't replicate
will do the trick ;)