mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
fix issue 303
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@355 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
61447c655e
commit
289db34827
@ -223,6 +223,7 @@ int main(int argc, char **argv) {
|
||||
bool is_tiff = fileFormatIsTiff(fp);
|
||||
fclose(fp);
|
||||
|
||||
Pix *pix;
|
||||
if (is_tiff) {
|
||||
for (; (pix = pixReadTiff(argv[1], page)) != NULL; ++page) {
|
||||
if (page > 0)
|
||||
|
@ -2,14 +2,14 @@
|
||||
// Author: <rays@google.com> (Ray Smith)
|
||||
//
|
||||
|
||||
#include "svshowim.h"
|
||||
#include "scrollview.h"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config_auto.h"
|
||||
#endif
|
||||
#ifdef HAVE_LIBLEPT
|
||||
#include "allheaders.h"
|
||||
#endif
|
||||
#include "svshowim.h"
|
||||
#include "scrollview.h"
|
||||
|
||||
// Override of a tesseract function to display an image in a window.
|
||||
// This function redirects the display to ScrollView instead of the
|
||||
|
@ -29,6 +29,9 @@ const int kSvPort = 8461;
|
||||
const int kMaxMsgSize = 4096;
|
||||
const int kMaxIntPairSize = 45; // Holds %d,%d, for upto 64 bit.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config_auto.h"
|
||||
#endif
|
||||
#include "scrollview.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
Loading…
Reference in New Issue
Block a user