Step three: install images of individuals nearby
Next, you want to immediately download some images of individuals nearby that individuals may use for training our AI. With ‘some’, i am talking about like 1500-2500 images.
First, let us expand a function to our Person class which allows us to install images.
Note that we included some random rests in some places, simply because we will be obstructed whenever we spam the tinder CDN and install many photos in only a couple of seconds.
We compose most of the peoples profile IDs into a file called “profiles.txt”. By very very first scanning the document whether a person has already been inside, we are able to skip people we already encountered, so we make certain that we do not classify individuals many times (you will dsicover later why this is certainly a danger).
We are able to now simply loop over nearby individuals and install their pictures into an “unclassified” folder.