Did you read error message? Did you bother to checked leptonica fuctionality + documentation (in leptonica source code ;-) )?
Zdenko pi 12. 10. 2018 o 11:39 <flavium...@gmail.com> napĂsal(a): > Hi. I am a tesseract beginner who stuck into initial API example: > > Pix* pImage = pixRead("C:\\Flaviu\\imagine.png"); > printf("pImage pointer value: %p\n", pImage); > > The pImage value is 0000 ... why ? > > This is code that I have tried: > > tesseract::TessBaseAPI api; > if (0 != api.Init(NULL, NULL)) > { > std::cout << "====tesseract initialize error\n"; > std::cout << "====Last error:" << GetLastError() << std::endl; > } > > Pix* pImage = pixRead("C:\\Flaviu\\imagine.png"); > printf("pImage pointer value: %p\n", pImage); > > and the result is: > > Error in pixReadMemTiff: function not present > Error in pixReadMem: tiff: no pix returned > Error in pixaGenerateFontFromString: pix not made > Error in bmfCreate: font pixa not made > Error in pixReadStreamPng: function not present > Error in pixReadStream: png: no pix returned > Error in pixRead: pix not read > pImage pointer value: 00000000 > > I have installed Tesseract-OCR in Program Files, and I have compiled > Leptonica and Tesseract library on my machine (Win10 64 bit), run on VS2017 > ... > > To someone who work with tesseract for long time, perhaps is simple thing, > but for me is not ... can you help me into solving this issue ? > > -- > 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/ab85cbf9-2183-4cea-a433-7742af33d4f2%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/ab85cbf9-2183-4cea-a433-7742af33d4f2%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/CAJbzG8x9j8nk7W-e0aPtiCp%3DwV4f%3DDaJwMN6Kr2vy2zha4%2BnjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.