Skip to content

Commit 010a4fd

Browse files
committed
chore: add orientation easy use
1 parent 517825c commit 010a4fd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,19 @@ print(f"elasp: {elasp}")
119119
```
120120

121121
#### 表格旋转及透视修正
122+
##### 1.简单背景,小角度场景
123+
```python
124+
import cv2
125+
126+
img_path = f'tests/test_files/wired/squeeze_error.jpeg'
127+
from wired_table_rec.utils import ImageOrientationCorrector
128+
129+
img_orientation_corrector = ImageOrientationCorrector()
130+
img = cv2.imread(img_path)
131+
img = img_orientation_corrector(img)
132+
cv2.imwrite(f'img_rotated.jpg', img)
133+
```
134+
##### 2.复杂背景,多表格场景
122135
需要gpu或更高精度场景,请参考项目[RapidTableDet](https://github.com/RapidAI/RapidTableDetection)
123136
```python
124137
pip install rapid-table-det

0 commit comments

Comments
 (0)