Ask Your Question

Revision history [back]

click to hide/show revision 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 ;)

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 ;)

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 ;)