<aside> 🛠

Turn Written Coordinates into a Black-and-White Mask


The bridge between finding a region and editing it. Give this tool an image and a list of regions written as plain text — one region per line — and it renders a black-and-white mask image sized to match the source. Polygons by default; flip one checkbox to read the same lines as bounding boxes instead. Because the regions arrive as text, anything that can produce text can drive it: a detection model, an LLM, a spreadsheet column, or coordinates you typed yourself.

</aside>


What it does

Image Masker by Region takes a source image and a text description of one or more regions, and outputs a black-and-white mask image with the same dimensions as the source.

  1. Each line of the input text describes one region
  2. Each region is rendered onto a blank canvas the size of the source image
  3. The result is a two-tone mask ready to hand to any tool that accepts one

By default the coordinates on each line are read as the vertices of a polygon — arbitrary shapes, as many points as you like. Enable the bounding-box option and the same lines are read as rectangles instead, which is the format most object-detection models already emit.

The source image is used for its dimensions; its pixels are not carried into the output. The output is the mask, not a masked image.

Problem it solves

Input/Output

<aside>



Option Type What it does
Read the regions as bounding boxes instead of polygons Checkbox (off by default) Off: each line is a polygon — a list of vertices, connected in order and closed automatically. On: each line is a rectangle defined by its corners.
</aside>

How to Use