Skip to content

Commit 359e153

Browse files
committed
image_from_page: integer instead of float polygon
1 parent c5198f8 commit 359e153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocrd/ocrd/workspace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def image_from_page(self, page, page_id,
322322
log.debug("Using explicitly set page border '%s' for page '%s'",
323323
page_points, page_id)
324324
# get polygon outline of page border:
325-
page_polygon = np.array(polygon_from_points(page_points))
325+
page_polygon = np.array(polygon_from_points(page_points), dtype=np.int32)
326326
page_bbox = bbox_from_polygon(page_polygon)
327327
# subtract offset in affine coordinate transform:
328328
# (consistent with image cropping or AlternativeImage below)

0 commit comments

Comments
 (0)