Skip to content

Add a Box primitive #5

Open
Open

Description

@VianneyMI

Context

A box question locates something in an image. The answer holds box (top, bottom, left and right as fractions of the image size) and a confidence that can be null. The package covers noul, choice and score today.

Goal

Support box questions in the same typed shape as the other primitives.

Scope

  • A jev.Box primitive in the same shape as the others: the class is the question and its instances are the answers.
  • The answer type has box and confidence: float | None.
  • The question compiler accepts the primitive, including image placeholders, and rejects a box question when no asset is given.
  • The docstring explains the primitive in the package's own words and links the TypeSafe documentation.
  • Typing tests pin the answer types.

Design considerations

Completion criteria

Activity

  1. added this to the v0.3: Images and box milestone on Nov 8, 2026
  2. added
    enhancement
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions