How can I know tesseract has been set up successfully - visual-studio-2010

I set up my tesseract 3.01 in visual studio 2008 according to http://code.google.com/p/tesseract-ocr/wiki/ReadMePre3
No errors report in compilication.
Then a console command window saying clustering flash by, then disappear.
If I have successfully installed it, where should I put tesseract examples? Is it Ok to put them under the vs2008 folder?
Can anyone send me an example?

After checking out the complete source from Tesseract SVN repositoty, open tesseract solution from vs2008 folder, select LIB-Release configuration, and build. The .exe output files can be found in vs2008\LIB_Release folder. You can move them to the parent folder of vs2008, where there are some sample images and tessdata, open a command prompt, and run your test from there.
tesseract phototest.tif out

Related

MSVCP120.dll missing

I compiled and linked an executable file in VS2013, and then tried to run that exe on another computer.
I get this error on the other computer:
I read on this problem, and I saw I need to download VS2013 on the other computer to be able to execute this file.
But what is the point in exe file if I need to download a VS2013 on any computer I want to run it on?
Is there any normal way to execute it through the visual without go through this problem?
The MSVCP120.dll is part of the Visual C++ 2013 Redistributable package. Download and install it on the other PCs to get the program working or link the required lib via static linking.

Opening visual studio solution from a linux drive

I just upgraded from Win7 to Win10 and I noticed the following change, that I don't explain for now.
I used to checkout my source code on in a mounted linux drive (\myremote\myaccount\ as X:)
before I was able to open visual studio 2008 solution (.sln file) and build but since the upgrade to Win10, devenv fails when I double click on a sln, saying that:
The following files were specified on the command line:
X:\blahblah\myproject\myproject.sln
These files could not be found and will not be loaded
but I can open and save that sln file using a text editor.
Note that my devenv run as Administrator.
Any idea ?

How to run pocketsphinx from Windows CMD

I am currently following the tutorial on cmusphinx.sourceforge.net to install pocketsphinx for Windows. Admittedly I only have experience in C#, and I'm not at all familiar with DOS commands.
My problem: When I try to run pocketsphinx_continuous, either through command prompt or by clicking on the icon, a DOS window pops up, quickly scrolls through a bunch of text, then closes before I can read anything on it. I'm not sure what to do.
My system: Windows 7 64-bit
What I've done:
I downloaded off the CMU sourceforge website the following: sphinxbase-5prealpha, pocketsphinx-5prealpha.
I unpacked both folders onto my desktop.
I went into the sphinxbase folder, opened sphinxbase.sln in Visual Studio 2012, then built the project.
I then went into the pocketsphinx folder, opened pocketsphinx.sln in Visual Studio 2012, and built the project.
I copied sphinxbase.dll from sphinxbase/bin/Release/Win32 and pasted it into pocketsphinx/bin
I tried clicking on pocketsphinx_continuous.exe. I get the problem.
I tried running in cmd C:\Users\*my name*\Desktop\pocketsphinx\bin\Release\Win32\pocketsphinx_continuous.exe -inmic yes -hmm model\en-us\en-us -lm model\en-us\en-us.lm.bin -dict model\en-us\cmudict-en-us.dict. Same problem.
I tried putting sphinxbase.dll in pocketsphinx/bin/Release/Win32. Same problem.
I tried doing all this for the files in pocketsphinx/bin/Release/x64
I tried doing all this for the files in pocketsphinx/bin/Debug/Win32(or x64)
I also tried building the projects in Visual Studio 2015, same problem.
I'm hoping I'm just making some blatant mistake, so any help would be greatly appreciated.

configure openCV Qt new functions

I'm struggling with the step from the official documentation
Extract it into a nice and short named directory like D:/OpenCV/dep/qt/ . Then you need to build it. Start up a Visual Studio Command Prompt (2010) by using the start menu search (or navigate through the start menu All Programs ‣ Microsoft Visual Studio 2010 ‣ Visual Studio Tools ‣ Visual Studio Command Prompt (2010)).
The Visual Studio command prompt
Now navigate to the extracted folder and enter inside it by using this console window. You should have a folder containing files like Install, Make and so on. Use the dir command to list files inside your current directory. Once arrived at this directory enter the following command:
configure.exe -release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools
-no-qt3support -no-multimedia -no-ltcg
...
My issue is that in this document Qt 4.7.3 was used, now, I dont know about that version because I wasn't able to find it but in the newer one there is not Install, Make files...
which ones should I use instead?
does anyone has any step for more recent version of Qt and VS that I can follow to get this done
I turns out I wasn't using the source file, which you can find here found the folder which contains the configuration and INTALLS files on the new version in a folder called qtbase continued with the steps from there on the OPENCV guide and everything worked alright on MSVS2012

Error while Loading CMU sphinx in visual studio 2013

I am trying to load CMU sphinx in visual studio 2013 but getting some error.
The steps which i followed was
I downloaded sphinxbase-5prealpha and pocketsphinx-5prealpha and extracted to same folder.
Then i complied all the projects from both pocketsphinx and sphinxbase in visual studio(it asked me to upgrade the compliers so i did the upgrade)
now after cleaning the project, when i am trying to build all the project it is throwing a error that 'cannot open sphinxbase.lib' which it is showing in pocketsphinx project.
when i checked the 'sphinxbase.lib' file was already there in the linker of the project.
According to this document the 'sphinxbase.dll' file should be added to the bin files, but it is already added in the directory bot release and debug.
Similarly it is present in debug directory also.
Please help me, can anybody tell me what wrong i am doing here??
I am just a beginner only in this area.
Thanks !
You extracted files incorrectly. The layout must be the following:
root folder
\____pocketsphinx
\____ all files like README, src
\____sphinxbase
\____ all files like README, src
You need to download sources and unpack them into two folders - pocketsphinx and sphinxbase. Then open sphinxbase solution and compile everything. Then open pocketsphinx solution and compile everything. Please note that if you downloaded pocketsphinx-5prealpha you need to rename it to just pocketsphinx. Same for sphinxbase.
Please also note that pocketsphinx_5prealpha_win32 is a binary distribution, you can not compile it. Instead, you can include it directly into your projects.

Resources