Skip to content

Commit

Permalink
Laserprec/bugfix img save (#31)
Browse files Browse the repository at this point in the history
* :bug fix saving on disk

* bump version to 0.1.0-rc6
  • Loading branch information
Jianjie Liu authored Jul 20, 2021
1 parent 7c25f06 commit 9047cd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-rc5
0.1.0-rc6
1 change: 1 addition & 0 deletions genalog/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def generate_img(self, full_text_path, template, target_folder=None):
text_filename = os.path.basename(full_text_path)
img_filename = text_filename.replace(".txt", ".png")
img_dst_path = os.path.join(target_folder, "img", img_filename)
_setup_folder(target_folder)
if not cv2.imwrite(img_dst_path, dst):
raise RuntimeError(f"Could not write to path {img_dst_path}")
return
Expand Down

0 comments on commit 9047cd6

Please sign in to comment.