main.cpp
607 Bytes
#include "../village_pic_interface.h"
#include <vector>
#include <string>
using namespace std;
int main() {
void *vaHandle = NULL;
VillageParam param;
param.dev_id = 0;
param.sdk_path = ".";
param.log_level = 1;
int ret = village_pic_init(&vaHandle, param);
vector<string> vec_path;
size_t i = 1;
// for (i = 1; i < 8; i++)
{
string path = "./img/test_phone";
path = path + to_string(i) + ".jpg";
vec_path.push_back(path);
}
village_pic_analysis_file(vaHandle, vec_path);
village_pic_release(&vaHandle);
return 0;
}