Skip to main content

tool for preprocessing media

Project description

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.

Project details


Download files

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

Source Distribution

media_preprocessor-10.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file media_preprocessor-10.0.tar.gz.

File metadata

  • Download URL: media_preprocessor-10.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for media_preprocessor-10.0.tar.gz
Algorithm Hash digest
SHA256 0fb129bcebe5e9718d96a83103c042a297f197c7c0e5348fb92a51018f250721
MD5 beacc938d996803a9f0260b58243c219
BLAKE2b-256 b8f4f8ca9e3ac1315a01e6bd2eb4ae0dffe7ab84517206e8f512da2d9dd3303e

See more details on using hashes here.

Supported by

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