fix wrong json file format (#157)
* fix wrong json file format COCO challenge only has 17 keypoints, so indexesInCocoOrder.size()==17. openpose added the neck keypoint (index 1), therefore numberBodyParts==18. numberBodyParts-1==17, Statement `if (bodyPart < numberBodyParts-1)` adds a comma for every bodyPart ([0..16]), add a extra comma in the end, causing a bad json format file, which can not be proporly parsed. * Update cocoJsonSaver.cpp
Showing
想要评论请 注册 或 登录