diff options
author | Dominic Mayers <dominic.mayers@meditationstudies.org> | 2021-03-18 15:52:53 -0400 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-03-19 23:00:04 +0100 |
commit | 626e0dd060042b203c5b49512b695e03d8560da1 (patch) | |
tree | d232b81b2b88e8a216d4c67407a06b1b762eb3d0 | |
parent | d86f44fecc940e0b3865595ece6b7b7ebb3a9a4f (diff) | |
download | ffmpeg-626e0dd060042b203c5b49512b695e03d8560da1.tar.gz |
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>
-rw-r--r-- | libavfilter/vf_ocr.c | 2 |
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 } }; |