Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <tesseract/mfcpch.h>
- #include <ctype.h>
- #include <tesseract/applybox.h>
- #include <tesseract/control.h>
- #include <tesseract/tessvars.h>
- #include <tesseract/tessedit.h>
- #include <tesseract/baseapi.h>
- #include <tesseract/thresholder.h>
- #include <tesseract/pageres.h>
- #include <tesseract/imgs.h>
- #include <tesseract/varabled.h>
- #include <tesseract/tprintf.h>
- #include <tesseract/tesseractmain.h>
- #include <tesseract/stderr.h>
- #include <tesseract/notdll.h>
- #include <tesseract/mainblk.h>
- #include <tesseract/output.h>
- #include <tesseract/globals.h>
- #include <tesseract/helpers.h>
- #include <tesseract/blread.h>
- #include <tesseract/tfacep.h>
- #include <tesseract/callnet.h>
- int main()
- {
- tesseract::TessBaseAPI tmp;
- tmp.Init("blah","eng");
- tmp.SetPageSegMode(tesseract::PSM_AUTO);
- IMAGE image;
- image.read_header("newimage.tiff");
- int bytes_per_line = check_legal_image_size(image.get_xsize(),
- image.get_ysize(),
- image.get_bpp());
- tmp.SetInputName("newimage.tiff");
- tmp.SetImage(image.get_buffer(), image.get_xsize(), image.get_ysize(),image.get_bpp() / 8, bytes_per_line);
- tmp.GetUTF8Text();
- }
Advertisement
Add Comment
Please, Sign In to add comment