Table of Contents

Class LicensePlateDetectionRecognitionOptions.ModelStreamInfo

Namespace
CapCognition.Net.LicensePlateDetection.Common
Assembly
CapCognition.Net.LicensePlateDetection.dll

Wrapper class to hold model stream information

public class LicensePlateDetectionRecognitionOptions.ModelStreamInfo : IDisposable
Inheritance
LicensePlateDetectionRecognitionOptions.ModelStreamInfo
Implements
Inherited Members

Constructors

ModelStreamInfo(Stream, string, bool)

Initializes a new instance of the LicensePlateDetectionRecognitionOptions.ModelStreamInfo class.

public ModelStreamInfo(Stream modelStream, string streamName, bool encrypted = true)

Parameters

modelStream Stream

The model stream.

streamName string

The stream name.

encrypted bool

Indicates whether the stream is encrypted.

ModelStreamInfo(Stream, string, bool, string?)

Initializes a model stream with an expected SHA-256 hash.

public ModelStreamInfo(Stream modelStream, string streamName, bool encrypted, string? sha256)

Parameters

modelStream Stream

The model stream.

streamName string

The stream name.

encrypted bool

Indicates whether the stream is encrypted.

sha256 string

SHA-256 hash of the source stream.

Properties

Encrypted

Gets a value indicating whether the model stream is encrypted.

public bool Encrypted { get; }

Property Value

bool

ModelStream

Gets the model stream.

public Stream ModelStream { get; }

Property Value

Stream

Sha256

Gets the optional SHA-256 hash used to validate the source stream before decryption and loading.

public string? Sha256 { get; }

Property Value

string

StreamName

Gets the stream/file name.

public string StreamName { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()