Metadata-Version: 2.0
Name: huechanger
Version: 0.1
Summary: Change color of images
Home-page: https://github.com/guemues/hue-changer
Author: Orcun Gumus
Author-email: orcungumus@gmail.com
License: UNKNOWN
Download-URL: https://github.com/guemues/hue-changer/archive/0.1.tar.gz
Description-Content-Type: UNKNOWN
Keywords: color
Platform: UNKNOWN
Requires-Dist: certifi (==2017.11.5)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: cycler (==0.10.0)
Requires-Dist: idna (==2.6)
Requires-Dist: matplotlib (==2.1.0)
Requires-Dist: nose (==1.3.7)
Requires-Dist: numpy (==1.13.3)
Requires-Dist: opencv-python (==3.3.0.10)
Requires-Dist: pyparsing (==2.2.0)
Requires-Dist: python-dateutil (==2.6.1)
Requires-Dist: pytz (==2017.3)
Requires-Dist: requests (==2.18.4)
Requires-Dist: six (==1.11.0)
Requires-Dist: urllib3 (==1.22)

### Hue Changer Package [![Build Status](https://travis-ci.org/guemues/hue-changer.svg?branch=master)](https://travis-ci.org/guemues/hue-changer)

You have a colorful image and you want to make it red. This package is for you. There is many more method to turn images to grayscale but there is no other package to turn images to other colors. With this package you can turn images a specific HUE ranges.


You can easily install the package via pip. This package only tested in python 3.6.

```
pip intall huechanger
```

**change_in_range** method is taking 3 channel numpy array as RGB image and return an RGB image with maximum hue and minumum hue

```python

url = "https://snag.gy/uFPG2T.jpg"
filename = url.split("/")[-1]
r = requests.get(url, timeout=1)

if r.status_code == 200:
    with open(filename, 'wb') as f:
        f.write(r.content)

t = cv2.imread(filename)

MIN_HUE = 10
MAX_HUE = 30

t = cv2.cvtColor(t, COLOR_BGR2RGB)
new_image = change_in_range(t, MIN_HUE, MAX_HUE)


```


<img src="https://snag.gy/V25svq.jpg" width="200">

will be turn in to

<img src="https://snag.gy/kduXwj.jpg" width="200">

Enjoy with colors

This python package is implemented for an EPFL cognitive science semester course project.


