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
original image
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
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
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
Release history Release notifications | RSS feed
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.2.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sufi-1.0.2.2.tar.gz.
File metadata
- Download URL: sufi-1.0.2.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cac9cf04eed65c56a1efac13ea2f0d624059b98ef9f2d26626f08deb822d952
|
|
| MD5 |
9fb26b50e43fcd0970581f8b96789b51
|
|
| BLAKE2b-256 |
300d2a2ab0ae604a9d57cc9f0079d921f5b0e7307b50d91238b9c5e369aa58cd
|
File details
Details for the file sufi-1.0.2.2-py3-none-any.whl.
File metadata
- Download URL: sufi-1.0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b3ce23edd33b3444fb1f6d0206c75ca6ae80c06c689436d4382e1fd972c95fa
|
|
| MD5 |
f93aa9875e59ce9016824df96a1cf237
|
|
| BLAKE2b-256 |
48d16d16e528bab2dc56062eb22f55477579f4881019e1f9bd1931da9b5c6598
|