-
Notifications
You must be signed in to change notification settings - Fork 67
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
doesn't work with Tesseract 4 ? #67
Comments
I'm pretty sure now this is the case. This is what happens when trying to compile it. -- Performing Test TESSERACT_NAMESPACE - Failed Yes, that's tesseract 4 that's getting misindentified as tesseract 2. |
Simply add -std=gnu++11 to CMAKE_CXX_FLAGS in CMakeLists.txt. |
-- Build type: Debug It still misindentifies tesseract 4 as tesseract 2, and compilation still fails, but for some other (or maybe exactly the same) reason: [ 60%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o |
Had same issue as OP and this worked for me after adding it and doing a |
Works great ! thanks a lot |
Can this not be added to the CMakeLists.txt file here, so we don't have to add this manually? |
There hasn't been an update on this git in several years. I cloned the repository and even added a few changes to the code at my own git site. I noticed with tesseract 4, different OEM engines produced significantly different results on subtitle files. I experimented with this and added a --tesseract-oem option to vobsub2srt in my git repository. I updated the README with what expectations you should have with various oem options. Play around with it a bit and test for yourself. Anyway, you can find the new VobSub2SRT git repository here: https://github.com/bubonic/VobSub2SRT I am in no way currently maintaining this project. It was just a self added add-on. I'll update my repository as seems fit and neccessary. |
@bubonic I added a fork of your repo to homebrew:
and installed it by:
Not sure I needed the |
@jefro108 I'm unsure how brew works, as I've never owned an Apple. I just cloned my git repo and compiled from source and everything was working as expected. Glad to hear you found a fork that works. Hope it benefits you! Best. |
@bubonic
Btw, could you open the Issues page for your github project? |
You need these guys installed: https://tesseract-ocr.github.io/tessdoc/Data-Files Also, Issue page is now open |
It looks like it can't cope with tesseract 4's language data files:
open("/usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4113088, ...}) = 0
read(3, "\30\0\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 4096) = 4096
write(2, "Failed loading language 'eng'\n", 30Failed loading language 'eng'
) = 30
write(2, "Tesseract couldn't load any lang"..., 39Tesseract couldn't load any languages!
The text was updated successfully, but these errors were encountered: