GithubHelp home page GithubHelp logo

jsakkos / pgs2srt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pimvanderloos/pgs2srt

0.0 0.0 0.0 281 KB

Read Presentation Graphic Stream (.SUP) files and provide python objects for parsing through the data

Python 100.00%

pgs2srt's Introduction

pgs2srt

Uses pgsreader and pyteseract to convert image based pgs subtitles files (.sup) to text based subrip (.srt) files.

Requirements

Python3, pip3, and Tesseract

Installation

  • Run git clone https://github.com/PimvanderLoos/pgs2srt.git
  • Inside the repo folder, run pip3 install -r requirements.txt
  • In your .bashrc or .zshrc add alias pgs2srt='<absolute path to repo>/pgs2srt.py'

How to run

pgs2srt <pgs filename>.sup

Improving accuracy

On Debian and Ubuntu, the default trained models files for Tesseract are from the fast set. While these are a bit faster than other options, this comes at the cost of accuracy. If you want higher accuracy, I'd recommend using either the legacy or the best trained models. Note that the fast and best options only support the LSTM OCR Engine Mode (oem 1).

Caveats

This is in no way a perfect converter, and tesseract will make incorrect interpretations of characters. Extremely alpha, issues, pull requests and suggestions welcome!

Credits

This project uses the common + OCR fixes developed by Sub-Zero.bundle.

pgs2srt's People

Contributors

savsanta avatar ezrabc avatar pimvanderloos avatar jsakkos avatar dependabot[bot] avatar nordqvist avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.