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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Dehaze-0.0.4.tar.gz.

File metadata

  • Download URL: Dehaze-0.0.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for Dehaze-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0749c140487d0dfa8b7405fc38344f1c8ade89830c386a032d09510ff92fddea
MD5 64fbfc0609e7408116fb4305c31dc0ac
BLAKE2b-256 491bfdf6c301d055b2224e6e4eef0d1230c7e689efd8a150012b9e11bccc364c

See more details on using hashes here.

File details

Details for the file Dehaze-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Dehaze-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for Dehaze-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc81d597a30b9cc2136b8572d18d88a12496dbbc3635dddb52d567ffafe3317
MD5 7efb24d110d61a12752c22b1254b645b
BLAKE2b-256 53a0f6758bcc77e852bb04896290e6d2c7cdd8ffe84a907e2b27022310a80287

See more details on using hashes here.

Supported by

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