Open3D (C++ API)  0.18.0
Loading...
Searching...
No Matches
Download.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2023 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
10#include <string>
11#include <vector>
12
13namespace open3d {
14namespace utility {
15
18std::string GetMD5(const std::string& file_path);
19
29std::string DownloadFromURL(const std::string& url,
30 const std::string& md5,
31 const std::string& download_dir);
32
44std::string DownloadFromMirrors(const std::vector<std::string>& mirrors,
45 const std::string& md5,
46 const std::string& download_dir);
47
48} // namespace utility
49} // namespace open3d
std::string DownloadFromMirrors(const std::vector< std::string > &mirrors, const std::string &md5, const std::string &download_dir)
Download a file from list of mirror URLs. If a file already exists and the MD5 hash matches,...
Definition Download.cpp:159
std::string DownloadFromURL(const std::string &url, const std::string &md5, const std::string &download_dir)
Download a file from URL. If a file already exists and the MD5 hash matches, the download will be ski...
Definition Download.cpp:88
std::string GetMD5(const std::string &file_path)
Computes MD5 Hash for the given file.
Definition Download.cpp:45
Definition PinholeCameraIntrinsic.cpp:16