sam2_screen_replace
Replace a screen in video with a replacement image by specifying points and mask; uses homography to align perspective.
Instructions
SAM2: screen replacement, by mask plus a homography onto the oriented rectangle. Output is muted; perspective is approximate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>",
"output": "<output>",
"points": "<points>",
"replacement": "<replacement>"
},
"name": "sam2_screen_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blur | No | ||
| input | Yes | ||
| labels | No | ||
| output | Yes | ||
| points | Yes | ||
| erosion | No | ||
| replacement | Yes |