#include <iostream>
#include <memory>
#include <fstream>
#include <string>
#include <opencv2\opencv.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <json/json.h>
using namespace std;
using namespace cv;
struct point3d
{
double x;
double y;
double z;
};
void readfile();
int main() {
readfile();
return 0;
}
void readfile()
{
Json::CharReaderBuilder rbuilder;
rbuilder["collectComments"] = false;
Json::Value root;
JSONCPP_STRING errs;
ifstream f;
f.open("alphapose-results.json", ios::in);
if (!f.is_open()){
cout << "Open json file error!" << endl;
}
bool parse_ok = Json::parseFromStream(rbuilder, f, &root, &errs);
f.close();
if (!parse_ok) {
cout << "Parse json file error!" << endl;
}
else{