7 int main(
int argc,
char* argv[])
10 std::cout <<
"face detect: " << argv[1] << std::endl;
11 std::string file = argv[1];
12 std::string token = argv[2];
18 if (
auto pic = std::make_shared<rapp::object::picture>(file)) {
19 auto callback = [&](std::vector<rapp::object::face> faces)
20 {std::cout <<
"found " << faces.size() <<
" faces!" << std::endl;};
22 auto fdetect = std::make_shared<rapp::cloud::face_detection>(pic,
false, token, callback);
28 std::cerr <<
"Error loading image: " << argv[1] << std::endl;
Main class that controllers RAPP Services.
int main(int argc, char *argv[])
void run_job(const std::shared_ptr< asio_socket > job)
Run one service job.