Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Defogging based on Python

Project Description

Implement a robust and efficient defogging method with Python


  • Defogging a single foggy image


Use pip to install:

$ pip install defogging

Or you can install from source:

$ git clone
$ cd Defogging
$ python build
$ pip install .


Use defogging through command line:

$ defogging your_img.bmp

the result will be saved as your_img_defogging.bmp

And you can also use defogging in your own code:

from defogging import Defog

in_name = "foggy.bmp"
out_name = "defogged.bmp"

df = Defog()

you can directly input a foggy object in the form of numpy.array :

df.read_array(your_array, range)

where range indicates the value range of your array.The range has two options: the first is 1, which means the value range of your array is [0,1], and the second is 255, which means the value range is [0,255]

If you want to process the defogged object further, you can also get defogged array:

dst = df.get_array(range)

also, range indicates the value range of returned array, either 1 or 255. If you choose 1, the range will lie in [0,1], and the type of it is float. Or if you choose 255, the range will be [0,255], and the type will be uint8.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
defogging-0.1.8.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Aug 16, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting