From 2566e835f8f920f851941b2eebe11d46cb3717fa Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Wed, 8 Apr 2020 13:17:10 +0900 Subject: [PATCH] Add dummy buffer to inference_engine_tensor_buffers for output buffers In case of object detection, mobilenet-ssd, its output may be null and it causes the memory allocation at inference-engine-interface not from opencv itself. To handle that case, temporally add dummy buffer. Signed-off-by: Tae-Young Chung --- src/inference_engine_opencv.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/inference_engine_opencv.cpp b/src/inference_engine_opencv.cpp index 80ce922..1e04003 100644 --- a/src/inference_engine_opencv.cpp +++ b/src/inference_engine_opencv.cpp @@ -150,6 +150,12 @@ int InferenceOpenCV::GetOutputTensorBuffers(std::vector