Skip to main content

apply different types of filters on image

Project description

sufi : Do image and video manipulation ||apply filters|| extract frames||

how to use

install

pip install sufi

import and use

from sufi import filters

apply spell filters

from sufi import filters
from sufi import utility

filters.apply_spell() # casting spell

sample output

spell shield

original image

Screenshot 2023-03-16 at 12 45 51 AM

convert image to digital art

path = "../images/football.jpeg"  #path of image
img = cv.imread(path)  # read image
img = filters.digital_art_filter(img)  # apply filter
filters.display_image(img) #display image
Screenshot 2024-04-25 at 11 29 28 PM

convert image to pencil art

path = "../images/football.jpeg"  #path of image
img = cv.imread(path)  # read image
img = filters.sketch_filter(img)
filters.display_image(img) #display image
Screenshot 2024-05-01 at 4 29 31 PM

there are total of 10 filters which can be applied using the package

blur

sharp

canny

HDR

sketch

digital paint

black and white

adjust values for different types of images

digital_art_filter(img,sigma_s=10,sigma_r=0.3,blur = 7)

here you supply sigma_s and sigma_r as per your need.

extract frames from video and save locally

if you want to extract images from a video you can use below function from the package

from sufi import videoProcessing as vd
vd.extract_frames(path,delay)

path is video path , it should be your local file path fo the video dealy is which frame you want to extract, like every 10th frame or every 20th frame.

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

sufi-1.0.2.6.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sufi-1.0.2.6-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file sufi-1.0.2.6.tar.gz.

File metadata

  • Download URL: sufi-1.0.2.6.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for sufi-1.0.2.6.tar.gz
Algorithm Hash digest
SHA256 9641d39dffffc5de22a05e11f1685bd71caa85399bf9ff1af81caf9fc59c1293
MD5 795411dba4bbb03160502634d2575953
BLAKE2b-256 3b4ba2dd1389a750fd068b1505f75b19ddf854c152d9bf4f0e6b4712def2af7e

See more details on using hashes here.

File details

Details for the file sufi-1.0.2.6-py3-none-any.whl.

File metadata

  • Download URL: sufi-1.0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for sufi-1.0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 34b79ee5e1468ac6f9efb4b05460f1e2e4dda3406330cb3402be3cf80b0e3da2
MD5 2051e138694404b31cfe8c77111d9864
BLAKE2b-256 75064ebdcc4f93c967bce82a2faa0377ec2d1a99817a6076f0e15218de1997ba

See more details on using hashes here.

Supported by

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