https://github.com/aboucaud/face_lensing

Look at yourself through a gravitational lens.

https://github.com/aboucaud/face_lensing

Science Score: 13.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.6%) to scientific vocabulary

Keywords

astronomy filter morphing outreach
Last synced: 5 months ago · JSON representation

Repository

Look at yourself through a gravitational lens.

Basic Info
  • Host: GitHub
  • Owner: aboucaud
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 10 MB
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
astronomy filter morphing outreach
Created over 3 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

Face Lensing

License Python supported versions PyPI PyPI downloads

Look at yourself through a gravitational lens

Face Lensing screenshot example

This program was developed for outreach purposes.

It deforms the input feed of a webcam as if the light had gone through a gravitational lens.
While the shape of the lens was precomputed and cannot be changed, one can play with the intensity of the deformation (using + / - keys) to make interesting effects appear.

The effect is best seen from a certain distance, when the head is well centered with respect to the webcam, but appears on the screen in multiple places around the image center.

Feel free to install and play with it, it has been tested on Windows, Linux and macOS.

Installation

  1. Install the Python program with pip sh pip install face-lensing
  2. Launch the app from a terminal sh face-lensing-app
  3. A program should appear with the distorted webcam image

App controls

The program can be controlled with a keyboard using the following keys

| Key | Action | | :----------------------------------------------------: | ----------------------------------------------------------------------------------------------------------------------- | | h | show/hide command helper | | q | quit the program | | c | change camera (in case of multiple webcams) | | +/- | increase/decrease the lensing effect | | i, j, k, l | move the lens respectively in the , , , directions | | r | reset the lens position and strength | | Space | save a screenshot locally |

Acknowledgements

The original idea and precomputation of the lens deformation is attributed to Johan Richard (CRAL, CNRS/INSU)

License

This program is licensed under the MIT license.

Owner

  • Name: Alexandre Boucaud
  • Login: aboucaud
  • Kind: user
  • Location: Paris, France
  • Company: Laboratoire APC, CNRS/IN2P3

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 32
  • Total Committers: 1
  • Avg Commits per committer: 32.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Alexandre Boucaud a****d@a****r 32
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

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

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 19 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
pypi.org: face-lensing

Your face through a gravitational lens

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 19 Last month
Rankings
Dependent packages count: 6.6%
Stargazers count: 23.3%
Average: 25.7%
Forks count: 30.5%
Dependent repos count: 30.6%
Downloads: 37.3%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • numpy *
  • opencv-python *
  • scipy *
.github/workflows/pre-commit.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pre-commit/action v3.0.0 composite
setup.py pypi