21 lines
709 B
C++
21 lines
709 B
C++
#include <filesystem>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
int main(int argc, char** argv) {
|
|
if (argc < 3) {
|
|
std::cerr << "Usage: rknn_infer_demo <model.rknn> <image.jpg>\n";
|
|
std::cerr << "This placeholder does not invoke RKNN APIs. "
|
|
<< "Link against the RKNN runtime to perform real inference." << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
std::filesystem::path model = argv[1];
|
|
std::filesystem::path image = argv[2];
|
|
|
|
std::cout << "[RKNN Placeholder] Would run inference with model " << model
|
|
<< " on image " << image << std::endl;
|
|
std::cout << "Hook up the official RKNN demo sources to interact with the NPU." << std::endl;
|
|
return 0;
|
|
}
|