Skip to main content

Scratch removing filter for VapourSynth

Project description

DeScratch - Scratch Removing Filter

Plugin for VapourSynth and Avisynth+ Copyright (C)2003-2016 Alexander G. Balakhnin aka Fizick (http://avisynth.org.ru) Modernization and VapourSynth support by Fredrik Mellbin

Purpose

This plugin removes vertical scratches from films. Also it can be used for removing horizontal noise lines such as drop-outs from analog VHS captures (after image rotation). How it works The plugin firstly detects scratches, then removes them. It uses spatial information only from the current frame. I created it for restoration of my old 8 mm films, maybe it will be useful to somebody else.

Scratch detection

Apply some vertical blur to frame copy, for suppression of image thin structure, inclined lines and noise. Search for local extremes of luma in every row with luma difference criterion for scratches with width not above a max. Put these extremes in some map (frame). Search and deactivate extrems for width below a min (optional). Optionally close vertical gaps in extrems by vertical expanding of extreme points. Test the extremes map with length and angle criterions, so select real long scratches only.

Scratch removal

Scratches may be either partially transparent, smooth (with image details), or opaque (with no details or almost destroyed). In the first case, plugin can subtract smooth (blurred) part of luma scratches variation from original image. Therefore, image details are kept. In the second case, plugin replaces scratched pixels by mean luma values from some neighbours pixels (in same row). We have also intermediate case by setting some percent of detail to keep. In all cases, some nearest neighbours pixels may be also partially changed for smooth transition.

See full documentation in doc folder for usage examples.

Project details


Release history Release notifications | RSS feed

This version

4.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vapoursynth_descratch-4.0.tar.gz (11.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vapoursynth_descratch-4.0-py3-none-win_amd64.whl (187.5 kB view details)

Uploaded Python 3Windows x86-64

vapoursynth_descratch-4.0-py3-none-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

vapoursynth_descratch-4.0-py3-none-musllinux_1_2_aarch64.whl (1.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

vapoursynth_descratch-4.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (22.0 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

vapoursynth_descratch-4.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (21.7 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

vapoursynth_descratch-4.0-py3-none-macosx_11_0_arm64.whl (21.8 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

vapoursynth_descratch-4.0-py3-none-macosx_10_15_x86_64.whl (22.4 kB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file vapoursynth_descratch-4.0.tar.gz.

File metadata

  • Download URL: vapoursynth_descratch-4.0.tar.gz
  • Upload date:
  • Size: 11.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vapoursynth_descratch-4.0.tar.gz
Algorithm Hash digest
SHA256 ab7881631e2c80b16cfd7815144eb3385176f17c264aa41ceebb72e0021a2dad
MD5 f5707f51e21dce73893fcd52b0d0e8ab
BLAKE2b-256 fa7c4fdb4333b8c9adae41808c10d57040095f5d6f969c5e3369e2036e05ff0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0.tar.gz:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 da5fdec4b63a9a5181c9b7ea797d5e4db6747d6158054ae537aafe0c5359f278
MD5 0d4f740c073d327de7f950136c9eefbb
BLAKE2b-256 55f13a8e0bceb4aeadac38013da890599f7e2d14694cf668d14798a4d47d29ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-win_amd64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2e8fe50081ad2ad918c5ad073aa9311964404005d0618d9613bd63730099c61f
MD5 4c418bbde619d8f7fcc2aa9124e372cd
BLAKE2b-256 4c0a78aab2f5616c1579f7c14cd92d62c168aa78458837bdd1edb1ebdf9537d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-musllinux_1_2_x86_64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3571bebf9685ecbe32ff55ef0b0c524c677a4529042c08c5c1dca4537ca9523d
MD5 3c7c55e193cb72e5cb195e8f75acaf52
BLAKE2b-256 461f965f2a75cbc52abfbf3b7e6fb0bad5cab63a67f236e646dc2b1a6b50b0b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-musllinux_1_2_aarch64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4698164e7e69c17846c9d899dbb359daea66171747c018b04b51ed60907d6172
MD5 1c4fb620f5d1398647849d59b551a230
BLAKE2b-256 5a003952504e59542143529ac57a26790bdaa33b7abb0d8ba2b936c1c48c10d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 783670c0d3e6b8272d5feffe49b8004fb0a1d01b4401aa32894e40393891354e
MD5 d1e8b01abefa1265b88464b552509ac7
BLAKE2b-256 c914d2d5ccba961795ba4b53719fa051602a38e0a0543ba9320b8bcfa5b95609

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3f66ad677394bc8abb25f0bf94af2745b7425136e2494faadf5c527d00c1a8d
MD5 932155d5f8e457237be1ea3f71f471f6
BLAKE2b-256 3552c3a9372911f23027aaed7fbfb3d5bf4b3483390ba34ef93fabb4a300392e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-macosx_11_0_arm64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_descratch-4.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_descratch-4.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1344cfdaadc80c64b7fcfaf00f3ac9035c834c9d8ed401a7368c2ee6dfb6dacf
MD5 7b1027f62fe3214cc727653288a1aaea
BLAKE2b-256 f97435f320a6a7142042437688878acc8c6c1c1652625d566ca2f594921ee63b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_descratch-4.0-py3-none-macosx_10_15_x86_64.whl:

Publisher: build.yml on vapoursynth/descratch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page