معرفی شرکت ها


blurhash-python-1.1.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

BlurHash encoder implementation for Python
ویژگی مقدار
سیستم عامل OS Independent
نام فایل blurhash-python-1.1.3
نام blurhash-python
نسخه کتابخانه 1.1.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Atte Lautanala
ایمیل نویسنده atte.lautanala@wolt.com
آدرس صفحه اصلی https://blurha.sh
آدرس اینترنتی https://pypi.org/project/blurhash-python/
مجوز -
blurhash-python =============== This is an encoder for the BlurHash algorithm. To find out more about BlurHash, see https://github.com/woltapp/blurhash. Installation ------------ Install blurhash with pip ``` $ pip install blurhash-python ``` or pipenv ``` $ pipenv install blurhash-python ``` Usage ----- Create blurhash from image file ```python import blurhash with open('image.jpg', 'r') as image_file: hash = blurhash.encode(image_file, x_components=4, y_components=3) ``` You can also pass file name as parameter to the function ```python import blurhash hash = blurhash.encode('image.jpg', x_components=4, y_components=3) ``` `y_components` and `x_components` parameters adjust the amount of vertical and horizontal AC components in hashed image. Both parameters must be `>= 1` and `<= 9`. Development ----------- Install development requirements and package in editable mode ``` $ pipenv install --dev ``` Tests ----- Run test suite with `pytest` in virtual environment ``` $ pytest ``` Use `tox` to run test suite against all supported python versions ``` $ tox ```


نیازمندی

مقدار نام
- cffi
- Pillow
- six
- pytest


نحوه نصب


نصب پکیج whl blurhash-python-1.1.3:

    pip install blurhash-python-1.1.3.whl


نصب پکیج tar.gz blurhash-python-1.1.3:

    pip install blurhash-python-1.1.3.tar.gz