Encountered an error when running prepare_dataset.py with the following command.
python prepare_dataset.py
mainly due to the following error.
TypeError: crop_minAreaRect() takes 6 positional arguments but 33 were given.
This has to do with the format of imageur5k_annotations_train.json where "bounding_box" data is stored in a string format.
This can be fixed by replacing *info['bounding_box'] with *eval(info['bounding_box']).