I am trying to get a bunch of images from open images to use for training a object detection classifier. I found that probably the easiest way to get images from open images is to use the python program FiftyOne. Using FiftyOne I can download the images belonging to a specific class by specifying the class in the command.
My question is now how can I exclude certain classes?
I want to train a classifier for recognizing vehicle licence plates. For the training process I need both positive and negative example images.
As I want to recognize the licence plate and not the vehicle I want to get negative examples with vehicles in them.
My idea was to get the negative examples from the class "Car", but they should not be part of the class "Vehicle registration plate".
Is there a way to tell the create command from FiftyOne that it should not include images with the class "Vehicle registration plate"?
The command I am currently using is as follows:
dataset = foz.load_zoo_dataset("open-images-v6", split="train", classes="Car", max_samples=10000)
This however downloads images that also belong to the class "Vehicle registration plate" which I do not want.
I do not want to use FiftyOne for anything else, apart from getting the training data.
Even though it should not have anything to do with this question:
I am going to use OpenCV for training and using the classifier.