Skip to content

Commit

Permalink
📦 0.1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Mar 12, 2022
1 parent 6850b98 commit 00f80bd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Versioned according to [Semantic Versioning](http://semver.org/).

## Unreleased

## [0.1.17] - 2022-03-12

Changed:

* project: use true alpha shape instead of convex hull

## [0.1.16] - 2022-02-21

Fixed:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Contains processors for various tasks:
- [ocrd-segment-from-coco](ocrd_segment/import_coco_segmentation.py) (for [MS-COCO](https://cocodataset.org/) annotation)
- post-processing or repairing layout segmentations:
- [ocrd-segment-repair](ocrd_segment/repair.py) (validity and consistency of coordinates, reducing overlaps/redundancy between neighbours, shrinking regions to the alpha shape of their lines)
- [ocrd-segment-project](ocrd_segment/project.py) (remake segment coordinates into the convex hull of their constituents)
- [ocrd-segment-project](ocrd_segment/project.py) (remake segment coordinates into the concave hull / alpha shape of their constituents)
- [ocrd-segment-replace-original](ocrd_segment/replace_original.py) (rebase all segments on cropped+deskewed border frame as new full page)
- [ocrd-segment-replace-page](ocrd_segment/replace_page.py) (2 input fileGrps; overwrite segmentation below page of first fileGrp by all segments of second fileGrp, rebasing all coordinates; "inverse" of `replace-original`)
- comparing different layout segmentations:
Expand Down
2 changes: 1 addition & 1 deletion ocrd_segment/ocrd-tool.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.16",
"version": "0.1.17",
"git_url": "https://github.com/OCR-D/ocrd_segment",
"tools": {
"ocrd-segment-repair": {
Expand Down
3 changes: 2 additions & 1 deletion ocrd_segment/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def process(self):
Furthermore, if ``sanitize``, then for each text region, update
the coordinates to become the minimal convex hull of its constituent
text lines.
text lines. (But consider running ocrd-segment-project instead.)
Finally, produce new output files by serialising the resulting hierarchy.
"""
Expand Down Expand Up @@ -254,6 +254,7 @@ def plausibilize_page(self, page, page_id):

def sanitize_page(self, page, page_id):
"""Shrink each region outline to become the minimal convex hull of its constituent textlines."""
# FIXME: should probably be removed in favour of ocrd-segment-project entirely
LOG = getLogger('processor.RepairSegmentation')
regions = page.get_AllRegions(classes=['Text'])
page_image, page_coords, _ = self.workspace.image_from_page(
Expand Down

0 comments on commit 00f80bd

Please sign in to comment.