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 <ty83.chung@samsung.com>
buffers.push_back(buffer);
}
+ if (buffers.empty()) {
+ LOGI("buff empty");
+ inference_engine_tensor_buffer buffer = { nullptr, TENSOR_DATA_TYPE_FLOAT32, 0, 1};
+ buffers.push_back(buffer);
+ }
+
LOGI("LEAVE");
return INFERENCE_ENGINE_ERROR_NONE;