sumartoyo / hasel Goto Github PK
View Code? Open in Web Editor NEWpython+numpy RGB to HSL (and vice versa) converter
License: MIT License
python+numpy RGB to HSL (and vice versa) converter
License: MIT License
Running python3 extract.py --background "#000000" ~/Pictures/Images/Wallpapers/08.jpg
yields
Traceback (most recent call last):
File "extract.py", line 120, in <module>
if (bg_color[2] < 0.5):
IndexError: index 2 is out of bounds for axis 0 with size 1
When I print bg_color
at this point, I see array([[ 0., 0., 0.]])
, so maybe it should be if (bg_color[0][2] < 0.5):
?
~/hasel/__init__.py:44: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
thread = threading.Thread(target=core, args=(rgb[line:line_next], hsl[line:line_next]))
Could you fix it, please? I'm not so good in multithreading. By the way, thanks a lot for this library. Used it in my project. https://github.com/meklon/DAB_analyzer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.