# Dehazer
[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
## 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
<table align="center">
<tr>
<td align="center"> <img src="https://private-user-images.githubusercontent.com/91942072/241586034-9213dd87-4639-4621-a81e-ffc626e5f51c.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA2NTQ1LCJuYmYiOjE2ODUzMDYyNDUsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg2MDM0LTkyMTNkZDg3LTQ2MzktNDYyMS1hODFlLWZmYzYyNmU1ZjUxYy5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMDM3MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NTc3YmQ0ZmM0MDRhYzAxZTUzMjQxNTZjZjQ4MWEwZGMxN2YxNTZhYTY2OTY5NmE5MzZhYTFhOWNiNGQxODA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CKdHpfVvNrKL-IO7v48wFUzRPGVesJFMHxNkxt4r8Tk" alt="parmishh" /></td>
<td align="center"> <img src="https://private-user-images.githubusercontent.com/91942072/241586031-77e13118-a43e-4b3c-a7bf-ca69e21ad59e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA2NTQ1LCJuYmYiOjE2ODUzMDYyNDUsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg2MDMxLTc3ZTEzMTE4LWE0M2UtNGIzYy1hN2JmLWNhNjllMjFhZDU5ZS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMDM3MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYWYwZWYzM2FlMDJlNTU4MjA5OGY0MzBmODk1MTRjNTFmNmUwOThhNzIxYzA2YmU4NzY3YWIzODY3OGE4ODRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2lG_CaR8wmXpcqj0hfTw2cnVFAOvzIIlc0Ih6WIr4jk" alt="parmishh" /></td>
</tr>
</table>
<table align="center">
<tr>
<td align="center"> <img src="https://private-user-images.githubusercontent.com/91942072/241587779-404a6151-5dbe-4f6f-accf-efc6b34e1584.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA4MTY2LCJuYmYiOjE2ODUzMDc4NjYsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg3Nzc5LTQwNGE2MTUxLTVkYmUtNGY2Zi1hY2NmLWVmYzZiMzRlMTU4NC5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMTA0MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDNiZmY5ZmE3N2RhMzYwZjViNWU1YTY4MDQ0MTE5OWVhNmQyMzllMWI2ZTMzMmM4MjRjYTg0YzgwNzQ3MmUwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9eRTYufU__MIE2NKqeAwEgXPPUEdTfWy4EtF7kD3DAM" alt="parmishh" /></td>
<td align="center"> <img src="https://private-user-images.githubusercontent.com/91942072/241587776-ed760c72-39fd-4417-91d8-8a4f703779d5.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA4MTY2LCJuYmYiOjE2ODUzMDc4NjYsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg3Nzc2LWVkNzYwYzcyLTM5ZmQtNDQxNy05MWQ4LThhNGY3MDM3NzlkNS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMTA0MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yOGM5MDNiMWRhN2UwYjc0ODMzNDlmMWJjODFlOGY2MTc3ZTY4M2MzYTI1N2FlMDVlNjdmMzlkODc4MGYyMDVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2AiNREUNC8o1peToW3VfwilhtfxBT7FGenqNnbUgRoY" alt="parmishh" /></td>
</tr>
</table>
Raw data
{
"_id": null,
"home_page": "https://github.com/parmishh",
"name": "Dehaze",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "Dehazer,single image dehazer,image-dehazer,Dark Channel Prior,Foggremover,defogging",
"author": "Paramjit Singh",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/49/1b/fdf6c301d055b2224e6e4eef0d1230c7e689efd8a150012b9e11bccc364c/Dehaze-0.0.4.tar.gz",
"platform": null,
"description": "# Dehazer\n\n[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) \n[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) \n\n\n## Functionality of the Dehazer\n\n- Removes Haze and Fog and enhances quality of Videos/Images.\n- Removes Background and enhances quality of Videos/Images.\n\n## Usage\n\n- Make sure you have Python installed in your system.\n- Run Following command in the CMD.\n ```\n pip install Dehaze\n ```\n## Implementation\n\n ```\n# test.py\n# 0 for Dehazing and 1 for Remove Background\nimport Dehaze\nDehaze.dhazei(img,0) #Input:image Output:image\nDehaze.dhazei(img,1)\n\nDehaze.dhaze(\"gggg.jpg\",0) #Input:path Output:image\nDehaze.dhaze(\"gggg.jpg\",1)\n\nDehaze.vdhaze(\"vv.mp4\",0) #Input:path Output:output.mp4 in root directory\nDehaze.vdhaze(\"vv.mp4\",1)\n\n ```\n\n## Example\n ```\nimport Dehaze\nimport cv2\n\nimg = cv2.imread(\"gggg.jpg\", cv2.IMREAD_COLOR) \nz=Dehaze.dhazei(img,1)\ncv2.imshow('Dehazed_image', z) #Input:image Output:image\ncv2.waitKey(0)\n\n\nz=Dehaze.dhaze(\"gggg.jpg\",1)\ncv2.imshow('Dehazed_image', z) #Input:path Output:image\ncv2.waitKey(0)\n\n\nDehaze.vdhaze(\"vv.mp4\",1) #Input:path Output:output.mp4 in root directory\nDehaze.vdhaze(\"vv.mp4\",0)\n\n\n ```\n\n## Screenshots\n<table align=\"center\">\n<tr>\n <td align=\"center\"> <img src=\"https://private-user-images.githubusercontent.com/91942072/241586034-9213dd87-4639-4621-a81e-ffc626e5f51c.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA2NTQ1LCJuYmYiOjE2ODUzMDYyNDUsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg2MDM0LTkyMTNkZDg3LTQ2MzktNDYyMS1hODFlLWZmYzYyNmU1ZjUxYy5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMDM3MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NTc3YmQ0ZmM0MDRhYzAxZTUzMjQxNTZjZjQ4MWEwZGMxN2YxNTZhYTY2OTY5NmE5MzZhYTFhOWNiNGQxODA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CKdHpfVvNrKL-IO7v48wFUzRPGVesJFMHxNkxt4r8Tk\" alt=\"parmishh\" /></td>\n <td align=\"center\"> <img src=\"https://private-user-images.githubusercontent.com/91942072/241586031-77e13118-a43e-4b3c-a7bf-ca69e21ad59e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA2NTQ1LCJuYmYiOjE2ODUzMDYyNDUsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg2MDMxLTc3ZTEzMTE4LWE0M2UtNGIzYy1hN2JmLWNhNjllMjFhZDU5ZS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMDM3MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYWYwZWYzM2FlMDJlNTU4MjA5OGY0MzBmODk1MTRjNTFmNmUwOThhNzIxYzA2YmU4NzY3YWIzODY3OGE4ODRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2lG_CaR8wmXpcqj0hfTw2cnVFAOvzIIlc0Ih6WIr4jk\" alt=\"parmishh\" /></td>\n</tr>\n</table>\n<table align=\"center\">\n<tr>\n <td align=\"center\"> <img src=\"https://private-user-images.githubusercontent.com/91942072/241587779-404a6151-5dbe-4f6f-accf-efc6b34e1584.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA4MTY2LCJuYmYiOjE2ODUzMDc4NjYsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg3Nzc5LTQwNGE2MTUxLTVkYmUtNGY2Zi1hY2NmLWVmYzZiMzRlMTU4NC5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMTA0MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDNiZmY5ZmE3N2RhMzYwZjViNWU1YTY4MDQ0MTE5OWVhNmQyMzllMWI2ZTMzMmM4MjRjYTg0YzgwNzQ3MmUwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9eRTYufU__MIE2NKqeAwEgXPPUEdTfWy4EtF7kD3DAM\" alt=\"parmishh\" /></td>\n <td align=\"center\"> <img src=\"https://private-user-images.githubusercontent.com/91942072/241587776-ed760c72-39fd-4417-91d8-8a4f703779d5.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXkxIiwiZXhwIjoxNjg1MzA4MTY2LCJuYmYiOjE2ODUzMDc4NjYsInBhdGgiOiIvOTE5NDIwNzIvMjQxNTg3Nzc2LWVkNzYwYzcyLTM5ZmQtNDQxNy05MWQ4LThhNGY3MDM3NzlkNS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMwNTI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMDUyOFQyMTA0MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yOGM5MDNiMWRhN2UwYjc0ODMzNDlmMWJjODFlOGY2MTc3ZTY4M2MzYTI1N2FlMDVlNjdmMzlkODc4MGYyMDVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2AiNREUNC8o1peToW3VfwilhtfxBT7FGenqNnbUgRoY\" alt=\"parmishh\" /></td>\n</tr>\n</table>\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A Haze remover using Dark Channel Prior",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/parmishh"
},
"split_keywords": [
"dehazer",
"single image dehazer",
"image-dehazer",
"dark channel prior",
"foggremover",
"defogging"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "53a0f6758bcc77e852bb04896290e6d2c7cdd8ffe84a907e2b27022310a80287",
"md5": "7efb24d110d61a12752c22b1254b645b",
"sha256": "9fc81d597a30b9cc2136b8572d18d88a12496dbbc3635dddb52d567ffafe3317"
},
"downloads": -1,
"filename": "Dehaze-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7efb24d110d61a12752c22b1254b645b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6262,
"upload_time": "2023-05-28T21:27:37",
"upload_time_iso_8601": "2023-05-28T21:27:37.674641Z",
"url": "https://files.pythonhosted.org/packages/53/a0/f6758bcc77e852bb04896290e6d2c7cdd8ffe84a907e2b27022310a80287/Dehaze-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "491bfdf6c301d055b2224e6e4eef0d1230c7e689efd8a150012b9e11bccc364c",
"md5": "64fbfc0609e7408116fb4305c31dc0ac",
"sha256": "0749c140487d0dfa8b7405fc38344f1c8ade89830c386a032d09510ff92fddea"
},
"downloads": -1,
"filename": "Dehaze-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "64fbfc0609e7408116fb4305c31dc0ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6377,
"upload_time": "2023-05-28T21:27:39",
"upload_time_iso_8601": "2023-05-28T21:27:39.846120Z",
"url": "https://files.pythonhosted.org/packages/49/1b/fdf6c301d055b2224e6e4eef0d1230c7e689efd8a150012b9e11bccc364c/Dehaze-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-28 21:27:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dehaze"
}