Skip to main content

A Haze remover using Dark Channel Prior

Project description

Dehazer

forthebadge made-with-python
Python 3.6

Functionality of the Dehazer

  • Removes Haze and Fog and enhances quality of Videos/Images.
  • Removes Background and enhances quality of Videos/Images.

Usage

  • Make sure you have Python installed in your system.
  • Run Following command in the CMD.
 pip install Dehaze

Implementation

# test.py
# 0 for Dehazing and 1 for Remove Background
import Dehaze
Dehaze.dhazei(img,0)     #Input:image Output:image
Dehaze.dhazei(img,1)

Dehaze.dhaze("gggg.jpg",0)   #Input:path Output:image
Dehaze.dhaze("gggg.jpg",1)

Dehaze.vdhaze("vv.mp4",0)     #Input:path Output:output.mp4 in root directory
Dehaze.vdhaze("vv.mp4",1)

Example

import Dehaze
import cv2

img = cv2.imread("gggg.jpg", cv2.IMREAD_COLOR) 
z=Dehaze.dhazei(img,1)
cv2.imshow('Dehazed_image', z)                     #Input:image Output:image
cv2.waitKey(0)


z=Dehaze.dhaze("gggg.jpg",1)
cv2.imshow('Dehazed_image', z)                    #Input:path Output:image
cv2.waitKey(0)


Dehaze.vdhaze("vv.mp4",1)                         #Input:path Output:output.mp4 in root directory
Dehaze.vdhaze("vv.mp4",0)


Screenshots

 parmishh  parmishh
 parmishh  parmishh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Dehaze-0.0.4.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

Dehaze-0.0.4-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page