Class LicensePlateDetectionRecognitionOptions.ModelStreamInfo
- 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
modelStreamStreamThe model stream.
streamNamestringThe stream name.
encryptedboolIndicates 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
modelStreamStreamThe model stream.
streamNamestringThe stream name.
encryptedboolIndicates whether the stream is encrypted.
sha256stringSHA-256 hash of the source stream.
Properties
Encrypted
Gets a value indicating whether the model stream is encrypted.
public bool Encrypted { get; }
Property Value
ModelStream
Gets the model stream.
public Stream ModelStream { get; }
Property Value
Sha256
Gets the optional SHA-256 hash used to validate the source stream before decryption and loading.
public string? Sha256 { get; }
Property Value
StreamName
Gets the stream/file name.
public string StreamName { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()