def METHOD_NAME(self):
    images = self._parse()
    ct = 0
    records = []
    for image in images:
        assert image != '' and os.path.isfile(image), \
            "Image {} not found".format(image)
        if self.sample_num > 0 and ct >= self.sample_num:
            break
        im = cv2.imread(image)
        h, w, c = im.shape
        rec = {'im_id': np.array([ct]), 'im_file': image, "h": h, "w": w}
        self._imid2path[ct] = image
        ct += 1
        records.append(rec)
    assert len(records) > 0, "No image file found"
    return records