Skip to contents

Create a batch annotation session

Usage

at_session(
  paths,
  labels = character(),
  layers = NULL,
  out_dir = tempdir(),
  autosave = TRUE,
  ...,
  call = rlang::caller_env()
)

Arguments

paths

Character vector of image file paths forming the queue.

labels

Character vector of the global label vocabulary.

layers

An annot_layer, a list of them, or NULL. Applied as a template to every image visited.

out_dir

Directory for autosave and exports. Defaults to a session temporary directory.

autosave

Logical; whether to autosave on annotation commits. Default TRUE.

...

Additional named session metadata.

call

The calling environment, for error reporting.

Value

An annot_session with a manifest over paths, all statuses "pending", the cursor at the first image, and projects not yet materialised.

Examples

# Build a session over the bundled example image copied several times:
# sess <- at_example_session(3)