Giter VIP home page Giter VIP logo

Comments (9)

seveibar avatar seveibar commented on September 24, 2024
  1. You can create multiple regions. Only one can be selected.
  2. There are algorithms for determine polygon overlap. (SO) (npm) We've implemented some overlap algorithms for non-polygons in this library, but I don't think they're exposed.

You can probably build what you're talking trying to build, but it's not completely aligned with what this library is typically used for, so your UX may be not-as-good as it could be with a purpose-built library.

Hopefully that is helpful :)

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

@seveibar Thanks! That's super helpful.

Just a followup though: As much as I understand the demos, the library allows a user to draw polygons on the image and also highlights them. Why do you think that the UX might not be as good? Just trying to get some ideas here.

from react-image-annotate.

seveibar avatar seveibar commented on September 24, 2024

Captcha is very simple. Some parts of this library (such as the sidebar) add complexity to the user interface. If you're building something that is small like a Captcha box, or has a user interact in a sort of "read-only" fashion, you might find it's not totally ergonomic. If you're able to create the capability you're looking for on the demo site and you're satisfied with the aesthetic and user interaction, then you can safely ignore what I've said :)

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

Oh alright, no I think that User A (who marks "correct" regions) will definitely want/like the UI similar to the demo. Thanks for your inputs!

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

Sorry for reopening, I am a little lost here. How do I save polygons/points mapped by the user?
I passed in an onExit = {props => {...}} but the props only had lastAction that seemed to contain geometry.

How do I get all polygons/points the user might have drawn before hitting save?

from react-image-annotate.

seveibar avatar seveibar commented on September 24, 2024

look inside the images array, if you're still stuck, post the json output after drawing a polygon and I'll help find it :)

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

Thanks I was able to implement the whole workflow. The only thing that I can't get to work is an ImageCanvas.
I used ImageCanvas with imageSrc and regions and I weirdly get Missing required props "images" or "videoSrc" which does not even belong to the Canvas component. Am I missing something?
(I want to use ImageCanvas for a screen where I just want to display a summary of old annotations and not edit them).

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

And what's even more weird is that adding properties of imageSrc and regions like you would in an Annotator, renders the Annotator instead of ImageCanvas 😩

from react-image-annotate.

sunnypatel165 avatar sunnypatel165 commented on September 24, 2024

Nvm. Import statement needs to be import ImageCanvas from "react-image-annotate/ImageCanvas"

I was wondering if you want me to add some more details to the README :)

from react-image-annotate.

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.