RegionOfInterest
Represents a region of interest in an image.
Properties:
Property | Type | Description |
|---|---|---|
|
| ROI top-left X offset |
|
| ROI top-left Y offset |
|
| ROI height; |
|
| ROI width |
|
| Whether to rectify the ROI |
RegionOfInterest
Signature:
RegionOfInterest(
x_offset: int = 0,
y_offset: int = 0,
height: int = 0,
width: int = 0,
do_rectify: bool = False,
)
Description:
Construct a RegionOfInterest instance.
Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
|
| No | ROI top-left corner X offset |
|
| No | ROI top-left corner Y offset |
|
| No | ROI height; |
|
| No | ROI width |
|
| No | Whether to rectify the ROI |
Returns:
RegionOfInterest instance.
Raises:
None.
to_dict
Signature:
RegionOfInterest.to_dict() -> dict[str, Any]
Description:
Convert to dictionary.
Parameters:
No parameters.
Returns:
dict[str, Any].
Raises:
None.