This file contains hidden or 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 vapoursynth as vs | |
| from vsmask.edge import FDOGTCanny | |
| from vsmask.util import XxpandMode, expand, inpand, max_planes | |
| from vsutil import join, split | |
| core = vs.core | |
| # clip = core.imwri.Read('unknown.png') * 10 |
This file contains hidden or 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
| from __future__ import annotations | |
| from math import ceil, floor | |
| from typing import Optional, Sequence | |
| import vapoursynth as vs | |
| from lvsfunc.kernels import BSpline, Lanczos, Mitchell | |
| # https://github.com/Varde-s-Forks/RgToolsVS | |
| from rgvs import minblur, repair | |
| from vsmask.better_vsutil import join, split |
This file contains hidden or 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
| from __future__ import annotations | |
| from functools import partial | |
| from typing import Any, Literal, NamedTuple, Protocol | |
| import vapoursynth as vs | |
| from lvsfunc.kernels import Catrom, Kernel | |
| from vsutil import depth, get_depth | |
| core = vs.core |
This file contains hidden or 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
| from typing import List, NamedTuple | |
| import math | |
| class Point(NamedTuple): | |
| x: float | |
| y: float | |
| def interpolate_bezier_curve(curv: List[Point], pct: float) -> Point: |
This file contains hidden or 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
| from typing import Any | |
| import cv2 | |
| import numpy as np | |
| import vapoursynth as vs | |
| from numpy.typing import NDArray | |
| src = core.imwri.Read(r'Scans_assault_loli\02.png') | |
| src.set_output(0) |
This file contains hidden or 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 asyncio | |
| import json | |
| import os | |
| import shutil | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| from typing import Any, Dict, List, Optional, Set | |
| from pyonfx import Ass, Convert, Line |
This file contains hidden or 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
| from typing import cast | |
| import lvsfunc | |
| import vapoursynth as vs | |
| from vsutil import EXPR_VARS, join, split | |
| core = vs.core | |
| def add_expr(n: int) -> str: |
This file contains hidden or 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
| script_name = "Export Text" | |
| script_description = "Export the selected lines without tags and line breaks, and display them in a new window" | |
| script_version = "0.2" | |
| script_author = "Vardë" | |
| function export_text(subs, sel) | |
| alltext = '' | |
| for k, i in ipairs(sel) do | |
| line = subs[i] | |
| clean = line.text:gsub("{[^}]+}", "") |
This file contains hidden or 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 vapoursynth as vs | |
| core = vs.core | |
| def nnedi3_rpow2CL(clip, rfactor=2, width=None, height=None, correct_shift=True, | |
| kernel="spline36", nsize=0, nns=3, qual=None, etype=None, pscrn=None, | |
| device=-1): | |
| """nnedi3_rpow2 is for enlarging images by powers of 2. | |
| Args: |
This file contains hidden or 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
| """Script conversion image""" | |
| import os | |
| import tkinter | |
| import subprocess | |
| import shlex | |
| import multiprocessing | |
| from multiprocessing.pool import ThreadPool as Pool | |
| from tkinter.filedialog import askdirectory | |
| from vsutil import is_image |
NewerOlder