# PyVPD: Vanishing Point Detector
This is a Python + Scikit-Image implementation of the Vanishing point detection in images
## Installation
```
pip install pyvpd
```
## Usage
```python
import cv2
from pyvpd import VPDetector
image = cv2.imread("io/input/1.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
vp_detector = VPDetector()
vps_3d, vps_2d = vp_detector.detect(image)
print("vps_3d:", vps_3d)
print("vps_2d:", vps_2d)
```
## Results
Input image:

First vanishing point:

Second vanishing point:

## Acknowledgments
We made necessary changes on top of [Automated Rectification of Image](https://github.com/chsasank/Image-Rectification) to fit our design. Many thanks to Sasank Chilamkurthy for releasing the code.
Implements the modified version of the following paper:
[Chaudhury, Krishnendu, Stephen DiVerdi, and Sergey Ioffe. "Auto-rectification
of user photos." 2014 IEEE International Conference on Image Processing (ICIP).
IEEE, 2014.](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/42532.pdf)
Raw data
{
"_id": null,
"home_page": "https://github.com/SajjadAemmi/pyvpd",
"name": "pyvpd",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Sajjad Aemmi",
"author_email": "sajjadaemmi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/5e/80e300f8055f4534bd0f710e0eed2a1732cfbc106a93271c56732f04d52b/pyvpd-0.1.2.tar.gz",
"platform": null,
"description": "# PyVPD: Vanishing Point Detector\n\nThis is a Python + Scikit-Image implementation of the Vanishing point detection in images\n\n## Installation\n```\npip install pyvpd\n```\n\n## Usage\n\n```python\nimport cv2\nfrom pyvpd import VPDetector\n\nimage = cv2.imread(\"io/input/1.jpg\")\nimage = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)\n\nvp_detector = VPDetector()\nvps_3d, vps_2d = vp_detector.detect(image)\nprint(\"vps_3d:\", vps_3d)\nprint(\"vps_2d:\", vps_2d)\n```\n\n## Results\n\nInput image:\n\n\n\nFirst vanishing point:\n\n\n\nSecond vanishing point:\n\n\n\n## Acknowledgments\nWe made necessary changes on top of [Automated Rectification of Image](https://github.com/chsasank/Image-Rectification) to fit our design. Many thanks to Sasank Chilamkurthy for releasing the code.\n\nImplements the modified version of the following paper: \n\n[Chaudhury, Krishnendu, Stephen DiVerdi, and Sergey Ioffe. \"Auto-rectification\nof user photos.\" 2014 IEEE International Conference on Image Processing (ICIP).\n IEEE, 2014.](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/42532.pdf)\n",
"bugtrack_url": null,
"license": "",
"summary": "Vanishing Point Detector",
"version": "0.1.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2d38c2e825989752b66c242b36eb207fa61631c340af38ac1b284c98d1e33441",
"md5": "42c32dc55f563d6f12b80d30861d3cc3",
"sha256": "42cbf1cf19a4171c1648cdc9acedfd2b1810230f4a5856e6c509122eddd27f7d"
},
"downloads": -1,
"filename": "pyvpd-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "42c32dc55f563d6f12b80d30861d3cc3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8584,
"upload_time": "2023-03-28T21:03:49",
"upload_time_iso_8601": "2023-03-28T21:03:49.560357Z",
"url": "https://files.pythonhosted.org/packages/2d/38/c2e825989752b66c242b36eb207fa61631c340af38ac1b284c98d1e33441/pyvpd-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e5e80e300f8055f4534bd0f710e0eed2a1732cfbc106a93271c56732f04d52b",
"md5": "cd3bcebd812a569194417025e23a93dd",
"sha256": "15129959e6de168fd67dd02a6290cfe54689b9aed0adbb27ae57f1205d21f96f"
},
"downloads": -1,
"filename": "pyvpd-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "cd3bcebd812a569194417025e23a93dd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8692,
"upload_time": "2023-03-28T21:03:51",
"upload_time_iso_8601": "2023-03-28T21:03:51.240595Z",
"url": "https://files.pythonhosted.org/packages/8e/5e/80e300f8055f4534bd0f710e0eed2a1732cfbc106a93271c56732f04d52b/pyvpd-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-28 21:03:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "SajjadAemmi",
"github_project": "pyvpd",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pyvpd"
}