First of all big props with this project, I love the idea of it and was pleased to find out it exists.
As it stands I've been attempting to test this project in conjunction with OpenPose by running the following command:
openpose/openpose.bin -number_people_max 1 --hand --write_json /output/ --write_images /output/ --image_dir examples/media/
This generated an image and json file (the image for my own benefit in confirming everything was working correctly with regards to OpenPose interpreting the source image).
I then moved the generated json file to the directory ~/Documents/json and attempted to run the convertBody25SONToCSV module with the following command from the MocapNET folder:
./convertBody25JSONToCSV --from '~/Documents/json' --size 720 1080 -o .
Which yielded the following output:
File ~/Documents/json/colorFrame_0_00001.jpg does not exist, unable to get its dimensions.. Assuming default image dimensions 720x1080 , you can change this using --size x y Processing ~/Documents/json/colorFrame_0_00001_keypoints.json (720x1080) Could not find COCO 2D skeleton in ~/Documents/json/colorFrame_0_00001_keypoints.json Done processing 1 frames.. Output has been stored at ./2dJoints_v1.2.csv
This leaves me with the question of why it is that the tool is attempting to access a non-existent colorFrame_0_00001_keypoints.json and similarly named image when the only file in the given folder is named 1.json. The obvious assumption would be that I'm simply not calling the module properly and need to rectify the command used accordingly, however is is not clear to me what I need to change and how.
I did at least try the obvious option of directly passing in the path to the json file like so:
./convertBody25JSONToCSV --from '~/Documents/json/1.json' --size 720 1080 -o .
But ended up with the same result.
I suspect that the error is an obvious one on my part rather than an issue with MocapNET but I'm uncertain as to how I should be resolving it.
Just to rule out an issue with openpose and the generated json file I'll paste the contents below:
{"version":1.3,"people":[{"person_id":[-1],"pose_keypoints_2d":[301.986,142.172,0.861539,298.959,250.623,0.869627,208.469,250.72,0.745,105.856,365.168,0.736903,199.447,425.471,0.815681,392.297,250.591,0.767769,497.778,347.227,0.800218,419.367,440.535,0.801715,298.925,494.725,0.735155,244.634,494.761,0.660716,211.45,729.905,0.80738,157.249,952.867,0.819982,353.122,491.808,0.68745,437.538,729.837,0.806956,552.095,953.034,0.741912,280.842,127.132,0.874103,322.925,124.07,0.903101,253.844,136.099,0.92029,347.02,133.065,0.931848,560.989,1037.34,0.775494,576.162,1025.33,0.709642,567.097,955.94,0.538249,166.283,1025.35,0.691949,148.12,1022.17,0.639221,154.284,958.97,0.630102],"face_keypoints_2d":[],"hand_left_keypoints_2d":[405.562,448.236,0.326992,399.789,439.314,0.37053,386.67,425.67,0.321641,371.451,421.996,0.227782,354.657,414.649,0.0814476,374.074,417.798,0.698801,353.608,406.252,0.829781,341.013,401.529,0.891227,328.942,397.331,0.849132,373.55,423.046,0.777923,350.459,419.897,0.85627,334.19,419.372,0.961719,322.645,419.897,0.857534,375.124,432.492,0.863338,354.132,435.116,0.815929,337.864,437.215,0.808573,326.843,439.314,0.863499,377.748,444.038,0.832029,360.43,451.909,0.82551,349.934,456.633,1.00618,341.013,460.306,0.919247],"hand_right_keypoints_2d":[210.031,446.499,0.37984,219.054,437.477,0.475413,232.587,420.56,0.285183,246.12,410.974,0.188407,259.09,403.079,0.101311,238.79,410.974,0.709444,259.654,398.004,0.874165,273.751,392.365,0.819851,285.593,388.418,0.858441,238.79,416.049,0.802709,263.601,408.718,0.85787,278.262,405.899,0.909572,290.668,402.515,0.851317,237.662,425.071,0.851579,263.037,424.507,0.893198,277.134,423.943,0.870259,288.412,423.379,0.838396,238.226,437.477,0.843679,257.962,441.424,0.844412,268.112,443.679,0.910401,277.134,445.371,0.87341],"pose_keypoints_3d":[],"face_keypoints_3d":[],"hand_left_keypoints_3d":[],"hand_right_keypoints_3d":[]}]}