Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

PreProcessSteps Class

Preprocessing steps. Each step typically intends adding of some operation to input parameter User application can specify sequence of preprocessing steps in a builder-like manner

Definition

Namespace: OpenVinoSharp.preprocess
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public class PreProcessSteps : IDisposable
Inheritance
Object    PreProcessSteps
Implements
IDisposable

Constructors

PreProcessSteps Default construction through PreProcessSteps pointer.

Properties

Ptr [public]PreProcessSteps class pointer.

Methods

convert_color Converts color format for user's input tensor. Requires source color format to be specified by nputTensorInfo::set_color_format.
convert_element_type Add convert element type preprocess operation.
convert_layout Add 'convert layout' operation to specified layout.
crop(Int32, Int32) Crop input tensor between begin and end coordinates. Under the hood, inserts `opset8::Slice` operation to execution graph. It is recommended to use to together with `ov::preprocess::InputTensorInfo::set_shape` to set original input shape before cropping
crop(ListInt32, ListInt32) Crop input tensor between begin and end coordinates. Under the hood, inserts `opset8::Slice` operation to execution graph. It is recommended to use to together with `ov::preprocess::InputTensorInfo::set_shape` to set original input shape before cropping
Dispose Release unmanaged resources
Finalize Default destructor
(Overrides ObjectFinalize)
mean(Single) Add mean preprocess operation. Subtract specified value from each element of input.
mean(Single) Add mean preprocess operation. Subtract specified value from each element of input.
resize Add resize operation to model's dimensions.
reverse_channels Reverse channels operation.
scale(Single) Add scale preprocess operation. Divide each element of input by specified value.
scale(Single) Add scale preprocess operation. Divide each element of input by specified value.

Fields

m_ptr [private]PreProcessSteps class pointer.

See Also