Re: [tesseract-ocr] Using Tesseract with openCV Mat

2018-10-11 Thread Adam Richards
Thanks  Soumik, I can access the original image but I guess it must be a
problem with Tesseract accessing the OpenCV mats wherever they exist, which
I'll have to try and work out.

Is there a way to authorise access? I'm using cmake to compile on a
raspberry pi

On Fri, Oct 12, 2018 at 3:08 AM Soumik Ranjan Dasgupta <
srd1...@cse.jgec.ac.in> wrote:

> Although I've not used the C++ API, I've run into segmentation errors
> quite a lot during my initial days, and in most of the cases it generally
> stemmed from unauthorised directory accesses. Check whether the directory
> where the images are stored is readable and writable by you. Hope this
> helps!
>
> On Thu, Oct 11, 2018 at 4:09 PM Adam Richards 
> wrote:
>
>> Hi I am having issues with sending a Mat image the I have opened through
>> OpenCV to Tesseract using the "SetImage" function.
>> I can use Tesseract on the image when I just input the commented out bit
>> at the end of the line as: SetImage(image);
>>
>> however when I run it as below the program will crash before even
>> reaching this point and return to console "segmentation error"
>>
>> I have found this code as being identical to somebody who previously did
>> my project, and i have no idea why this error is occurring.
>>
>>
>> Please if somebody can help me or provide a working example of Tesseract
>> using Mats from OpenCv I would greatly appreciate it.
>>
>> kind regards,
>>
>> Adam
>>
>>
>> int main(int argc, char** argv )
>> {
>>
>> imgOriginal = imread(argv[1],1);  // open image
>> Mat img = imgOriginal;
>>
>> .
>>
>> namedWindow("img", WINDOW_NORMAL);
>> imshow("img", img);
>> waitKey(0); // hold window open until user presses a key
>>
>> char *outText;
>> tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
>> // Initialize tesseract-ocr with English, without specifying tessdata
>> path
>> if (api->Init("/usr/share/tesseract-ocr", "eng")) {
>> fprintf(stderr, "Could not initialize tesseract.\n");
>> exit(1);
>> }
>>
>> // Open input image with leptonica library
>> Pix *image =
>> pixRead("/home/pi/opencv/sudoku_capture/sudoku2/Sudoku.jpg");
>> api->TesseractRect( img.data, 1, img.step1(), 0, 0, img.cols,
>> img.rows);
>> api->SetImage((uchar*)img.data, img.size().width, img.size().height,
>> img.channels(), img.step1());//image);
>> api->Recognize(0);
>>
>> // Get OCR result
>> outText = api->GetUTF8Text();
>> printf("OCR output:\n%s", outText);
>>
>> // Destroy used object and release memory
>> api->End();
>> delete [] outText;
>> //pixDestroy(&image);
>>
>> --
>> 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 tesseract-ocr+unsubscr...@googlegroups.com.
>> To post to this group, send email to tesseract-ocr@googlegroups.com.
>> 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/5248e483-3f5c-4834-9c31-341b6873ffe5%40googlegroups.com
>> <https://groups.google.com/d/msgid/tesseract-ocr/5248e483-3f5c-4834-9c31-341b6873ffe5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Regards,
> Soumik Ranjan Dasgupta
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "tesseract-ocr" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tesseract-ocr/LQ92oBFKBU8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tesseract-ocr+unsubscr...@googlegroups.com.
> To post to this group, send email to tesseract-ocr@googlegroups.com.
> 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/CAB_aDAcwRr1F3D5R-OcK6fEPQBLuJykyGEAX_zkx1YPXWErwUA%40mail.gmail.com
> <https://groups.google.com/d/msgid/tesseract-ocr/CAB_aDAcwRr1F3D5R-OcK6fEPQBLuJykyGEAX_zkx1YPXWErwUA%40mail.gmail.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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/CAJ_g6yUQXba3k4%3Dx%3DLwv9E1UDG2RDusBCKCdF6KCd8%2BOBpgPxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Using Tesseract with openCV Mat

2018-10-11 Thread Adam Richards
Hi I am having issues with sending a Mat image the I have opened through 
OpenCV to Tesseract using the "SetImage" function.  
I can use Tesseract on the image when I just input the commented out bit at 
the end of the line as: SetImage(image);

however when I run it as below the program will crash before even reaching 
this point and return to console "segmentation error"

I have found this code as being identical to somebody who previously did my 
project, and i have no idea why this error is occurring.


Please if somebody can help me or provide a working example of Tesseract 
using Mats from OpenCv I would greatly appreciate it.

kind regards,

Adam


int main(int argc, char** argv )
{

imgOriginal = imread(argv[1],1);  // open image
Mat img = imgOriginal;

.

namedWindow("img", WINDOW_NORMAL); 
imshow("img", img);
waitKey(0); // hold window open until user presses a key

char *outText;
tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
// Initialize tesseract-ocr with English, without specifying tessdata 
path
if (api->Init("/usr/share/tesseract-ocr", "eng")) {
fprintf(stderr, "Could not initialize tesseract.\n");
exit(1);
}

// Open input image with leptonica library
Pix *image = 
pixRead("/home/pi/opencv/sudoku_capture/sudoku2/Sudoku.jpg");
api->TesseractRect( img.data, 1, img.step1(), 0, 0, img.cols, img.rows);
api->SetImage((uchar*)img.data, img.size().width, img.size().height, 
img.channels(), img.step1());//image);
api->Recognize(0);

// Get OCR result
outText = api->GetUTF8Text();
printf("OCR output:\n%s", outText);

// Destroy used object and release memory
api->End();
delete [] outText;
//pixDestroy(&image);

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/5248e483-3f5c-4834-9c31-341b6873ffe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Using tesseract with cmake to make a cpp file

2018-09-29 Thread Adam Richards
Hi I have a previous thread discussing more of my project but still after 
googling have no idea what I am doing and was wondering if anybody else 
could help.

I installed tesseract using:

sudo apt install tesseract-ocr 
sudo apt install libtesseract-dev


I can run the sample code from 
https://github.com/tesseract-ocr/tesseract/wiki/APIExample using the g++ 
command
Now what is a simple way for me to run this same code inside my project 
that is currently being built with cmake?

>From what I can understand I need some commands in my cmakelists.txt file 
like these:

#find_package( Tesseract 3.04.01 REQUIRED )
#include_directories(${Tesseract_INCLUDE_DIRS})
#target_link_libraries(image ${Tesseract_LIBRARIES})

That gives me the error of :

"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."


so I tried manually entering the directories like this:

include_directories(${/usr/include/tesseract})
target_link_libraries(image ${/usr/local/lib})

 
However it comes up with a whole bunch of undefined references.

Is this how I should be doing it? How can I find the correct directories? 
What should I enter? 

Can somebody please help?
Thanks, Adam


-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/e67184de-958d-4970-9e0f-2726dc37cdf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-26 Thread Adam Richards
Hi Zdenko,

Sorry, I'm just still unsure how exactly to get this working? What should I 
be doing to set my Tesseract_INCLUDE_DIRS and Tesseract_LIBRARIES 
manually...

Any further help you could provide would be appreciated,

thanks,
Adam

On Monday, September 24, 2018 at 4:46:05 PM UTC+10, zdenop wrote:
>
> This means that your tesseract packages were build with autotools and they 
> did not includes cmake support.
> So you need to set your Tesseract_INCLUDE_DIRS and Tesseract_LIBRARIES 
> manually...
>
> Zdenko
>
>
> po 24. 9. 2018 o 0:24 Adam Richards > 
> napísal(a):
>
>> I did a search on the Pi and it couldn't find A TesseractConfig.cmake 
>> file anywhere. 
>>
>> Where should it be exactly?
>>
>> Should it automatocally come with Tesseract or do I need to download or 
>> add it?
>>
>> -- 
>> 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 tesseract-oc...@googlegroups.com .
>> To post to this group, send email to tesser...@googlegroups.com 
>> .
>> 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/64319e95-3c44-49bb-8e8e-8650a17f8a8a%40googlegroups.com
>> .
>> 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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/ff3a4ab9-69a3-463a-bf98-8a4190e327c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-23 Thread Adam Richards
Thank you Zdenko,

How exactly would I do this? Is it just entering the directory directly into 
the cmakelists.txt file?

Is there an easy way to find the location of these directories?

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/9f1cbe2b-370e-4a4e-b2e1-5b3c9ef4e0a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-23 Thread Adam Richards
I did a search on the Pi and it couldn't find A TesseractConfig.cmake file 
anywhere. 

Where should it be exactly?

Should it automatocally come with Tesseract or do I need to download or add it?

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/64319e95-3c44-49bb-8e8e-8650a17f8a8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-22 Thread Adam Richards
Pretty sure I installed with just these commands:

sudo apt install tesseract-ocr
sudo apt install libtesseract-dev

When I check the tesseract -v I get this:
tesseract 3.04.01
 leptonica-1.74.1
  libgif 5.1.4 : libjpeg 6b (libjpeg-turbo 1.5.1) : libpng 1.6.28 : libtiff 
4.0.8 : zlib 1.2.8 : libwebp 0.5.2 : libopenjp2 2.1.2


On Saturday, September 22, 2018 at 11:48:13 PM UTC+10, zdenop wrote:
>
> How did you install tesseract?
>
> Zdenko
>
>
> so 22. 9. 2018 o 15:23 Adam Richards > 
> 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  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 tesseract-oc...@googlegroups.com.
>>>> To post to this group, send email to tesser...@googlegroups.com.
>>>> 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 tesseract-oc...@googlegroups.com .
>> To post to this group, send email to tesser...@googlegroups.com 
>> .
>> 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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/ebc2089a-7526-4850-924e-fc3633d79845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-22 Thread Adam Richards
Thank you Zdenko,

I am not overly familiar with how cmake works in compiling everything, I 
followed through these 
steps: https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html 
and this tutorial: https://www.youtube.com/watch?v=LglRKc2nGeY   to get 
everything working with opencv. However I am not exactly sure how to 
integrate in Tesseract with the same cmake commands.
Is there any useful tutorials or examples on how to use Tesseract with 
cmake?



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 > 
> 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 tesseract-oc...@googlegroups.com .
>> To post to this group, send email to tesser...@googlegroups.com 
>> .
>> 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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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/c15307de-0796-4719-a125-641bb6024f93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-22 Thread Adam Richards
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 > 
> 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 tesseract-oc...@googlegroups.com .
>> To post to this group, send email to tesser...@googlegroups.com 
>> .
>> 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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Tesseract to detect numbers with opencv (c++) and cmake on a raspberry pi

2018-09-21 Thread Adam Richards
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.