Git Product home page Git Product logo

Comments (9)

kyamagu avatar kyamagu commented on July 17, 2024

You can use export() method of the annotator.
https://github.com/kyamagu/js-segment-annotator/blob/master/js/helper/segment-annotator.js#L172

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

Is it like using fabric.js - tojson() instead of todataurl() ?

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

I was able to fetch json ?
But i can only get image : data
is there any additional work needed to be done to fetch
{"name":"bag","color":[255,0,0]}
this data?

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

I am still not able to fetch label/color pair.
Any help will be appreciated
Thanks a lot !!

from js-segment-annotator.

kyamagu avatar kyamagu commented on July 17, 2024

@defaultcute12 You can get colormap property for colors

https://github.com/kyamagu/js-segment-annotator/blob/master/js/helper/segment-annotator.js#L25

You probably already defined your colormap/labels outside of the annotator. The annotator only keeps integer labels.

https://github.com/kyamagu/js-segment-annotator/blob/master/js/main.js#L28

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

Thanks a lot for the help.

Regards,
Mallu

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

Thanks a lot for all the help.
Can I ask one last question.
Is it possible to get pixels associated with a color in this tool ?

from js-segment-annotator.

kyamagu avatar kyamagu commented on July 17, 2024

Check README. Colormap keeps corresponding colors.

from js-segment-annotator.

defaultcute12 avatar defaultcute12 commented on July 17, 2024

Thanks !

from js-segment-annotator.

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.