7 int main(
int argc,
char* argv[])
10 std::cout <<
"scan for QR: " << argv[1] << std::endl;
11 std::string file = argv[1];
12 std::string token =
"my_token";
16 if(
auto pic = std::make_shared<rapp::object::picture>(file)) {
17 auto callback = [&](std::vector<rapp::object::qr_code> codes)
19 std::cout <<
"found " << codes.size()
20 <<
" QR codes" << std::endl;
21 for (
const auto code : codes)
22 std::cout << code.label() << std::endl;
24 auto fdetect = std::make_shared<rapp::cloud::qr_detection>(pic, token, callback);
29 throw std::runtime_error(
"can't load: "+file);
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.