import cv2, os import numpy as np dir_images = "LBPdata/" imgs = os.listdir(dir_images) def getLBPimage(gray_image): gray_image = image imgLBP =