How did you install tesseract? Zdenko
so 22. 9. 2018 o 15:23 Adam Richards <[email protected]> napísal(a): > I have managed to run the basic API example from the command line, however > I am now trying to incorporate it into my project. > I have added these lines to my CMakeLists.txt file: > > find_package( Tesseract 3.04.01 REQUIRED ) > include_directories(${Tesseract_INCLUDE_DIRS}) > target_link_libraries(image ${Tesseract_LIBRARIES}) > > And when I try and make it I get this error: > > "CMake Error at CMakeLists.txt:7 (find_package): > Could not find a package configuration file provided by "Tesseract" with > any of the following names: > > TesseractConfig.cmake > tesseract-config.cmake > > Add the installation prefix of "Tesseract" to CMAKE_PREFIX_PATH or set > "Tesseract_DIR" to a directory containing one of the above files. If > "Tesseract" provides a separate development package or SDK, be sure it > has > been installed." > > Should there be something else I have to install or do to make this work? > > On Saturday, September 22, 2018 at 5:05:07 PM UTC+10, zdenop wrote: >> >> Have a look at wiki APIExample >> <https://github.com/tesseract-ocr/tesseract/wiki/APIExample>. >> And tesseract / tesseractmain.cpp >> <https://github.com/tesseract-ocr/tesseract/blob/master/src/api/tesseractmain.cpp> >> is just example how to use tesseract library... Tesseract is also possible >> to build with cmake, so all you need is just to have a look at the code... >> >> Zdenko >> >> >> so 22. 9. 2018 o 8:49 Adam Richards <[email protected]> napísal(a): >> >>> Hi I want to use Tesseract to detect numbers in a sudoku puzzle. I >>> already have all my opencv c++ code that will produce a Mat for every cell >>> with a number in it, to run this I am using Cmake to generate the code. >>> >>> I was just wondering how I can install, setup and use tesseract to read >>> the numbers from each cell within this c++ code, as I can only work out how >>> to run it from the command line. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "tesseract-ocr" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/tesseract-ocr. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tesseract-ocr/93a0d413-f0a2-41c4-8944-67c61b0a784f%40googlegroups.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/93a0d413-f0a2-41c4-8944-67c61b0a784f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/65bd7146-d7eb-4ecb-8c6c-8d40bc9344d7%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/65bd7146-d7eb-4ecb-8c6c-8d40bc9344d7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8ymvTPP6LBh0wiyT1j1Le%2BS03SLfM6McCu%3DOw8_iWyWag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

