Secretmapper / react-image-annotation

An infinitely customizable image annotation library built on React
https://secretmapper.github.io/react-image-annotation/
MIT License
325 stars 135 forks source link

Add Polygon Selector Support #10

Open leopoldjoy opened 5 years ago

leopoldjoy commented 5 years ago

This pull request adds support for a PolygonSelector, enabling annotation of polygons by adding points to the image. The pull request includes an example of the PolygonSelector in action on the demos page, as well as karma tests of the new selector functionality.

Secretmapper commented 5 years ago

This is great!

Unfortunately it looks like the PR points to a master branch with commits unrelated to it. If the commits can be isolated I can review and merge

HarveyLijh commented 4 years ago

This polygon selector looks amazing. Can this be merged now into the react-image-annotation project? Thanks

ozzyjon commented 4 years ago

I'd also very much like the polygon selector to be merged. Thanks for your work leopoldjoy and secretmapper.

johanbook commented 4 years ago

@leopoldjoy, I would like to use this feature in a project. Is this possible somehow? Tried installing it directly from your fork but seems it needs to be built. Grateful for any advice.

iworkinprogress commented 4 years ago

@leopoldjoy, I would like to use this feature in a project. Is this possible somehow? Tried installing it directly from your fork but seems it needs to be built. Grateful for any advice.

You able to get this working?

johanbook commented 4 years ago

@leopoldjoy, I would like to use this feature in a project. Is this possible somehow? Tried installing it directly from your fork but seems it needs to be built. Grateful for any advice.

You able to get this working?

Afraid I did not

godinezseba commented 4 years ago

@leopoldjoy, I would like to use this feature in a project. Is this possible somehow? Tried installing it directly from your fork but seems it needs to be built. Grateful for any advice.

You able to get this working?

Afraid I did not

Hello!

I managed to use this fork in my project. I followed the steps from this post: https://stackoverflow.com/questions/55560791/build-and-use-npm-package-locally. But I made two modifications. First i updated nwb to the version 0.25.2 and second I changed the build script to nwb build-react-component --copy-files. The only problem that i have is the build version doesn't use the style in components/Poygon/index.css.

I hope this help!