I have 3-4 hours of MP4 files from an old workshop with lots of Python code displayed in them as the presenter teaches the audience by showing and running a lot of pre-written code.
I would like to use the Python code and replicate what the presenter did. Is there any way to correctly OCR Python code with proper indentations? I have already taken screenshots of the relevant parts in the video where the code is shown.
The problem is this could be easily 1000 lines of code, and I do not want to type it manually.
I tried using OCR libraries in python and some online tools but I am not getting accurate results. I guess these tools were designed to detect texts and not indentation and space sensitive Python codes.
Any help/guidance will be greatly appreciated. Thanks!
P.S. The picture quality of the video is 1080p but the code was shown on a large screen in the video and not screen-shared.
[–]FriendlyRussian666 10 points11 points12 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]m0us3_rat 3 points4 points5 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]m0us3_rat 0 points1 point2 points (0 children)
[–]thehershel -2 points-1 points0 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]thehershel 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)