Creates an image data generator that crops images based on bounding box coordinates.
cropImageGenerator(
files,
boxes,
resize_height = 456,
resize_width = 456,
standardize = FALSE,
batch = 32
)
A Tensorflow image data generator.
a vector of file names
a data frame or matrix of bounding box coordinates in the format left, top, width, height.
the height the cropped image will be resized to.
the width the cropped image will be resized to.
standardize the image to the range 0 to 1, TRUE or FALSE.
the batch size for the image generator.