Article ID: 000096594 Content Type: Troubleshooting Last Reviewed: 10/05/2023

Different Inference Results in OpenVINO™ C++ API as Compared to OpenVINO™ Python* API

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to correctly execute preprocessing in OpenVINO™ C++ API inference.

Description
  • Created a custom C++ and Python* code for OpenVINO™ inferencing.
  • Used the same image and models for both inferencing processes.
  • Obtained different results from the C++ code as compared to Python* code.
Resolution
  • Incorrect results were due to incorrect filling of tensor data in the preprocessing part of the C++ code.
  • Ensure the channels when preprocessing the image matches the channels of the model.

Related Products

This article applies to 1 products