This is a simple program to create an empty image and save it with name con.jpg.
import cv2
import numpy
img = numpy.zeros([500,500],numpy.uint8)
cv2.imwrite("con.jpg",img)
But the image is not getting saved with this name con.jpg whereas if I write the name anything else like a , con1, cont, etc its working fine.
Any answer for this weird behavior of imwrite.