openvino/samples/cpp/classification_sample_async
Sebastian Golebiewski 9ebacbb379
[DOCS] Merge Samples Articles Language Versions (#21661)
* Merge samples

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* additional resources

* Update docs/articles_en/learn_openvino/openvino_samples/model_creation.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* reorganize contents of requirements

* remove api reference

* add links to READMEs on repo

* remove speech recognition sample

* removal of deprecation notice

* update conversion steps

* Revert remove speech recognition sample

* remove trailing spaces

* fix links

* Removed unwanted changes from submodules

* applying suggestions

* update api reference

* apply suggestions

---------

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2024-01-12 14:24:15 +01:00
..
CMakeLists.txt Moved cmake functions, variables to API 2.0 naming style (#20281) 2023-10-09 22:30:32 +04:00
README.md [DOCS] Merge Samples Articles Language Versions (#21661) 2024-01-12 14:24:15 +01:00
classification_sample_async.h Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00
main.cpp fix a wrong comment (#20307) 2023-10-09 12:44:42 +04:00

README.md

Image Classification Async C++ Sample

This sample demonstrates how to do inference of image classification models using Asynchronous Inference Request API.

Models with only one input and output are supported.

In addition to regular images, the sample also supports single-channel ubyte images as an input for LeNet model.

For more detailed information on how this sample works, check the dedicated article

Requirements

Options Values
Validated Models alexnet,
googlenet-v1
Model Format OpenVINO™ toolkit Intermediate Representation (*.xml + *.bin), ONNX (*.onnx)
Supported devices All
Other language realization Python

The following C++ API is used in the application:

Feature API Description
Asynchronous Infer ov::InferRequest::start_async, ov::InferRequest::set_callback Do asynchronous inference with callback.
Model Operations ov::Output::get_shape, ov::set_batch Manage the model, operate with its batch size. Set batch size using input image count.
Infer Request Operations ov::InferRequest::get_input_tensor Get an input tensor.
Tensor Operations ov::shape_size, ov::Tensor::data Get a tensor shape size and its data.