I was able install tesseract and train new fonts
I had followed all the steps exactly mentioned in http://michaeljaylissner.com/blog/adding-new-fonts-to-tesseract-3-ocr-engine
And now i m testing the traineddata but i get the following error when i run the command
tesseract eng.digital.exp0.tif ./output.txt -l eng
gives me the error
Tesseract Open Source OCR Engine v3.03 with Leptonica
tessdata_manager.SeekToStart(TESSDATA_INTTEMP):Error:Assert failed:in file adaptmatch.cpp, line 522
Abort trap: 6
Now, after this even if i'm trying to train new data, i get this error,
i mean i'm unable to run the following command now
tesseract engg.digital.exp0.tif engg.digital.exp0.box nobatch box.train.stderr
I was able to resolve this error by uninstalling and installing tesseract again.
Could you guys help me, if there is an easier way to fix this?
Thanks in advance.
Ok i have fixed the 2nd time run fail. Basically i was training another font in english and i replaced eng.traineddata in original tessdata folder.. Hence it was failing. I replaced the original eng.traineddata and i can retrain now.
I was receiving this error because names on .box and .tif didnt match. After making sure each pair have language.fontName.countNumber.tif and language.fontName.countNumber.box it stopped crashing at this error.
Related
I am using php-cs-fixer for code formatting in Netbeans 8.2. When I try to format one file, it shows the error
Files that were not fixed due to errors reported during linting after fixing:
I searched for the fix in many websites, but couldn't get this fixed. Is there any way to fix this? I tried with both php-cs-fixer 1 and php-cs-fixer 2.
The error message means that PHP CS Fixer loaded some files from drive, apply changes on them, and then realised that files are not valid anymore (invalid PHP syntax) after those changes, thus it decided to not save it. That's one of the safety mechanism of PHP CS Fixer to not break your project.
This means that you have found an issue in PHP CS Fixer itself.
Please, verify you are using newest release, maybe the bug was already fixed!
If not, please consider to expose your configuration file (if any) and content of files you got listed at https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/new !
There is also an option to see what happen in progress.
$ ./vendor/bin/php-cs-fixer fix src/ErrorFile.php -vvv
The --verbose option will show the applied rules. When using the txt format it will also display progress notifications.
NOTE: if there is an error like "errors reported during linting after fixing", you can use this to be even more verbose for debugging purpose
-v: verbose
-vv: very verbose
-vvv: debug
I am trying to debug NS-2.34 using Eclipse Luna 4.4.2 under Ubuntu 13.10, and I had successfully configured NS2 and Eclipse for debugging by following the instructions from here "https://erl1.wordpress.com/2012/01/11/using-ns-2-with-eclipse/." The problem is, when I start debugging, debugging will not continue due to the error
Can't find a source file at "/build/buildd/eglibc-2/17/elf/dl-debug.c"
Locate the file or edit the source lookup path to include its location
I tried to locate the file in my system but I can't seem to figure that part out. How can I solve this error?
I think that's one of the many reasons why a lot of people transfer from NS2 to NS3 when they find that the module they would like to use is available in NS3.
For your problem, the page you are referring to has been a long time ago and there might be conflicts caused by new version.
For me, as a ns2er, when I modified some code or add new files, I just do "make" command and see what I got in the terminal. It works in most of the time.
Cheers,
Zeyu
I'v downloaded the windows version of STIP (space-time interest points) named stip-1.1.-winlinux.zip
I'm trying to run it from Matlab using the command:
system('bin\stipdet.exe -f data\walk-simple.avi -o data\walk-simple-stip2.txt');
But I'm getting the following error: "Could not initialize capturing from data\walk-simple.avi... "
It seems that it somehow trying to capture a video from the camera instead of using the input file.
I'm working on windows8 with Matlab 2013a. I already added all the dll's needed in order to run the package. The input file exist, so that certainly not the problem.
Has anyone managed to run in on windows? Any help will be greatly values as I'm quite stuck and really have no idea how to solve it.
Thanks,
Gil.
Install the Xvid codec, not the DivX codec
Installing XVid codecs worked for me.
https://www.xvid.com/download/
Also needs OpenCV 1.0 for correct .dlls
http://opencv.org/downloads.html
try installing DivX video codec .
I know other similar questions have been posted, but none of those solutions worked for me. Updated to Xcode 4.5.1 from 4.3.3 today. Got this error:
Build/Products/Debug-iphoneos/MobileApp.app/MobileApp malformed object (unknown load command 19)
/Users/garyt/Library/Developer/Xcode/DerivedData/MobileApp-cgojnkplmjncbaaigyvelwclibwr/Build/Products/Debug-iphoneos/MobileApp.app/: object file format unrecognized, invalid, or unsuitable
Command /bin/sh failed with exit code 1
So followed instructions here. Downloaded latest command line tools, tried the sudo codesign_allocate fix suggested, and checked to make sure my name and values were matching on both target and product, but still having the "object file format invalid or unsuitable error pop up". New to cocoa/iOS dev and this wasn't a headache I was expecting. Any help would be appreciated. I guess I should also note everything worked fine when I was running Xcode 4.3.3, which is what I updated from.
Best way is to just delete the XCode and install a new one from Appstore.
https://itunes.apple.com/in/app/xcode/id497799835?mt=12
I've managed to install the psychtoolbox-3 from the NeuroDebian repository without any explicit errors, but running AssertOpenGL yields this very verbose error message.
My system specs are as follows: Intel-based PC with Ubuntu 12.04 LTS
I've tried adding ~/Documents/MATLAB and all it's subdirectories to the Matlab pathdef, as this is where I pointed the DownloadAdditionsForNeuroDebian function to. Similarly, I've tried adding /usr/share/octave/site/m/psychtoolbox-3/ and it's subdirectories to the matlab path as well.
The error seems to be originating from a failed call to Screen; according to the above error message, Screen can't be found. That having been said, I'm able to run Screen at the Matlab console, although I get this error:
>> Screen
In place of the expected mex file this placeholder file was executed:
Screen
This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:
Screen.*
Hmm. I cannot find the file on your Matlab path?!?
One reason could be that your Matlab path is wrong or not up to date
for the current Psychtoolbox. You may want to run SetupPsychtoolbox to
fix possible path problems.
??? Error using ==> AssertMex at 210
Missing or dysfunctional Psychtoolbox Mex file for this operating system. Read the help text above carefully!!
Error in ==> Screen at 161
AssertMex('Screen.m');
Running SetupPsychtoolbox yields an error that is very similar to the first one.
I tried installing the suggested packages, but they were all already installed -- nothing seems to work.
I have absolutely no idea where to go from here. Does anyone have any suggestions?
The SetupPsychtoolbox command seems to have a bug. What is happening for you (and for me, when I tried this) is that the folder containing Screen.mex is being placed at the bottom of the search path. Here's how to fix;
type "pathtool" at the Matlab commandline
find the PsychtoolboxAddons entry and move it to the top (for me this was /usr/share/psychtoolbox-3/PsychtoolboxAddons)
If you don't have a folder PsychtoolboxAddons you may need to follow the instructions at http://docs.psychtoolbox.org/DownloadAdditionsForNeuroDebian
Don't forget to move your personal Matlab directory to the top also (the SetupPsychtoolbox command moves your personal directory to be underneath it's directories, which is a bit mean).
Save the path. Don't ever run SetupPsychtoolbox again!
Good luck!