Skip to main content

Spatially-Varying-Blur-Detection-python

python implementation of the paper "Spatially-Varying Blur Detection Based on Multiscale Fused and Sorted Transform Coefficients of Gradient Magnitudes" - cvpr 2017

brief Algorithm overview

Uses discrete cosine transform coefficients at multiple scales and uses max pooling on the high frequency coefficients to get the sharp areas in an image.

Quickstart

This library performs Spatially Varying Blur Detection which is can be used in many applications such as Depth of field estimation, Depth from Focus estimation, Blur Magnification, Deblurring etc.

Installation

To install, run: pip install blur-detector

Usage:

import blur_detector
import cv2
if __name__ == '__main__':
	img = cv2.imread('image_name', 0)
	blur_map = blur_detector.detectBlur(img, downsampling_factor=4, num_scales=4, scale_start=2, num_iterations_RF_filter=3, show_progress=True)

	cv2.imshow('ori_img', img)
	cv2.imshow('blur_map', blur_map)
	cv2.waitKey(0)

As easy as that!!

Metadata

Release files for blur-detector 0.0.6

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

Source distribution (sdist)

Source distribution for blur-detector 0.0.6
File Size Uploaded Provenance Actions
blur-detector-0.0.6.tar.gz 5.9 kB Without provenance Details for blur-detector-0.0.6.tar.gz

Release files / blur-detector-0.0.6.tar.gz

Download URL blur-detector-0.0.6.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d0e591e1ad690c8a99336f47fb6ae15719aed19195c81764314f3eef24f87f3a
BLAKE2b-256 checksum
How to use checksums
e262f4e82ffd1c4ff37ae09ad91b2e6eaf9eb3c3ca63ba28d5e26fdd972d0ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for blur-detector 0.0.6

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