MCPcopy
hub / github.com/opengeos/segment-geospatial / segment_text

Function segment_text

agent-harness/cli_anything/samgeo/samgeo_cli.py:363–376  ·  view source on GitHub ↗

Run text-based segmentation (LangSAM).

(ctx, output, text_prompt, box_threshold, text_threshold)

Source from the content-addressed store, hash-verified

361)
362@click.pass_context
363def segment_text(ctx, output, text_prompt, box_threshold, text_threshold):
364 """Run text-based segmentation (LangSAM)."""
365 p = _load_project(ctx)
366 from cli_anything.samgeo.core.segment import text_segment
367
368 result = text_segment(
369 p,
370 text_prompt,
371 output,
372 box_threshold=box_threshold,
373 text_threshold=text_threshold,
374 )
375 _save_project(ctx, p)
376 _output(result, ctx.obj.get("as_json"))
377
378
379# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

text_segmentFunction · 0.90
_load_projectFunction · 0.85
_save_projectFunction · 0.85
_outputFunction · 0.85

Tested by

no test coverage detected