Giter Site home page Giter Site logo

php-dominantcolor's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-dominantcolor's Issues

converting to hex has problems

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

just a question

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.