Add compile option to use YOLOv8 ONNX models for testing.

- added qmake option yolo_onnx to use normal YOLOv8 ONNX models. This makes possible to test
  gimbals camera inside without real model.
- reduced confidence threshold requirement in AiEngineInferencevOnnxRuntime from 0.5 to 0.2
- make printing prettier with ONNX Runtime
- removed unnecessary cv::Mat::clone()

Type: Improvement
Issue: https://denyspopov.atlassian.net/browse/AZ-39
This commit is contained in:
Tuomas Järvinen
2024-08-18 16:59:04 +03:00
parent 86c0a7d5c4
commit 022e4a1200
4 changed files with 43 additions and 34 deletions
+3 -3
View File
@@ -92,16 +92,16 @@ void AiEngine::frameReceivedSlot(cv::Mat frame)
if (mInference->isActive() == false) {
//qDebug() << "AiEngine. Inference thread is free. Sending frame to it.";
emit inferenceFrame(frame.clone());
emit inferenceFrame(frame);
}
#ifdef OPI5_BUILD
else if (mInference2->isActive() == false) {
//qDebug() << "AiEngine. Inference thread is free. Sending frame to it.";
emit inferenceFrame2(frame.clone());
emit inferenceFrame2(frame);
}
else if (mInference3->isActive() == false) {
//qDebug() << "AiEngine. Inference thread is free. Sending frame to it.";
emit inferenceFrame3(frame.clone());
emit inferenceFrame3(frame);
}
#endif
}