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 hashes)

Uploaded source

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