Skip to main content

Implements specular removal in images captured from various view points

Project description

# Specularity removal in multi-viewpoint images

The package is an open source utility to remove specularity in Images that has been captured from multiple viewpoints.

#### Disclaimer
The method uses Homography to find the best pixels available in other viewpoint images. It will not work if the object is not planar.

## Requirements:
- Numpy
- OpenCV

Works with both Python 2.7+ and Python 3+

## Usage
```python
fnames = [
'data/pshycology-book-1.jpg',
'data/pshycology-book-2.jpg',
'data/pshycology-book-3.jpg'
]
remove_specularity(fnames)
```

## Example 1
#### Using two input images
<img src="data/calculus-book-1.jpg" alt="Calculus Book 1" width="200" />
<img src="data/calculus-book-2.jpg" alt="Calculus Book 2" width="200" />
### Output
<img src="results/calculus-book-1.jpg" alt="Calculus Book 1" width="200" />
<img src="results/calculus-book-2.jpg" alt="Calculus Book 2" width="200" />

## Example 2
#### Using three input images
<img src="data/pshycology-book-1.jpg" alt="Calculus Book 1" width="200" />
<img src="data/pshycology-book-2.jpg" alt="Calculus Book 2" width="200" />
<img src="data/pshycology-book-3.jpg" alt="Calculus Book 2" width="200" />
### Output
<img src="results/pshycology-book-1.jpg" alt="Calculus Book 2" width="200" />
<img src="results/pshycology-book-2.jpg" alt="Calculus Book 2" width="200" />
<img src="results/pshycology-book-3.jpg" alt="Calculus Book 2" width="200" />

Project details


Download files

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

Files for specularity_removal, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size specularity_removal-0.1.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page