How do I load the images and the csv file for object detection in tensorflow?

Viewed 42

Data loader in Image Classification

Small Target Image

CSV File

I am new to object detection and don't know how to use the dataloader for the task. In image clasification, I know that we can load data for image classification from image_dataset_from_directory in tensorflow and I am looking for similar function to load the images and annotation files in csv format.
I have a csv file that contains the bounding box co-ordinates in the form of (x0,y0,width,height) for every image. How do i load the csv annotation file along with the images for object detection?

Images names are 1.jpg,2.jpg,3.jpg and so on. I have added a picture of how I load the images directly from the folder structure for image classification.

I am trying to use the TensorFlow library in python language.

0 Answers
Related