https://github.com/aboucaud/face_lensing
Look at yourself through a gravitational lens.
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
Repository
Look at yourself through a gravitational lens.
Basic Info
Statistics
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Face Lensing
Look at yourself through a gravitational lens

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
- Install the Python program with
pipsh pip install face-lensing - Launch the app from a terminal
sh face-lensing-app - 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
- Website: https://aboucaud.github.io
- Repositories: 66
- Profile: https://github.com/aboucaud
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 | 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
- Homepage: https://github.com/aboucaud/face_lensing
- Documentation: https://face-lensing.readthedocs.io/
- License: MIT
-
Latest release: 0.4.1
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- numpy *
- opencv-python *
- scipy *
- actions/checkout v3 composite
- actions/setup-python v3 composite
- pre-commit/action v3.0.0 composite