Skip To Main Content
Support Knowledge Base

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

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

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.