working yolo default model with opencv

This commit is contained in:
Tuomas Järvinen
2024-08-25 18:26:19 +03:00
parent be59a02f9b
commit ef137fbc4b
6 changed files with 747 additions and 1 deletions
@@ -90,6 +90,9 @@ void AiEngineInferencevOnnxRuntime::performInferenceSlot(cv::Mat frame)
qDebug() << "performInferenceSlot() invalid classId =" << detection.classId;
continue;
}
else {
cv::imwrite("scaledImage.png", scaledImage);
}
// Add detected objects to the results
AiEngineObject object;