Try Pro FREE for 2 weeksGet Started

image-masker-by-region — Masking AI Model

Build a B&W mask from line-separated polygons or bounding boxes.

Details

  • CategoryMasking
  • Year-1
  • License

Inputs & Outputs

ImageInputimage

Sets the mask size; its pixels are not read

RegionsInputstring

One region per line: 'x1,y1,x2,y2,...' polygons or 'xmin,ymin,xmax,ymax' boxes

ImageOutputimage

Black and white mask, white where the regions are

Parameters

use_bounding_boxbooleandefault false

Read the regions as bounding boxes instead of polygons

When false (default), a line of 3 or more points is filled as the polygon it describes. When true, it is filled as its axis-aligned bounding box instead. A 4-value 'xmin,ymin,xmax,ymax' line is a rectangle either way.

Tags

  • mask-creation
  • polygon
  • bounding-box
  • coordinate-based
  • ocr

Alternatives in Image Masking

All AI models