-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: invalid literal for int() with base 10 #28
Comments
same problem |
I also had this same problem, seemed to only be with reading Hebrew. Could be a right to left thing? |
@HarryRudolph Yes , I think it's a right to left languages problem. That Code : |
a debug from models.py with print of word_data
this is the last lines that got an error :
Program crash when word_data got 13 column instead of 12.
Program will work until end but the result at end is just an half a line . |
In |
@PlaylistsTrance Your solution leads to this error:
It seems that for some reason the OCRed text is being stored in conf? I am assuming this is incorrect and that conf should be storing an integer/float representing percentage confidence. The assignment in line 31 of models.py is maybe getting confused with the right to left text? |
@HarryRudolph Problem 1 :
Problem 2 :
And replace
Result : |
ValueError: 'invalid literal for int() with base 10: '"₪ץ'' (several different words get caught here)
function get_subtitles in api.py at line 11
v.run_ocr(lang, time_start, time_end, conf_threshold, use_fullframe)
function run_ocr in video.py at line 52
for i, data in enumerate(it_ocr)
function in video.py at line 52
for i, data in enumerate(it_ocr)
function init in models.py at line 32
block_num, conf = int(block_num), int(conf)
The text was updated successfully, but these errors were encountered: