define_region
Create and save named regions of interest on camera feeds using normalized coordinates or four corner points for perspective homography.
Instructions
Define and save a named region of interest (e.g. 'status_led', 'oled_screen', 'pixgen32') using normalized coordinates (0.0 to 1.0) or 4 corner points for perspective homography.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Region height | |
| w | No | Region width | |
| x | No | Top-left X coordinate | |
| y | No | 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 | |
| parent | No | Optional parent region name for hierarchical grouping | |
| points | No | Optional 4 corner points [[x1,y1], [x2,y2], [x3,y3], [x4,y4]] for perspective unwarping |