Code Monkey home page Code Monkey logo

Comments (13)

esraabdalgani avatar esraabdalgani commented on September 28, 2024 1

I forgot to say that I thank you.
I got busy with my work .. your work is great and your response is fast.
I really appreciate your help .. thanks again.

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Hi @esraabdalgani,

Thanks for your attention to this project. Could you please give me more context? I don't quite understand your requirement.

Thanks!

from skintoneclassifier.

esraabdalgani avatar esraabdalgani commented on September 28, 2024

we are trying to build an API for an avatar system 3D when we upload "photo" service from amazon"aws Recognition" gave us all the details about faces " eyes color , ..etc " except skin color ... I need your library to implement it in our code so i can upload a photo it retain a skin color tone ... using flask or lambda function .. any idea how to do this ?

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Oh, I see. However, this library is designed to be used in the command line.
But I can try to implement it as a library that can be imported into other Python projects.

It would be great if you could tell me what the input and expected output are in your API.
For example, suppose we have a function named process in stone:

import stone

output = stone.process(image, *args)

What parameters do you need to put in this function, and what results do you expect?

Thanks!

from skintoneclassifier.

esraabdalgani avatar esraabdalgani commented on September 28, 2024

I think if you put the same options that ' I can specify in the command line' ..image url , image type and output DIRECTORY.. etc
and it would be great if the same result as a "JSON" .
can you please tell me how long will it take to implement this ?
thank you so much.

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Hi @esraabdalgani,

I can try to implement it now. Will update the version tomorrow.

Thanks.

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Hi @esraabdalgani,

I've released the new version.

Please upgrade the library by

pip install skin-tone-classifier --upgrade

And refer to README#9. Used as a library by importing into other projects for usage.

Thanks!

from skintoneclassifier.

esraabdalgani avatar esraabdalgani commented on September 28, 2024

thank you so much ... I really appreciate your help.
one thing I tried to use your library with different pic and offen I got a darker color ... do you suggest I use a specific palette??.. note that I chose pic with really big faces to get accurate results for " skin tone " field .

from skintoneclassifier.

esraabdalgani avatar esraabdalgani commented on September 28, 2024

cc

for this pic I got

{"filename":"ffff.jpeg","stone_output":"[\n {\n "file": "ffff-NA",\n "image type": "color",\n "face id": "NA",\n "dominant 1": "#AE8E7A",\n "props 1": "0.74",\n "dominant 2": "#83624D",\n "props 2": "0.26",\n "skin tone": "#9D7A54",\n "PERLA": "CF",\n "accuracy(0-100)": "90.15"\n }\n]"}

and all of them have really darker skin color ... can you please suggest a method or specific standard to get more accurate result.??

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Hi @esraabdalgani,

I was just about to reply to you and wanted to ask you for a picture example :)

It is great. I can try to debug the library with your example. I'll give you an update later.

Thanks!

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

Hi @esraabdalgani,

I tested your image and got the following result:
example

Firstly, it seems you are using an old version of the library.

Please run the following command to upgrade it to version 1.1.0.

pip install skin-tone-classifier --upgrade

I had to pass color to image_type when I tested it:

import stone

result = stone.process('example.jpeg', , image_type='color')

Then the result would be:

{
  "basename": "example",
  "extension": ".jpeg",
  "image_type": "color",
  "faces": [
    {
      "dominant_colors": [
        {
          "color": "#D7B19F",
          "percent": "0.62"
        },
        {
          "color": "#7A4E3B",
          "percent": "0.38"
        }
      ],
      "skin_tone": "#BEA07E",
      "tone_label": "CG",
      "accuracy": 82.27,
      "face_id": 1
    }
  ],
  "report_images": {
    "1": null
  }
}

Could you please check the result and let me know if it is the expected one?

Thanks!

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

With no more responses, close the issue for now.
We'll be happy to reopen the issue when more information is provided.

from skintoneclassifier.

ChenglongMa avatar ChenglongMa commented on September 28, 2024

No problem 😊 I'm glad I could help. Good luck with your work!

from skintoneclassifier.

Related Issues (10)

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.