semvec/pypi-packages huggingface dataset:
iromeku 0.0.1
A package for extracting colours from images.

# Iromeku

[![Build Status](https://travis-ci.com/carousell/DataAccessLayer.svg?token=EF9qHkSmyt2BrPXZdP6q&branch=master)](https://travis-ci.com/carousell/DataAccessLayer)

> 色めく (hiragana いろめく, rōmaji iromeku) 1. to become lively 2. to become roused 3. to look arousing

Iromeku is a library to extract a colour palette from a given image.

The implementation is heavily inspired by the Stack Overflow answer here: ![How does
the algorithm to color the song list in iTunes 11
work?](https://stackoverflow.com/questions/13637892/how-does-the-algorithm-to-color-the-song-list-in-itunes-11-work#answer-13675803)

The way it works is by clustering similar colours together, based on the
Euclidean distances of the pixel's value in the YUV colour space, which more
closely approximates colour perception.

## Getting Started

``` shell
$ pip install iromeku
```

``` python
from iromeku import load_image, generate_clusters, get_dominant_colour

rgb_values = load_image("test.jpg")
clusters = generate_clusters(rgb_values, 0.1)
colour = get_dominant_colour(clusters)
print(colour.r, colour.g, colour.b)
```

`0.1` in the second argument of `generate_clusters` refers to the threshold under which we consider two colours to be similar. Try adjusting the threshold for different results.

## Contributing

The library is type hinted using the comment-based syntax for backward compatibility with Python 2. Tests are run using tox.

## TODO

- [ ] Add example images
- [ ] Add support for generating complimentary colours
- [ ] Add support for selective sampling (e.g borders + center)
- [ ] Improve clustering algorithm

## License

MIT License
mix-mavis 1.0.0
MAVIS 数据分析工具
Requires Python: >=3.5
Keywords: visualization,analysis,jupyter

# MAVIS 交互式可视化分析工具

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mix-mavis)
![PyPI - License](https://img.shields.io/pypi/l/mix-mavis)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/mix-mavis)
[![Documentation Status](https://readthedocs.org/projects/mix-mavis/badge/?version=latest)](https://mix-mavis.readthedocs.io/zh/latest/?badge=latest)
![PyPI](https://img.shields.io/pypi/v/mix-mavis)


## 依赖包  
- ipython
- matplotlib
- seaborn
- ipywidgets
- boto3
- numpy
- pandas
- scipy
- scikit-learn
- torch

## 云服务器安装
`pip install mix-mavis`

## 平台
- AWS S3
- JUPYTER NOTEBOOK

## 数据分析
- [分析数据](http://52.82.119.95:8888/apps/analysis.ipynb)

## 数据交互
- [设置数据桶访问凭据](http://52.82.119.95:8888/apps/access.ipynb)  
- [获取实时MIXIOT数据](http://52.82.119.95:8888/apps/get_data.ipynb)    
- [导出MIXIOT历史数据](http://52.82.119.95:8888/apps/export.ipynb)  
- [数据上传至数据桶](http://52.82.119.95:8888/apps/upload.ipynb)  
- [从数据桶下载数据](http://52.82.119.95:8888/apps/download.ipynb)