![]() |
OpenCV 4.12.0
開源計算機視覺
|
函式 | |
| cv::String | canonical (const cv::String &path) |
| 將路徑 p 轉換為規範的絕對路徑。如果執行平臺支援符號連結,則會處理它們。 | |
| bool | createDirectories (const cv::String &path) |
| bool | createDirectory (const cv::String &path) |
| bool | exists (const cv::String &path) |
| cv::String | getCacheDirectoryForDownloads () |
| cv::String | getcwd () |
| cv::String | getParent (const cv::String &path) |
| std::wstring | getParent (const std::wstring &path) |
| void | glob (const cv::String &directory, const cv::String &pattern, std::vector< cv::String > &result, bool recursive=false, bool includeDirectories=false) |
| void | glob_relative (const cv::String &directory, const cv::String &pattern, std::vector< cv::String > &result, bool recursive=false, bool includeDirectories=false) |
| bool | isDirectory (const cv::String &path) |
| cv::String | join (const cv::String &base, const cv::String &path) |
| void | remove_all (const cv::String &path) |
| cv::String cv::utils::fs::canonical | ( | const cv::String & | 路徑 | ) |
將路徑 p 轉換為規範的絕對路徑。如果執行平臺支援符號連結,則會處理它們。
| 路徑 | 輸入路徑。目標檔案/目錄應該存在。 |
| bool cv::utils::fs::createDirectories | ( | const cv::String & | 路徑 | ) |
| bool cv::utils::fs::createDirectory | ( | const cv::String & | 路徑 | ) |
| bool cv::utils::fs::exists | ( | const cv::String & | 路徑 | ) |
| cv::String cv::utils::fs::getCacheDirectoryForDownloads | ( | ) |
| Python | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cv.utils.fs.getCacheDirectoryForDownloads( | ) -> | retval | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cv::String cv::utils::fs::getcwd | ( | ) |
| cv::String cv::utils::fs::getParent | ( | const cv::String & | 路徑 | ) |
獲取父目錄
| std::wstring cv::utils::fs::getParent | ( | const std::wstring & | 路徑 | ) |
| void cv::utils::fs::glob | ( | const cv::String & | directory, |
| const cv::String & | pattern, | ||
| std::vector< cv::String > & | result, | ||
| bool | recursive = false, | ||
| bool | includeDirectories = false ) |
生成與 globbing 模式匹配的所有檔案的列表。
結果條目以基本目錄路徑為字首。
| directory | 基本目錄 | |
| pattern | 過濾器模式(基於 '*'/'?' 符號)。 使用空字串停用過濾並返回所有結果 | |
| [輸出] | result | globbing 的結果。 |
| recursive | 也掃描巢狀目錄 | |
| includeDirectories | 將目錄包含到結果列表中 |
| void cv::utils::fs::glob_relative | ( | const cv::String & | directory, |
| const cv::String & | pattern, | ||
| std::vector< cv::String > & | result, | ||
| bool | recursive = false, | ||
| bool | includeDirectories = false ) |
生成與 globbing 模式匹配的所有檔案的列表。
| directory | 基本目錄 | |
| pattern | 過濾器模式(基於 '*'/'?' 符號)。 使用空字串停用過濾並返回所有結果 | |
| [輸出] | result | globbing 結果,帶有來自基本目錄的相對路徑 |
| recursive | 也掃描巢狀目錄 | |
| includeDirectories | 將目錄包含到結果列表中 |
| bool cv::utils::fs::isDirectory | ( | const cv::String & | 路徑 | ) |
| cv::String cv::utils::fs::join | ( | const cv::String & | base, |
| const cv::String & | path ) |
連線路徑元件
| void cv::utils::fs::remove_all | ( | const cv::String & | 路徑 | ) |