Find regions (Segment Anything)
find_regionsDetects distinct image objects automatically and returns numbered boxes plus an outlined preview, helping you pick correct regions to pass to segmentation when manual boxes are hard.
Instructions
Find the distinct objects in an image automatically, with no boxes needed: returns them numbered, with each one's exact box, and a picture with the numbered outlines drawn on it. Nothing is saved.
Use it before segment_objects when an image has many similar objects (glands, cells, crypts, vessels) or when boxes are hard to place: look at the picture, choose the numbers that are the objects asked for, and pass their boxes unchanged to segment_objects (with model "medsam" for medical images). A region inside another is a part of it (e.g. a gland's lumen inside the gland): choose the one that matches the whole object. Objects not found as a region still need a box of your own. Takes about a minute (a few after a quiet spell, while the model loads); very small objects can be missed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | Id of an image in Image Label: the imageId (a UUID string) returned by list_images or an upload. | |
| max_size | No | Longest side of the returned picture, in pixels. |