defogging
Implement a robust and efficient defogging method with Python
Features
Defogging a single foggy image
install
Use pip to install:
$ pip install defogging
Or you can install from source:
$ git clone git@github.com:scloudyy/Defogging.git $ cd Defogging $ python setup.py build $ pip install .
Usage
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()
df.read_img(in_name)
df.defog()
df.save_img(out_name)
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 files for defogging 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| defogging-0.1.7.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| defogging-0.1.7-py3.5.egg | Legacy Egg format | - | - | Details |
Total release size: 20.0 kB
Release files / defogging-0.1.7.tar.gz
| Download URL | defogging-0.1.7.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e332fe2947243deb12bd77a8550c1b1694d5d03ae7904eb367970e2e7655668b
|
|
BLAKE2b-256 checksum How to use checksums |
8ecd9f30c78d21cf406f21593ca5fbfc1a1e0e6c1ce131eee67287492530aabc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / defogging-0.1.7-py3.5.egg
| Download URL | defogging-0.1.7-py3.5.egg |
|---|---|
| Size | 15.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
232f91050c906156aad1850cb11c60f4913bb55bb6b5512e1ac9e4def97ed97b
|
|
BLAKE2b-256 checksum How to use checksums |
c2cb841c7a97479e21251c5301419a10f0306a5cbf25ff367b475748ea994871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |