Skip to content

Commit

Permalink
dewarp: use segment ID for image file ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Mar 24, 2022
1 parent cbf2ca4 commit 8e0128a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrd_anybaseocr/cli/ocrd_anybaseocr_dewarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _process_segment(self, dataset, segment, coords, orig_img_size, input_file):
dewarped = np.mean(dewarped, axis=2) > ocrolib.midrange(dewarped)
dewarped = Image.fromarray(dewarped)
coords['features'] += ',dewarped'
file_id = make_file_id(input_file, self.output_file_grp) + '.IMG-DEW'
file_id = make_file_id(input_file, self.output_file_grp) + '_' + segment.id + '.IMG-DEW'
file_path = self.workspace.save_image_file(dewarped,
file_id,
page_id=input_file.pageId,
Expand Down

0 comments on commit 8e0128a

Please sign in to comment.