simple_utils¶
Simple utility functions used throughout page_dewarp.
Currently provides a small helper (fltp) to flatten integer coordinates.
fltp ¶
Flatten and convert a NumPy coordinate to an (x, y) integer tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
|
A NumPy array containing [x, y] coordinates (possibly float). |
required |
Returns:
| Type | Description |
|---|---|
|
An (x, y) tuple of integers. |