1 Star 0 Fork 0

darbblue / opencvsharp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
download_opencv_windows.ps1 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
shimat 提交于 2020-04-26 13:48 . remove FourccValues enum
$tag = "4.3.0.20200404"
$uriArray =@(
"https://github.com/shimat/opencv_files/releases/download/${tag}/opencv430_win_x64.zip"
"https://github.com/shimat/opencv_files/releases/download/${tag}/opencv430_win_x86.zip"
"https://github.com/shimat/opencv_files/releases/download/${tag}/opencv430_uwp_x64.zip"
"https://github.com/shimat/opencv_files/releases/download/${tag}/opencv430_uwp_x86.zip"
"https://github.com/shimat/opencv_files/releases/download/${tag}/opencv430_uwp_ARM.zip"
)
function Download($uri, $outFile) {
Write-Host "Downloading ${uri}"
if (!(Test-Path $outFile)) {
Invoke-WebRequest -Uri $uri -OutFile $outFile -ErrorAction Stop
}
}
mkdir opencv_files -Force -ErrorAction Stop | Out-Null
cd opencv_files
foreach($uri in $uriArray){
$outFile = [System.IO.Path]::GetFileName($uri)
$outFileWithoutExtension = [System.IO.Path]::GetFileNameWithoutExtension($uri)
Download $uri $outFile
Expand-Archive -Path $outFile -DestinationPath $outFileWithoutExtension -Force -ErrorAction Stop
Remove-Item -Path $outFile -ErrorAction Stop
}
cd ..
1
https://gitee.com/darkblue/opencvsharp.git
git@gitee.com:darkblue/opencvsharp.git
darkblue
opencvsharp
opencvsharp
master

搜索帮助