PyOcclusion
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:
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:
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},
}
Metadata
Release files for PyOcclusion 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyOcclusion-1.0.2.tar.gz | 6.0 kB | Without provenance | Details for PyOcclusion-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyOcclusion-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for PyOcclusion-1.0.2-py3-none-any.whl |
Total release size: 13.4 kB
Release files / PyOcclusion-1.0.2.tar.gz
| Download URL | PyOcclusion-1.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39950cf06e6921b90010c41bee8e186f31fa82b3b7b17a0b5e10bd13e30c6a69
|
|
BLAKE2b-256 checksum How to use checksums |
8624ece8c00b66765f32dfd9ad641fec6ba7306f035b42c0d954052988cbc007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.8
|
Release files / PyOcclusion-1.0.2-py3-none-any.whl
| Download URL | PyOcclusion-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c98470b1add61e9f39a586e1a895887f363205e9242e39cd370bbf72d977fc1a
|
|
BLAKE2b-256 checksum How to use checksums |
11b4352c924e9e901c83556bd57f441a016f8a7bdf4a6f4a23f5c1cf24a93605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.8
|
Security for PyOcclusion 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.