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

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第三方库


热门话题
java 401在API URL上带有声明性Http客户端,并带有@Secured(SecurityRule.IS_ANONYMOUS)注释   java如何在Android中创建计时器?   Java8WebStart安全弹出窗口   java会通过以下两种方式导致堆空间耗尽吗?   java项目调度GA:染色体的高效数据结构   java Apache POI:如何在Excel文件中插入列   java在JRE系统库中每个jar扮演什么角色   java如何在抽象类中执行@mock(不是注入mock)   java如何使用opensearch和Lucene发送搜索查询?   java在ApachePOI中处理空列   java广播接收器未接收到目标   java错误ELF类:ELF类64(可能原因:体系结构字宽不匹配)   java调用Web服务(SSL)时出错   用于iot集线器设备固件更新的java Rest API   通过xslt将xml转换为文本文件时引发java异常   Java linux打印问题   Java XML转换器重复行   java从另一个类的方法将数组导入mainActivity类   多线程选择与Java交互的线程   我想在java程序中打印以下格式的文件: