This project can be used to obtain skeleton-data from openpose application. The following features are available:
- Write json from videos
- Create database from json files
- Read data from database
- OS: Linux [Ubuntu 16.04 LTS - 64 bits]
- GPU: NVIDIA GeForce GTX 1060 (6GB)
- Memory: 16 GB
- Processor: Intel Core i7 (7th Gen)
- Install openpose using this installation procedure.
- Install virtualenv using step #3 from this post.
- Download requirement.txt file in this link.
- Create a new env using this command
mkvirtualenv "name_env" -p python3
change "name_env" for your choice name. - Enter inside env:
workon "name_env"
. - Install dependences:
pip -r requirements.txt
. - Clone this respository using
git clone https://github.com/ximenesfel/action_recognition_openpose.git
command.
- Open
write_json_from_video.py
and fill this variables:path_videos
(path to your videos folder) andpath_output_data
(path where you like to save json data). Please insert all path. Ex:/home/"user"/Desktop/....
. - Run
python write_json_from_videos.py
.
- Open
generate_data.py
and fill the variablepath_data
(path where you save json files). Please insert all path. Ex:/home/"user"/Desktop/....
. - Run
python generate_data.py
. - The file
database.dat
will be saved in your current directory with all data from json's files.
- Open
read_data.py
and fill the variabledata_path
(path where you save database file). - Run
python read_data.py
.