wikifaces

Wikipedia "people" Images Dataset Downloader

https://github.com/tford9/wiki-faces-downloader

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.2%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Wikipedia "people" Images Dataset Downloader

Basic Info
  • Host: GitHub
  • Owner: tford9
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 2.12 MB
Statistics
  • Stars: 11
  • Watchers: 2
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created about 5 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

Wiki Faces:

License: MIT License

Figure 1: Joko Widodo's Wikipedia page, which includes am image of his face. The cropped image on the right is download into a directory named "Joko_Widodo."

TLDR

This project downloads images from a Wiki that include human faces. Specifically, images that are associated with certain wikipedia categories.

Installation

Pip Installation Procedure:

From PIP:

commandline pip install wikifaces

From Repo:

commandline git clone git@github.com:tford9/Wiki-Faces-Downloader.git cd Wiki-Faces-Downloader python setup.py pip install wikifaces

Usage

Command-Line Example

commandline python downloader -i "indonesian engineers" -o ../data/ -d

Package Example

```python from wikifaces.downloader import WikiFace

wikifaceobj = WikiFace() wikifaceobj.download(categories=['facebook'], depth=2, output_location='../data/') ```

The following structure is output:

  • facebook
    • cached_1_people_pages_d2.pkl
    • cached_pages_d2.pkl
    • alan_rushbridger
      • Alan_Rusbridger_01.jpg-p0.jpg
    • ...
    • mark_zuckerberg
      • MarkZuckerbergcrop.jpg-p1.jpg
    • ...

The process is carried out as follows:

  1. Given a category from a Wiki, collect n pages that contain the same category as well as at least one category containing "people" in the title.
  2. With those pages, crawl across their included categories and collect y pages that contain those categories as well as at least one "people" category.
  3. Given the collected Wiki pages, download the primary image from the page and determine if it is a human face using light facial detection.
  4. We capture all images from the wiki that contain the name of the page (if it's a person then the filename contains their name),
  5. Using the captured name and images, we create a dataset for that face.

TODOs:

  1. Currently, a part of this process uses a recursive call structure to get all related pages; there may be a way to linearize, or parallelize this.
  2. Currently, we are only pulling images contain the person's name in the title and only have one visible face in the image. All other images are not considered. A voting system should be added to get the most represented faces across multiple images.

Owner

  • Name: Trenton Ford
  • Login: tford9
  • Kind: user
  • Location: Williamsburg, VA
  • Company: William and Mary

Assistant Professor @ William and Mary

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Ford"
  given-names: "Trenton"
  orcid: "https://orcid.org/0000-0002-2929-5880"
title: "Wiki-Faces-Downloader"
version: 1.0.6
doi: 10.5281/zenodo.1234
date-released: 2023-05-11
url: "https://github.com/tford9/Wiki-Faces-Downloader"

GitHub Events

Total
Last Year

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 50
  • Total Committers: 3
  • Avg Commits per committer: 16.667
  • Development Distribution Score (DDS): 0.28
Top Committers
Name Email Commits
Trenton W. Ford - Desktop t****d@g****m 36
Trenton - Linux Box t****5@n****u 13
shao72 s****2@p****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • di1l0o (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 51 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 8
  • Total maintainers: 1
pypi.org: wikifaces

A downloader for named images containing faces from Wiki servers.

  • Homepage: https://github.com/tford9/Wiki-Faces-Downloader
  • Documentation: https://wikifaces.readthedocs.io/
  • License: MIT License Copyright (c) 2023 Trenton W. Ford Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.0.8
    published over 2 years ago
  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 51 Last month
Rankings
Dependent packages count: 10.1%
Stargazers count: 18.5%
Dependent repos count: 21.6%
Average: 27.1%
Forks count: 29.8%
Downloads: 55.4%
Maintainers (1)
Last synced: 7 months ago

Dependencies

requirements.txt pypi
  • facenet-pytorch *
  • numpy *
  • opencv-python *
  • pillow *
  • pymediawiki *
  • requests *
  • tqdm *
setup.py pypi
  • facenet-pytorch *
  • numpy *
  • opencv-python *
  • pillow *
  • pymediawiki *
  • requests *
  • tqdm *