def store_img(img, add, path): name = 'image_' + str(add) + '.png' cv2.imwrite(os.path.join(path, name), img)