Skip to main content

A package for video editing with occlusion noise

Project description

PyOcclusion

PyPI License Downloads

PyOcclusion is a Python package for adding noise of occlusionary type to video files. There is a broad range of parameters for altering in order to achieve the desirded occlusion density, coverage percent, etc. The process is automated and requires no additional prescribing.

Here is an example of what can be done with PyOcclusion:

Description of the image

Statement Of Need

While most of the software tends to reduce noise in the file, there are many cases when people need to add noise in order to test the new visual model, recognition software, etc. However, most of software tends to generate Gaussian noise, Salt-and-Pepper Noise and so on. PyOcclusion gives an opportunity to overlay an occlusion on both image and video files. There is a broad variety of parameters for customizing occlusionary noise to achieve desired result.

Installation

PyOcclusion can be installed from PyPI:

pip install PyOcclusion

Once installed, package can be loaded as:

import PyOcclusion

Example

import PyOcclusion

# instantiate an editor

row_velocity = 20
column_velocity = 0
height_of_shape = 17
width_of_shape = 17
num = 500
height_of_frame = 1080
width_of_frame = 1920

editor = PyOcclusion.VideoEditor(row_velocity, column_velocity, height_of_shape, width_of_shape, num, height_of_frame, width_of_frame)

# generate new video

path_to_file = "./video.mp4"

path_to_new_file = "./newVideo.mp4"

editor.editVideo(path_to_file, path_to_new_file)

Documentation

General:

API

Usage Examples

Citation

The package can be cited as follows:

@software{Synytskyi_PyOcclusion_2024,
  author = {Synytskyi, Bohdan and Livingstone, Steven R},
  month = {08},
  title = {{PyOcclusion}},
  url = {https://github.com/BohdanSynytskyi/PyOcclusion},
  version = {1.0.0},
  year = {2024},
}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

PyOcclusion-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file PyOcclusion-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyOcclusion-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.8

File hashes

Hashes for PyOcclusion-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13a1af1fabd15254c00b32676c601c11e5f3f1760e1f52641d0d6cb3897cd931
MD5 b9c9e8f1a75857c1e2923de4e1cd2f2b
BLAKE2b-256 9fd89d947f754ef2c2b8a88764fcbf876dae287a899e64c5da21fa947af0faad

See more details on using hashes here.

Supported by

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