Single-Image-Dehazing-Python
python implementation of the paper: "Efficient Image Dehazing with Boundary Constraint and Contextual Regularization"
Quickstart
This library performs image dehazing.
Installation
To install, run:
$ pip install image_dehazer
Usage:
import image_dehazer # Load the library
HazeImg = cv2.imread('image_path') # read input image -- **must be a color image**
HazeCorrectedImg, HazeMap = image_dehazer.remove_haze(HazeImg) # Remove Haze
cv2.imshow('input image', HazeImg); # display the original hazy image
cv2.imshow('enhanced_image', HazeCorrectedImg); # display the result
cv2.imshow('HazeMap', HazeMap); # display the HazeMap
cv2.waitKey(0) # hold the display window
### user controllable parameters (with their default values):
airlightEstimation_windowSze=15
boundaryConstraint_windowSze=3
C0=20
C1=300
regularize_lambda=0.1
sigma=0.5
delta=0.85
showHazeTransmissionMap=True
As easy as that!
Metadata
Release files for image-dehazer 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| image_dehazer-0.0.9.tar.gz | 6.2 kB | Without provenance | Details for image_dehazer-0.0.9.tar.gz |
Release files / image_dehazer-0.0.9.tar.gz
| Download URL | image_dehazer-0.0.9.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67323e36fc7c5da604ca8dd1fde9e58197b896e86b75e559174091581b811ad3
|
|
BLAKE2b-256 checksum How to use checksums |
e2cc203bef9960516b2403f5811449b12c6ca3f5bd7928d9cd8c9268e43d79d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for image-dehazer 0.0.9
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.