Anthropometric measurement extraction
Getting human body measurements from image is a very hard problem. This repository provides a starting solution for any one who is working in this domain. It maps single input image onto 3-dimientional model using 3D human reconstruction and then extracts body measurements such as waist, chest etc. All meausrements are in centimeters. 3D reconstruction is done using HMR. Tested on tensorflow==1.13.1.
- Download the pre-trained models. Type the following command on terminal
wget https://people.eecs.berkeley.edu/~kanazawa/cachedir/hmr/models.tar.gz && tar -xf models.tar.gz
and save it in 'models' folder.
-
Download CustomBodyPoints text file and place it in data(make new one) folder.
-
Install packages
pip install -r requirements.txt
orpip3 install -r requirements.txt
-
Run inference
python3 inference.py -i <path to Image1> -ht <height in cm>