Skip to main content

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.

Metadata

Release files for sufi 1.0.2.7

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

Source distribution (sdist)

Source distribution for sufi 1.0.2.7
File Size Uploaded Provenance Actions
sufi-1.0.2.7.tar.gz 2.2 MB Without provenance Details for sufi-1.0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sufi 1.0.2.7
File Interpreter ABI Platform Actions
sufi-1.0.2.7-py3-none-any.whl Python 3 none any Details for sufi-1.0.2.7-py3-none-any.whl

Total release size: 4.3 MB

Release files / sufi-1.0.2.7.tar.gz

Download URL sufi-1.0.2.7.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
39c48657e8131b87d346e0e2513ca0b5c616f03f1b98b0bd5d7bdd78eb355418
BLAKE2b-256 checksum
How to use checksums
bad0a57fd7bd836afeaf21441b74967f0969877aa2c3c64ce77465bd5db04e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Release files / sufi-1.0.2.7-py3-none-any.whl

Download URL sufi-1.0.2.7-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f85d5eae341900604d476d9f34cdc760642f7438eb94db4b89e4723debe33a7b
BLAKE2b-256 checksum
How to use checksums
71d103c33bee43850fbbc1ab6630639bc829b2247279701852b3b0161fb4c574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Security for sufi 1.0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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