diff --git a/include/depthai/utility/ImageManipImpl.hpp b/include/depthai/utility/ImageManipImpl.hpp index 40a2fab899..fc5e7fe97b 100644 --- a/include/depthai/utility/ImageManipImpl.hpp +++ b/include/depthai/utility/ImageManipImpl.hpp @@ -131,6 +131,7 @@ void loop(N& node, setFrame(*inImage, *outImage); + logger->trace("ImageManip took '{}' ms.", duration_cast(t4 - t3).count() / 1000.0); logger->trace("Build time: {}us, Process time: {}us, Total time: {}us, image manip id: {}", duration_cast(t2 - t1).count(), duration_cast(t4 - t3).count(), diff --git a/src/pipeline/node/DetectionParser.cpp b/src/pipeline/node/DetectionParser.cpp index 7daf74f8dc..582c3e21b1 100644 --- a/src/pipeline/node/DetectionParser.cpp +++ b/src/pipeline/node/DetectionParser.cpp @@ -546,11 +546,12 @@ void DetectionParser::run() { } auto tAbsoluteEnd = steady_clock::now(); - logger->debug("Detection parser total took {}ms, processing {}ms, getting_frames {}ms, sending_frames {}ms", - duration_cast(tAbsoluteEnd - tAbsoluteBeginning).count() / 1000, - duration_cast(tBeforeSend - tAfterMessageBeginning).count() / 1000, - duration_cast(tAfterMessageBeginning - tAbsoluteBeginning).count() / 1000, - duration_cast(tAbsoluteEnd - tBeforeSend).count() / 1000); + logger->trace("Detection parser took {} ms.", + duration_cast(tAbsoluteEnd - tAbsoluteBeginning).count() / 1000); + logger->trace("processing {}ms, getting_frames {}ms, sending_frames {}ms", + duration_cast(tBeforeSend - tAfterMessageBeginning).count() / 1000, + duration_cast(tAfterMessageBeginning - tAbsoluteBeginning).count() / 1000, + duration_cast(tAbsoluteEnd - tBeforeSend).count() / 1000); } } diff --git a/src/pipeline/node/ImageAlign.cpp b/src/pipeline/node/ImageAlign.cpp index c701b25c6f..16ac96826d 100644 --- a/src/pipeline/node/ImageAlign.cpp +++ b/src/pipeline/node/ImageAlign.cpp @@ -541,7 +541,7 @@ void ImageAlign::run() { auto stopProcessing = high_resolution_clock::now(); auto durationProcessing = duration_cast(stopProcessing - startProcessing); - logger->debug("Processing time: {} ms", durationProcessing.count() / 1000.0f); + logger->debug("ImageAlign depth shift took {} ms.", durationProcessing.count() / 1000.0f); warp2Input = shiftedOutput; } @@ -602,7 +602,7 @@ void ImageAlign::run() { tStop = steady_clock::now(); auto runtime = duration_cast(tStop - tStart).count(); - logger->trace("ImageAlign took {} ms", runtime); + logger->trace("ImageAlign took {} ms.", runtime); { auto blockEvent = this->outputBlockEvent(); diff --git a/src/pipeline/node/ObjectTracker.cpp b/src/pipeline/node/ObjectTracker.cpp index c6c83a484f..e1bff4775e 100644 --- a/src/pipeline/node/ObjectTracker.cpp +++ b/src/pipeline/node/ObjectTracker.cpp @@ -140,7 +140,7 @@ void ObjectTracker::run() { inputDetectionImg = inputDetectionFrame.get(); } } else { - logger->error("Input detections is not of type ImgDetections or SpatialImgDetections, skipping tracking"); + logger->error("Input detection must be either ImgDetection or SpatialImgDetection type! Skipping."); } if(inputConfig.getWaitForMessage()) { inputCfg = inputConfig.get(); diff --git a/src/pipeline/node/SegmentationParser.cpp b/src/pipeline/node/SegmentationParser.cpp index bfa498585f..eec677f04e 100644 --- a/src/pipeline/node/SegmentationParser.cpp +++ b/src/pipeline/node/SegmentationParser.cpp @@ -35,7 +35,8 @@ void SegmentationParser::buildInternal() { auto platform = device->getPlatform(); if(platform == Platform::RVC2) { setRunOnHost(true); - std::cout << "SegmentationParser: For RVC2 platform, running on host." << std::endl; + auto& logger = ThreadedNode::pimpl->logger; + if (logger) logger->info("SegmentationParser: For RVC2 platform, running on host."); } } } diff --git a/src/pipeline/node/SpatialLocationCalculator.cpp b/src/pipeline/node/SpatialLocationCalculator.cpp index 6dbee70667..ee9794c802 100644 --- a/src/pipeline/node/SpatialLocationCalculator.cpp +++ b/src/pipeline/node/SpatialLocationCalculator.cpp @@ -118,8 +118,8 @@ void SpatialLocationCalculator::run() { passthroughDepth.send(imgFrame); } auto tAbsoluteEnd = steady_clock::now(); - logger->debug("SpatialLocationCalculator total took {} ms, processing {} ms, getting_frames {} ms, sending_frames {} ms", - duration_cast(tAbsoluteEnd - tAbsoluteBeginning).count() / 1000, + logger->trace("Spatial location calculator took {} ms.", duration_cast(tAbsoluteEnd - tAbsoluteBeginning).count() / 1000); + logger->trace("processing {} ms, getting_frames {} ms, sending_frames {} ms", duration_cast(tBeforeSend - tAfterMessageBeginning).count() / 1000, duration_cast(tAfterMessageBeginning - tAbsoluteBeginning).count() / 1000, duration_cast(tAbsoluteEnd - tBeforeSend).count() / 1000); diff --git a/src/pipeline/node/ToF.cpp b/src/pipeline/node/ToF.cpp index d94519132d..713c6b4482 100644 --- a/src/pipeline/node/ToF.cpp +++ b/src/pipeline/node/ToF.cpp @@ -109,7 +109,7 @@ void ToF::postBuildStage() { auto& logger = pimpl->logger; if(device->getPlatform() == Platform::RVC2) { if(!confidence.getConnections().empty()) { - if(logger) logger->warn("Confidence is not supported on this platform and will stream aplitude instead."); + if(logger) logger->warn("Confidence is not supported on this platform and will stream amplitude instead."); } } if(device->getPlatform() == Platform::RVC4) {