Skip to content

OCR images exported by VideoSubFinder using Google docs OCR then export the result as srt file.

Notifications You must be signed in to change notification settings

Kuju29/image-ocr-google-docs-srt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Note : I recommend you to use it from subtitleedit, they just developed to support this. But if you still want free service My project is still working.

Requirements

  • Install python
  • Install nodejs
  • Install Pip in "Command Prompt"
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

if error on windows 10 : Go to -> "start" -> "Search" -> "Manage App Execution Aliases" -> turn off "Python", "Python3"

  • Install Google cloud vision in "Command Prompt"
pip install google-cloud-vision
  • Install Google Client Library using in "Command Prompt"
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

How to use

  • Download image-ocr-google-docs-srt

  • Create new project from Python Quickstart

  • Create new API for download api.json file and put beside main.py

    • "credentials.json" rename from "OAuth 2.0" API file (work slow but free)

    • "sa-account.json" rename from "Service Accounts" API file (work fast but 300$)

      image

  • Export images using VideoSubFinder and put them in images folder

  • Input image location in Config file. [ Need change \ to \\ | E.g. C:\Users to C:\\Users ]

  • Run main.py and login with google account (only for first time)

  • Wait until it complete processing evey image.

Credits

About

OCR images exported by VideoSubFinder using Google docs OCR then export the result as srt file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%