Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix(single-mode): error while recognizing race menu
Browse files Browse the repository at this point in the history
fix #360
  • Loading branch information
NateScarlet committed Aug 30, 2022
1 parent cb3425a commit 658e3d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions auto_derby/data/ocr_labels.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1184,3 +1184,6 @@ f81ff83e1c780c701c783838f81ff81ffc3f1e700fe00fe01ff01e78fc3ff81f,8
3f183f18331c730c730637033f039e31c078c0fc60cc20ce30cc18cc187c0030,%
3e303e386718670c670c77067e03be038879c0fdc0dc60cc60cc30cc18fc18f8,%
c003f81f3c3e1e780e780678077807f807f8077806780e781e787e3efc1ff003,0
1e7f3f7f330373033f073e3f1c3f98231823393f193f990799013f033fff0707,距
1c007e6c347e1c7eff37ff37ff7f3e7f182618247e7e0f7e0f267f26ff7e4004,離
c001c001fffffffff001f000f000f07ffc7f1e0f0f0707070207000ffcfff8ff,左
2 changes: 1 addition & 1 deletion auto_derby/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _get_expanded_bbox(index: int) -> Tuple[int, int, int, int]:
and l > char_non_zero_bbox[2]
and (
l - char_non_zero_bbox[0] > max_char_width * 0.8
or l - char_non_zero_bbox[2] > max_char_width * 0.2
or l - char_non_zero_bbox[2] > max_char_width * 0.25
or r - char_non_zero_bbox[0] > max_char_width
or (
# previous is punctuation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
[
"Course<川崎 dart 2100m 左>",
[
203,
641
]
]
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 658e3d5

Please sign in to comment.