Skip to main content

Overview: The objective of this package, as the name suggest, is to act as a media pre-processing tool. It simplifies the process of importing media to the python environment. It takes input from the user in the form of images or video capture and lets the user define certain parameters, pertaining to which the function gives the output. The package primarily consists of two functions:

  1. img_pre()
  2. nbg_vc() Functions:
  3. img_pre(location, shape, edges)

This function takes input from the user in the form of images and performs pre-processing operations on it like reshape, resize (1:1 ratio) and standardize. It also gives the users an option to remove the background from the images and retain only the edges of the subject of the image.

Parameters: • location (string) input folder path of where the images are stored

• shape (integer) input desired shape of image

• edges (boolean) False: original pictures after pre-processing True: output images have edges of the subject without the background 2. nbg_vc(shape) It allows the user to capture video using their webcam and removes the background by only capturing objects that move in the frame.

Parameters: shape (integer): defines shape of the desired output image.

Release files for media-preprocessor 10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for media-preprocessor 10.0
File Size Uploaded
media_preprocessor-10.0.tar.gz 3.1 kB Details

Release files / media_preprocessor-10.0.tar.gz

Download URL media_preprocessor-10.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb129bcebe5e9718d96a83103c042a297f197c7c0e5348fb92a51018f250721
BLAKE2b-256 checksum
How to use checksums
b8f4f8ca9e3ac1315a01e6bd2eb4ae0dffe7ab84517206e8f512da2d9dd3303e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

10.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page