This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装依赖: | |
# pip install opencv-contrib-python | |
import numpy as np | |
import cv2 | |
import os | |
from cv2.ximgproc import guidedFilter | |
input_dir = input('请输入存放输入图像的目录:') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory = $true)] | |
[string]$PixivZipPath | |
) | |
# 检查 ffmpeg 是否可用 | |
function Check-FFmpeg { | |
$ffmpegPath = Get-Command ffmpeg -ErrorAction SilentlyContinue | |
if (-not $ffmpegPath) { | |
Write-Error "ffmpeg is not installed or not in PATH." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from collections import deque | |
# 可自定义的垃圾文件规则配置 | |
RULES = ( | |
{ | |
"name": "DS_Store files", | |
"match": lambda n: n == ".DS_Store", | |
"condition": lambda e: e.stat().st_size <= 1024**2, # 1MB | |
}, |
OlderNewer