Coder Social home page Coder Social logo

Comments (5)

ankush-me avatar ankush-me commented on July 24, 2024

The colors_new.cp is generated through k-means clustering of the word images from the IIIT-5K dataset.

from synthtext.

cjnolet avatar cjnolet commented on July 24, 2024

from synthtext.

ankush-me avatar ankush-me commented on July 24, 2024

I think I used k=2. From the paper:

Pixels in each cropped word images are partitioned into two sets using K-means, resulting in a colour pair, with one colour approximating the foreground (text) colour and the other the background. When rendering new text, the colour pair whose background colour matches the target image region the best (using L2-norm in the Lab colour space) is selected, and the corresponding foreground colour is used to render the text.

from synthtext.

doudoubean avatar doudoubean commented on July 24, 2024

thank you ,I really appreciate your help. could you give a paper link or a github project link about generating through k-means clustering of the word images from the IIIT-5K dataset ? look forward to your kind reply.

from synthtext.

ankush-me avatar ankush-me commented on July 24, 2024

@cjnolet You're right. I dug up my script, and it seems I used K=3, and picked the two clusters with the maximum "distance".
@doudoubean I have posted a gist of the code I used here.

from synthtext.

Related Issues (20)

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.