找到放大材料(主要是动画)的原始分辨率

getnative的Python项目详细描述


Getnative公司

找到放大材料(主要是动画)的原始分辨率

使用

首先执行:

$ getnative [--args] inputFile

如果找不到getnative,请尝试执行以下操作:

^{pr2}$

首先执行:

$ python -m getnative [--args] inputFile

就这样。在

要求

要运行此脚本,您需要:

安装

通过以下方式安装:

$ pip install getnative

  • 从github下载所有文件
  • 通过pip install -r requirements.txt安装所有依赖项

建议安装Windows

从他们的网站安装这些程序:

一旦安装了Vapoursynth:

vsrepo.py install descale
vsrepo.py install ffms2
vsrepo.py install lsmas

安装getnative(和Python依赖项):

pip install getnative

输出示例

输入命令:

$ getnative -k bicubic -b 0.11 -c 0.51 -dir "../../Downloads" "../../Downloads/unknown.png"

终端输出:

Using imwri as source filter

500/500

Output Path: /Users/infi/Downloads/results

Bicubic b 0.11 c 0.51 AR: 1.78 Steps: 1
Native resolution(s) (best guess): 720p

done in 13.56s

输出图:

alt text

输出文本(摘要):

 715		 | 0.0000501392		 | 1.07
 716		 | 0.0000523991		 | 0.96
 717		 | 0.0000413640		 | 1.27
 718		 | 0.0000593276		 | 0.70
 719		 | 0.0000617733		 | 0.96
 720		 | 0.0000000342		 | 1805.60
 721		 | 0.0000599182		 | 0.00
 722		 | 0.0000554626		 | 1.08
 723		 | 0.0000413679		 | 1.34
 724		 | 0.0000448137		 | 0.92
 725		 | 0.0000455203		 | 0.98

阿格斯

PropertyDescriptionDefault valueType
frameSpecify a frame for the analysis.num_frames//3Int
kernelResize kernel to be usedbicubicString
bicubic-bB parameter of bicubic resize1/3Float
bicubic-cC parameter of bicubic resize1/3Float
lanczos-tapsTaps parameter of lanczos resize3Int
aspect-ratioForce aspect ratio. Only useful for anamorphic inputw/hFloat
min-heightMinimum height to consider500Int
max-heightMaximum height to consider1000Int
is-imageForce image inputFalseAction
generate-imagesSave detail mask as pngFalseAction
plot-scalingScaling of the y axis. Can be "linear" or "log"logString
plot-formatFormat of the output image. Specify multiple formats separated by commas. Can be svg, png, tif(f), and moresvgString
show-plot-guiShow an interactive plot gui window.FalseAction
no-saveDo not save files to disk.FalseAction
steppingThis changes the way getnative will handle resolutions. Example steps=3 [500p, 503p, 506p ...]1Int
output-dirSets the path of the output dir where you want all results to be saved. (/results will always be added as last folder)(CWD)/resultsString

CLI参数

^{tb2}$

警告

这个剧本的成功率远远不够完美。 如果可能的话,对来自同一源的不同帧进行多个测试。 明亮的场景通常会产生最准确的结果。 图形往往有多个槽口,因此脚本假定的分辨率可能不正确。 另外,由于autoguess的当前实现,脚本不可能 自动识别1080p产品。 必要时用你的眼睛或阿尼宾。在

谢谢

布吕布制造,卡格鲁,菲希特福,斯图克斯!,小盒子

帮忙吗?在

加入https://discord.gg/V5vaWwr(向自闭症编码寻求帮助)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
尝试运行JFLAP。戴软呢帽的罐子23。Java正在抛出异常   无引用的java数组布尔复制   hibernate如何在java SE应用程序中使用JPA EntityManager   java如何使用ORMLite在SQLite中持久化JavaFX属性?   java无法将项目部署到GAE   java:谷歌地图维基百科层   java Resultset(getter/setter类)对象在第二次执行时未删除旧值   s中的java struts2:选择列表>请求的列表键“”作为集合/数组/映射/枚举/迭代器类型   java如何在Karaf 4.0.5中获得BaseDao中的entityManager?   java VSCode未从控制台读取西里尔文   java字体。createFromAsset()返回字体的空指针异常   java错误:将Android Studio从0.6.1更新到0.8.9后,没有合适的构造函数