Table of Contents

Class DownloadableFile

Namespace
Emgu.Util
Assembly
Emgu.CV.dll

This represent a file that can be downloaded from the internet

public class DownloadableFile
Inheritance
DownloadableFile
Inherited Members

Constructors

DownloadableFile(string, string, string)

Create a downloadable file from the url

public DownloadableFile(string url, string localSubfolder, string sha256Hash = null)

Parameters

url string

The url where the file can be downloaded from

localSubfolder string

The sub-folder to store the model

sha256Hash string

The SHA256 has for the file.

Properties

IsLocalFileValid

Return true if the local file exist and match the sha256hash (if specified in the constructor).

public bool IsLocalFileValid { get; }

Property Value

bool

LocalFile

The local file name

public string LocalFile { get; set; }

Property Value

string

LocalFolder

Return the directory where the local file is

public string LocalFolder { get; }

Property Value

string

Url

The url where this file can be downloaded from

public string Url { get; }

Property Value

string

Methods

GetLocalFileName(string)

The local path to the local file given the file name

public string GetLocalFileName(string fileName)

Parameters

fileName string

The name of the file

Returns

string

The local path of the file