A Python package for image dehazing using Dark Channel Prior
Project description
Adrishyam
A Python package for image dehazing using Dark Channel Prior algorithm.
Installation
pip install adrishyam
Usage
from adrishyam import dehaze_image
# Basic usage
dehaze_image(
input_path="path/to/hazy/image.jpg",
output_dir="path/to/output/directory"
)
# Advanced usage with custom parameters
dehaze_image(
input_path="path/to/hazy/image.jpg",
output_dir="path/to/output/directory",
t_min=0.1, # Minimum transmission value (default: 0.1)
patch_size=15, # Size of the local patch (default: 15)
omega=0.95, # Dehazing strength (default: 0.95)
radius=60, # Filter radius for guided filter (default: 60)
eps=0.01, # Regularization parameter (default: 0.01)
show_results=False # Whether to display results (default: False)
)
Output
The package will create the following files in the output directory:
original.png: Original hazy imagedark_channel.png: Dark channel of the imagetransmission.png: Estimated transmission maprefined_transmission.png: Refined transmission mapdehazed.png: Final dehazed imageresult.png: Combined visualization of all steps
License
MIT License
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
adrishyam-0.1.1.tar.gz
(4.4 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 adrishyam-0.1.1.tar.gz.
File metadata
- Download URL: adrishyam-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd04b19a6dc2449d0aa106964ab7d14c2ac9b0ec73a4d8ddad5762cd0b618377
|
|
| MD5 |
5539505a43df37e25bbadfa0918cb2bd
|
|
| BLAKE2b-256 |
273dcd67d5a0df5356b15363d076fc29b3edb72cb717a51baf64623f84393247
|
File details
Details for the file adrishyam-0.1.1-py3-none-any.whl.
File metadata
- Download URL: adrishyam-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96e853b897de71d8a4667aacdf52347909490a3a50b2a1737f4bb8511d04a5ac
|
|
| MD5 |
c84932fcaea63325b3b3f4fd661b6280
|
|
| BLAKE2b-256 |
34407725874d24ea54a4b0cd9ff4a7b56ddefdfddb04a275848751bc8e4b8019
|