Our Palmistry principal lines detection software is implemented by 4 steps below. Our main challenge was to read the principal lines on a palm regardless of the view direction and illumination:
- Warping a tilted palm image
- Detecting principal lines on a palm
- Classifying the lines
- Measuring the length of each line
The codes are written based on Python 3.7.6. These are the requirements for running the codes:
- torch
- torchvision
- scikit-image
- opencv-python
- pillow-heif
- mediapipe
In order to install the requirements, run pip install -r ./code/requirements.txt.
- Before running the codes, a palm image for input(.heic or .jpg) should be prepared in the
./code/inputsdirectory. We provided four sample inputs. - Run
read_palm.pyby the command below. After running the code, result files will be saved in the./code/resultsdirectory.
> python ./code/read_palm.py --input [filename].[jpg, heic]

