Fixed a bug where changing "max_text_length" for VisionLAN did not change the length of the output text (#11025)

This commit is contained in:
Viktor Bordiuzha 2023-10-12 06:07:07 +03:00 committed by GitHub
parent 3786b27307
commit d0d77fe273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,8 @@ class TextRecognizer(object):
postprocess_params = {
'name': 'VLLabelDecode',
"character_dict_path": args.rec_char_dict_path,
"use_space_char": args.use_space_char
"use_space_char": args.use_space_char,
"max_text_length": args.max_text_length
}
elif self.rec_algorithm == 'ViTSTR':
postprocess_params = {