13.12.2022, 19:11
Good afternoon, I have a simple script for removing noise in the frame with my parameters, how can I run it in the program, tell me please?
There is also a script for Vapursynth.
Thanks!
Code:
# Load the video clip
clip = AVISource("path/to/video.avi")
# Remove black and white dots
clip = RemoveDots(clip, thresh=3, chroma=false)
# Remove large white or black scratches
clip = Flicker(clip, 2, 0, thresh=100)
# Remove white or black flakes of damaged film
clip = Repair(clip, mode="spatial", chroma=false)
# Return the processed clip
return clip
There is also a script for Vapursynth.
Code:
# Load the video clip
clip = core.imwri.Read("path/to/video.avi")
# Convert the clip to a cartoon
clip = core.stf.Toon(clip)
# Remove black and white dots
clip = core.dfttest.DFTTest(clip, sigma=3, chroma=false)
# Remove large white or black scratches
clip = core.fl.Flicker(clip, 2, 0, thresh=100)
# Remove white or black flakes of damaged film
clip = core.repair.Repair(clip, mode="spatial", chroma=false)
# Return the processed clip
return clip
Thanks!