colordet2-1.0
توضیحات
Detect colors from image
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | colordet2-1.0 |
| نام | colordet2 |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jakub Zalewski |
| ایمیل نویسنده | jakub.zetka11@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/colordet2/ |
| مجوز | - |
## ColorDetector
## Project description
ColorDetector is a library for exporting colors from a photo. It supports images in .jpg, .jpeg and .png format. Colors are represented in hex and rgb format. Depending on the parameter specified by the user, it can output from 3 to 25 different colors.
## Running
`import ColorDetector`
`cd = ColorDetector("filepath")`
`cd.palete(n)`
## Functions and variables
**ColorDetector(path)** - class with one __init__ vairable, path to image: str
**self.palete(n)** - extract n colors from image, n must be int in range <3:25>
## Tests
`python3 -m pytest TestColorDetector.py -v`
## Project author
Jakub Zalewski
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | opencv-python |
نحوه نصب
نصب پکیج whl colordet2-1.0:
pip install colordet2-1.0.whl
نصب پکیج tar.gz colordet2-1.0:
pip install colordet2-1.0.tar.gz