Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you just need another counter variable:

n = 0
for (x,y,w,h) in faces:
        ...
        cv2.imwrite("output/crop"+str(pic)+ "_" +str(n)+".jpg", imgCrop)
        n += 1