naomai / php-dominantcolor Goto Github PK
View Code? Open in Web Editor NEWFind dominant colors in an image using K-means clustering
License: MIT License
Find dominant colors in an image using K-means clustering
License: MIT License
It seems this library depends on an older version of KMeans.
Space::SEED_DASV
, as used on line 22 does not exist in the current version of KMeans.
Hello, nice app dude!
I try to dechex colorInfo to save to db
something like this
$primary = dechex($colorInfo['primary']);
$secondary = dechex($colorInfo['secondary']);
echo ' primary= '. $colorInfo['primary']. ' (dechex='.$primary.') secondary= '.$colorInfo['secondary'].' (dechex='.$secondary.')';
results
primary= 3568751 (dechex=36746f) secondary= 335138 (dechex=51d22)
As you can see secondary color has a problem, also this happen and for the palette,
note: this not occur to all images only when the same color surrounds the picture
image i try to get color info
https://drive.google.com/file/d/1z8VRONRubkHRxlHDWB0RKqpm1aFJ-Ehb/view
Hello, i have a question!
Seeing the new additions as the nlcurve function, i came up with an idea.
Is it possible created shape functions as nlcurve (svg paths perhaps) to detect if this shape found in image?
the idea came from nlcurve that might detect the shape of cup
adding functions like star -> contain a star line paths
horse -> contain a horse line paths, etc.
if cup detected in image convert to black and white? and create edges inside this cup.
when you got the edges check if any additional shape match to shape functions and show this name/s
Do you find this possible?
What to try to do is a coffee fortune telling LOL
based on specific images like
https://www.google.com/search?q=%CF%86%CE%BB%CF%85%CF%84%CE%B6%CE%B1%CE%BD%CE%B9+%CE%BA%CE%B1%CF%86%CE%B5&tbm=isch&hl=en&chips=q:%CF%86%CE%BB%CF%85%CF%84%CE%B6%CE%B1%CE%BD%CE%B9+%CE%BA%CE%B1%CF%86%CE%B5,online_chips:%CE%BA%CE%B1%CF%86%CE%B5%CE%BC%CE%B1%CE%BD%CF%84%CE%B5%CE%AF%CE%B1
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.