### Hue Changer Package [](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.
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.
Metadata
Release files for huechanger 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| huechanger-0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / huechanger-0.1-py2.py3-none-any.whl
| Download URL | huechanger-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ac6925448789f89d4e323b03f88ae02082f1872de0bea52f27856c14a06695ed
|
|
BLAKE2b-256 checksum How to use checksums |
c67f082da0b56defeb3980ec378f74047183636982af3d3c3f9eb92eb33184b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for huechanger 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.