define_region
Create and save named regions of interest, such as status LEDs or screens, using normalized or pixel coordinates to monitor specific camera areas.
Instructions
Define and save a named region of interest (e.g. 'status_led', 'oled_screen', 'nozzle_area') using normalized coordinates (0.0 to 1.0) or pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | Region height | |
| w | Yes | Region width | |
| x | Yes | Top-left X coordinate | |
| y | Yes | Top-left Y coordinate | |
| name | Yes | Unique region name | |
| units | No | Coordinate system ('normalized' or 'pixels') | normalized |
| camera | No | Optional camera ID to bind region to |