correct_rotation¶
Return the input image in the coordinate frame of an analysis result.
When rotation correction (enable_preprocess=True) is applied, all
coordinates in the result refer to the orientation-corrected image. Pass
the original input image together with its result to get the image that
matches those coordinates, e.g. before create_searchable_pdf() or
figure export. If no rotation was applied, the image is returned as is.
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
img
|
ndarray
|
The original input image passed to the analyzer. |
必須 |
result
|
An analysis result with a |
必須 |
戻り値:
| タイプ | デスクリプション |
|---|---|
|
np.ndarray: The image whose orientation matches the result coordinates. |