Learn R Programming

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.

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

Installation

Stable version from CRAN:

install.packages("annotator")

Developement version from GITHUB:

remotes::install_github("valcu/annotator")

Copy Link

Version

Install

install.packages('annotator')

Monthly Downloads

253

Version

0.0.3.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 18th, 2023

Functions in annotator (0.0.3.1)

annotator

Image annotation
annotate

Create an annotation widget
empty_png

this is an 800x600 transparent png
annotatorOutput

Widget output function for use in Shiny
runExample

Run Shiny Examples
renderAnnotator

Widget render function for use in Shiny