def get_csv_row(self, image_name, _image, annotation):
    'Return the CSV row corresponding to the given annotation.'
    return {'image_name': image_name, 'x_min': annotation.x_min, 'y_min': annotation.y_min, 'width': (annotation.x_max - annotation.x_min), 'height': (annotation.y_max - annotation.y_min), 'label': annotation.class_idx}
Return the CSV row corresponding to the given annotation.
def get_csv_row(self, image_name, _image, annotation):
    
    return {'image_name': image_name, 'x_min': annotation.x_min, 'y_min': annotation.y_min, 'width': (annotation.x_max - annotation.x_min), 'height': (annotation.y_max - annotation.y_min), 'label': annotation.class_idx}