Skip to content

PXLRoboticsLab/PyImCra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyImCra - Reddit scraper

This script scrapes images from the subreddit of a person.
Afterwards it clusters all the faces found in the images based on the euclidean distance. The images in the biggest cluster are saved in the chosen directory as being the person in the subreddit.

Getting started

You can follow the instructions below to deploy this software to your local machine.

Prerequisites

You will need the following hardware/software for the project to work:

Install

  1. Clone this repository on your local machine
  2. Open a terminal and cd into the repository
  3. Run the following script: python src/image_scraper.py /path/to/model.pb /path/to/names/file.txt /path/to/output/dir/
  • model (String): Path to the model (.pb file)
  • names (String): Path to a textfile containing the names of the subreddits (.txt file)
  • out_dir (String): The output directory where the images will be saved
  • --image_size (int - Optional): The size the images will be saved as (Default: 160px)
  • --gpu_memory_fraction (float - Optional): Upper bound on the amount of GPU memory that will be used by the process (Default: 1.0)

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Authors

Releases

No releases published

Packages

No packages published

Languages