def get_specific_image(self, key, frame):
    files = os.listdir(self.sourcedir)
    file = files[0]
    for file_check in files:
        if (key in file_check):
            file = file_check
            break
    filepath = os.path.join(self.sourcedir, file)
    video = cv2.VideoCapture(filepath)
    video.set(1, frame)
    (ret, im) = video.read()
    return im
def get_specific_image(self, key, frame):
    files = os.listdir(self.sourcedir)
    file = files[0]
    for file_check in files:
        if (key in file_check):
            file = file_check
            break
    filepath = os.path.join(self.sourcedir, file)
    video = cv2.VideoCapture(filepath)
    video.set(1, frame)
    (ret, im) = video.read()
    return im