|
|
@ -316,8 +316,8 @@ void plot_results(cv::Mat img, std::vector<YoloResults>& results,
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string img_path = "/home/xdobro23/path_to_16bit_3_channel_image.png";
|
|
|
|
std::string img_path = "path_to_16bit_1_channel_image.png";
|
|
|
|
const std::string& modelPath = "/home/xdobro23/PP1/ultralytics/runs/detect/train35/weights/best.onnx"; // pose
|
|
|
|
const std::string& modelPath = "../best.onnx"; // relative path for build/ directory
|
|
|
|
|
|
|
|
|
|
|
|
fs::path imageFilePath(img_path);
|
|
|
|
fs::path imageFilePath(img_path);
|
|
|
|
fs::path newFilePath = imageFilePath.stem();
|
|
|
|
fs::path newFilePath = imageFilePath.stem();
|
|
|
|