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.

Source Distribution

specularity_removal-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file specularity_removal-0.1.1.tar.gz.

File metadata

File hashes

Hashes for specularity_removal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b88496a0ccd640fc52b1e0876ee7b107481b284caa0a8ca89b43828c56cc9486
MD5 56da2aa1ee60bbe0b443259aea060762
BLAKE2b-256 b84307c67a7619803ca96467f7cf36ed59df656a998f20f6e20d37b7707c70cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page