Skip to content

Commit

Permalink
image_from_page: integer instead of float polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Oct 7, 2019
1 parent f46dcc3 commit 27ef213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrd/ocrd/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def image_from_page(self, page, page_id,
log.debug("Using explicitly set page border '%s' for page '%s'",
page_points, page_id)
# get polygon outline of page border:
page_polygon = np.array(polygon_from_points(page_points))
page_polygon = np.array(polygon_from_points(page_points), dtype=np.int32)
page_bbox = bbox_from_polygon(page_polygon)
# subtract offset in affine coordinate transform:
# (consistent with image cropping or AlternativeImage below)
Expand Down

0 comments on commit 27ef213

Please sign in to comment.