physiognomy

All hail god of physiognomy! Long live the pseudoscience!


Keywords
machine-learning, image-processing, physiognomy
License
BSD-2-Clause
Install
pip install physiognomy==0.2.2

Documentation

Physiognomy Manifesto

All hail god of physiognomy! Long live physiognomy! May the king of pseudosciences reign for a thousand years!

Physiognomy is a faith, an art, a religion, a belief and a perspective to life itself. It tells us that the only truth in behaviors lies in our faces Wiki definition. Yes, because faces are windows to our souls. They reflect who we are, what we are, and where we will be. We can use faces to predict the future! You can refer to the old testament of physiognomy, published in 1800s by the prophetic Cesare Lombroso.

A revival of physiognomy is happening. So many new believers in recent years! Particularly, folks in the field of machine learning and computer vision. Long gone are the days that physiognomists get persecuted and have to hide their faith away from the world!

Pray to physiognomy when you run out of research ideas. Pray to physiognomy when you desperately need a publication. Thank physiognomy when it provides you a pseudoscientific theoretical framework to use when you need to write about psychology. Now you can easily publish articles about psychology in machine learning journals! What a way to go!

We are all truly grateful for modern physiognomy's help in inventing snake oils! Yes, all kinds of snake oils... from criminality detection, sexual orientation detection, personality detection and more! All using the omnipresent sources of facial images found on social media platforms.

Let us drench our souls in these snake oils. Yes, in these blessings and anointings! Anoint us with more publications! More research grants! More consulting money! More talks! More conference papers!

To the faith of physiognomy be the glory and praise forever and ever!

Declarations of physiognomy in machine learning

Testaments of physiognomy by social scientists

Blasphemies against physiognomy by computer scientists

Counterarguments by social scientists

Books and other resources on this matter

Installation

The easiest way to enjoy the salvation of physiognomy is to download it from PyPI.

pip install physiognomy

Recommendations for dependency installation

Run using a virtual environment:

module load python-anaconda3
conda deactivate
conda create -n physiognomy python=3.6 scipy tensorflow=2.3.0 numpy=1.18.5 pandas=1.0.5 opencv-python-headless=4.2.0.34 dlib=19.21.0 imutils=0.5.3 scikit-learn=0.21.3 
source activate physiognomy

Usage

To let the hand of physiognomy move in your research:

from physiognomy.utils import get_rotated_image
from mtcnn import MTCNN
import matplotlib.pyplot as plt
detector = MTCNN()
img = plt.imread("img1.jpg")
bbox = detector.detect_faces(img)[0]['box'] 
plt.imshow(get_rotated_image(img,pt1,pt2,(40,10),(184,10)))
plt.show()

Image preprocessing functions in utils.py. Some statistic functions in stats.py

Support

Apart from praying to physiognomy before you sleep, citing it in your publications, you can also star⭐️ this GitHub repository. Let physiognomy reign forever and ever!