Skip to content

Commit

Permalink
Updated README for Ubuntu 12.04. Tesseract 2 is now deprecated.
Browse files Browse the repository at this point in the history
Signed-off-by: Rüdiger Sonderfeld <[email protected]>
  • Loading branch information
ruediger committed May 20, 2012
1 parent 41bbba6 commit 813a440
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeModules/FindTesseract.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ check_cxx_source_compiles(
TESSERACT_NAMESPACE)
if(TESSERACT_NAMESPACE)
add_definitions("-DCONFIG_TESSERACT_NAMESPACE")
else()
message(WARNING "You are using an old Tesseract version. Support for Tesseract 2 is deprecated and will be removed in the future!")
endif()
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${Tesseract_INCLUDE_DIR})

Expand Down
6 changes: 3 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ vobsub2srt is released under the GPL3+ license. The MPlayer code included is GPL
The quality of the OCR depends on the text in the subtitles. Currently the code does not use any preprocessing. But I'm currently looking into adding filters and scaling options to improve the OCR. You can correct mistakes in the =.srt= files with a text editor or a special subtitle editor.

* Building
You need tesseract and libavutil (part of the [[http://ffmpeg.org/][FFmpeg]] project). You also need cmake and a gcc to build it. With Ubuntu 10.04 you can install the dependencies with
You need tesseract and libavutil (part of the [[http://ffmpeg.org/][FFmpeg]] project). You also need cmake and a gcc to build it. With Ubuntu 12.04 you can install the dependencies with

#+BEGIN_EXAMPLE
sudo apt-get install libavutil-dev libtiff4-dev tesseract-ocr-dev tesseract-ocr-eng build-essential cmake
sudo apt-get install libavutil-dev libtiff4-dev libtesseract-dev tesseract-ocr-eng build-essential cmake
#+END_EXAMPLE

You should also install the tesseract data for the languages you want to use!
You should also install the tesseract data for the languages you want to use! Note that the support for tesseract 2 is deprecated and will be removed in the future!

#+BEGIN_EXAMPLE
./configure
Expand Down

0 comments on commit 813a440

Please sign in to comment.