Commit Graph

28 Commits (a2ad2124c7a8a13b33f588b3fd987b146f734ca0)

Author SHA1 Message Date
jzhang533 a2ad2124c7
commit fix by running pre-commit run -a (#12165) 2024-05-24 12:12:42 +08:00
Sanjay Rijal 502e1675e4
Error with pyclipper inhomogeneous expanded array (#12108)
* pyclipper inhomogeneous expanded array solved

For some images, `np.array(offset.Execute(distance))` can result in inhomogeneous part of the detection box list, which cannot be casted into numpy array directly.

* corrected box reshape position

- box reshape was mistakenly done at line 145 which is now correctly done at line 92 of `db_postprocess.py`
- if box is empty then continue

* reverted mistakenly changed line 147

- reverted mistakenly changed `box.array(box)` to `np.array(box)`

* expanded array fix for `det_box_type=quad`

* polygons padding

For `--det_box_type = poly`, pad the detected polygon arrays if they have different shapes to ensure even shapes of polygon arrays

* fix codestyle

---------

Co-authored-by: Wang Xin <xinwang614@gmail.com>
2024-05-18 09:19:06 +08:00
Wang Xin 045e5f6ac7
add pre-commit workflow (#11973)
* add pre-commit workflow

* run 'pre-commit run --all-files'

* setup python version
2024-04-21 21:46:20 +08:00
Double_V 414bf18a20
fix issue 9659 and doc (#8690) 2022-12-23 10:02:45 +08:00
LDOUBLEV 3628ac1c6c fix bug 2022-10-10 10:12:28 +08:00
LDOUBLEV 119196f11d add det_box_type params 2022-10-09 11:28:32 +08:00
wangjingyeye da6636dcee add polygons 2022-07-05 03:01:10 +00:00
wangjingyeye 72f93cf977 add polygons 2022-07-04 08:49:34 +00:00
wangjingyeye 8d9cfade49 add polygons 2022-07-04 08:40:32 +00:00
LDOUBLEV 51e8aed621 refer 2 referec 2021-11-04 17:40:04 +08:00
LDOUBLEV ec7a7f00de add refer to db 2021-11-04 17:34:56 +08:00
LDOUBLEV b8a65d4333 fix eval bug 2021-07-08 14:32:44 +00:00
LDOUBLEV 0742f5c521 fix metric etc.al 2021-07-07 07:54:02 +00:00
LDOUBLEV 6ce4419819 fix bug 2021-07-07 02:45:32 +00:00
LDOUBLEV 185d1e1f92 fix bug 2021-07-07 01:54:03 +00:00
littletomatodonkey eafb157a05 add py impl of pr 2574 2021-04-23 08:23:24 +00:00
WenmuZhou d3b609ee09 change DBHead output to dict 2020-12-15 23:49:50 +08:00
MissPenguin edc0fd0ccd fix predict_det 2020-12-13 06:18:26 +00:00
LDOUBLEV 7cce85cc5c fix conflicts 2020-12-09 20:44:43 +08:00
LDOUBLEV c0b4cefdcb fix comments and transform to transforms 2020-12-09 20:26:40 +08:00
LDOUBLEV 5f2f08a09c add ppocr_v2 ch_db 2020-12-09 14:59:04 +08:00
WenmuZhou 44840726ff 后处理添加类型判断 2020-11-09 18:19:42 +08:00
WenmuZhou aad3093a91 dygraph first commit 2020-10-13 17:13:33 +08:00
LDOUBLEV 6eb7dd5563 solve det eval bug and optimize doc 2020-05-25 16:29:20 +08:00
tink2123 576cbfa78e update readme 2020-05-14 13:49:28 +08:00
LDOUBLEV 759e7385db fix infer 2020-05-13 21:29:54 +08:00
LDOUBLEV e3f171a3bb fix det inference bug and optimize save path 2020-05-13 16:05:00 +08:00
LDOUBLEV 338ba3ee4a upload PaddleOCR code 2020-05-10 16:26:57 +08:00