summaryrefslogtreecommitdiff
path: root/libavfilter/vf_ocr.c
diff options
context:
space:
mode:
authorDominic Mayers <dominic.mayers@meditationstudies.org>2021-03-18 15:52:53 -0400
committerMarton Balint <cus@passwd.hu>2021-03-19 23:00:04 +0100
commit626e0dd060042b203c5b49512b695e03d8560da1 (patch)
treed232b81b2b88e8a216d4c67407a06b1b762eb3d0 /libavfilter/vf_ocr.c
parentd86f44fecc940e0b3865595ece6b7b7ebb3a9a4f (diff)
avfilter/vf_ocr: add white space to whitelist
Fixes #9151. The current version of libavfilter/vf_ocr.c does not have white space in the default whitelist. But it is recommanded to include white space. See https://github.com/tesseract-ocr/tesseract/issues/2923 Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/vf_ocr.c')
-rw-r--r--libavfilter/vf_ocr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ocr.c b/libavfilter/vf_ocr.c
index d5f76059b7..c7ccb4a84f 100644
--- a/libavfilter/vf_ocr.c
+++ b/libavfilter/vf_ocr.c
@@ -43,7 +43,7 @@ typedef struct OCRContext {
static const AVOption ocr_options[] = {
{ "datapath", "set datapath", OFFSET(datapath), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS },
{ "language", "set language", OFFSET(language), AV_OPT_TYPE_STRING, {.str="eng"}, 0, 0, FLAGS },
- { "whitelist", "set character whitelist", OFFSET(whitelist), AV_OPT_TYPE_STRING, {.str="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:;,-+_!?\"'[]{}()<>|/\\=*&%$#@!~"}, 0, 0, FLAGS },
+ { "whitelist", "set character whitelist", OFFSET(whitelist), AV_OPT_TYPE_STRING, {.str="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:;,-+_!?\"'[]{}()<>|/\\=*&%$#@!~ "}, 0, 0, FLAGS },
{ "blacklist", "set character blacklist", OFFSET(blacklist), AV_OPT_TYPE_STRING, {.str=""}, 0, 0, FLAGS },
{ NULL }
};