Skip to content

Commit

Permalink
Merge pull request #162 from breezedeus/dev
Browse files Browse the repository at this point in the history
fix: the input list may be empty
  • Loading branch information
breezedeus authored Dec 2, 2024
2 parents 61628c8 + b746703 commit acbac46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release Notes

# Update 2024.12.02: **V1.1.2.1** Released

Major Changes:

* Fixed an error in `fetch_column_info()@DocYoloLayoutParser`, thanks to Bin.

主要变更:

* 修复了 fetch_column_info()@DocYoloLayoutParser 中的错误,感谢网友 Bin 。


# Update 2024.11.17: **V1.1.2** Released

Major Changes:
Expand Down
2 changes: 1 addition & 1 deletion pix2text/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# [Pix2Text](https://github.com/breezedeus/pix2text): an Open-Source Alternative to Mathpix.
# Copyright (C) 2022-2024, [Breezedeus](https://www.breezedeus.com).

__version__ = '1.1.2'
__version__ = '1.1.2.1'
3 changes: 2 additions & 1 deletion pix2text/doc_yolo_layout_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def fetch_column_info(layout_res, img_width, img_height):
item['position'][1][0] - item['position'][0][0]
for item in layout_res
if item['category'] == 'sub column'
]
],
default=col_width,
)

# 分配模块到列中
Expand Down

0 comments on commit acbac46

Please sign in to comment.