zooniverse / front-end-monorepo

A rebuild of the front-end for zooniverse.org
https://www.zooniverse.org
Apache License 2.0
104 stars 30 forks source link

Load Caesar-stored annotations into the subject viewer outside drawing task context #6150

Open lcjohnso opened 2 months ago

lcjohnso commented 2 months ago

Package

lib-classifier

Problem Description

There are a few different situations where it would be beneficial to overlay externally-computed drawing annotations (e.g., ML predictions), typically in a passive, read-only way, outside of correct-a-machine drawing tool based editing workflows. Examples include:

Describe the solution you'd like

Primary Feature

Additional Features

Additional context

eatyourgreens commented 2 months ago

AFAIK, this isn’t documented but wiring a task up to request reductions is as simple as adding caesarKey to the task model.

https://github.com/zooniverse/front-end-monorepo/blob/5bcd1c865072035fe27ecce43acc58b69acf4e58/packages/lib-classifier/src/plugins/tasks/experimental/transcription/models/TranscriptionTask.js#L15

Once that’s done, the useCaesarReductions(task.caesarKey) hook should request reductions for any task.