Image Annotation and Polygon Outlining using Free Drawing

Provides functions to create image annotations through polygon outlining. Annotator has the same function as 'graphics::locator()' but achieves its purpose through drawing, rather than multiple mouse clicks. It is based on the 'htmlwidgets' package and 'fabric.js' JavaScript library < https://fabricjs.com/>.


CRAN_Status_Badge R-CMD-check

Image annotation using free drawing.

annotator provides functions to create image annotations through polygon outlining. Annotator has the same function as graphics::locator() but achieves its purpose through drawing, rather than multiple mouse clicks.

annotator is based on fabric.js, a Javascript HTML5 canvas library and htmlwidgets, a package that provides a framework for creating R bindings to JavaScript libraries.

The main function of the package is annotate(path_to_image). Polygons can be outlined on the image and polygon's coordinates are returned after each draw.

annotate widget

annotator makes it easy to create annotation pipelines in shiny. A minimal Shiny app demonstrating a simple pipeline can be found on shinyapps.io.

annotate widget

Installation

Stable version from CRAN:

install.packages("annotator")

Developement version from GITHUB:

remotes::install_github("valcu/annotator")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("annotator")

0.0.3.2 by Mihai Valcu, a year ago


https://github.com/valcu/annotator


Report a bug at https://github.com/valcu/annotator/issues


Browse source code at https://github.com/cran/annotator


Authors: Mihai Valcu [aut, cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports methods, utils, shiny, htmlwidgets, xfun

Suggests testthat, stringr, glue, bslib, sf, terra, keys, colourpicker, spelling


See at CRAN