Skip to content

Copy Annotations #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Dec 26, 2018
Merged

Copy Annotations #55

merged 25 commits into from
Dec 26, 2018

Conversation

matt-deboer
Copy link
Contributor

@matt-deboer matt-deboer commented Dec 23, 2018

This allows copying annotations from one image to another. (Implements #52)

  1. Annotations from the current image can be copied to the prev or next image using the new navigation buttons in the upper right: (propagate-previous, or propagate-next)
    image
  2. Annotations can be copied from another image (by ID) to the current image using the "copy annotations" button on the left of the annotator view:
    image

These are leveraged via a new POST /api/annotator/data/{image_id} method; this method accepts both add_annotations (array of annotations by ID to add to the image),
and add_annotations_from (array of image_ids from which to copy annotations). This may not be the best place for this, but it also seemed wrong to overload the current POST /api/annotator/data method...thoughts?

@jsbroks
Copy link
Owner

jsbroks commented Dec 24, 2018

@matt-deboer I've changed quite a few things. Once again let me know if it works for your use case

@jsbroks jsbroks merged commit c00643c into jsbroks:master Dec 26, 2018
@matt-deboer matt-deboer deleted the propagate_annotations branch December 27, 2018 22:35
@matt-deboer
Copy link
Contributor Author

This should work fine.

It is a little tedious to click the dialog box to copy from the previous image, but I think that will go away with #57.

@azmathmoosa
Copy link

Is there no way to move an annotation after having it copied? In many cases, there are images that are the same except that the object has moved to the right. One can copy the annotation but can't move it at all. Hence this feature will be much more useful if we could do that. If I were to edit code, which file should I look to implement such a feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants