Comments (9)
- You can create multiple regions. Only one can be selected.
- 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.
@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.
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.
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.
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.
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.
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.
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.
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)
- Clone Button behavior is unpredictable, unable to hide clone button
- React element displays incorrectly but fixes itself after going back and forward HOT 2
- How to set default values to ReactImageAnnotate and get coordinates array on save? HOT 1
- preventDefault is preventing numbers from being typed in the create class menu HOT 1
- support with Commonjs
- Problem to yarn start HOT 9
- How to save an image along with the annotations? HOT 4
- image gets shrinked/hidden or shows different background color while loading on Dialog Mui HOT 2
- Unable to drag a polygon annotation
- Rotation of Box
- Can't find Python executable HOT 1
- Delete issue
- NextJS support failed HOT 1
- hideClone hideFullScreen & hideSettings props are not working HOT 1
- How to smart annotation added in this library
- How to get the box or shape real pixel about [x, y, w, h] and points [x, y]. HOT 2
- How to in in annotation index page state update using redux
- how to use save in this library ? HOT 3
- how to find one time one region save and exit after i have change region at that time find to me update flag add
- Is there anyway to enable Create-Pixel tool?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-image-annotate.