File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2222#import " genericvector.h"
2323#import " strngs.h"
2424
25+ static int const kG8DefaultResolution = 300 ;
26+
2527namespace tesseract {
2628 class TessBaseAPI ;
2729};
@@ -98,7 +100,7 @@ - (id)initWithLanguage:(NSString *)language
98100 _engineMode = engineMode;
99101 _pageSegmentationMode = G8PageSegmentationModeSingleBlock;
100102 _variables = [NSMutableDictionary dictionary ];
101- _sourceResolution = 300 ;
103+ _sourceResolution = kG8DefaultResolution ;
102104 _rect = CGRectZero;
103105
104106 _monitor = new ETEXT_DESC ();
@@ -377,7 +379,7 @@ - (void)setImage:(UIImage *)image
377379 pixDestroy (&pix);
378380
379381 _image = image;
380- _sourceResolution = 300 ;
382+ _sourceResolution = kG8DefaultResolution ;
381383 _rect = (CGRect){CGPointZero, self.imageSize };
382384
383385 [self resetFlags ];
@@ -774,7 +776,7 @@ - (Pix *)pixForImage:(UIImage *)image
774776 default :
775777 NSLog (@" Cannot convert image to Pix with bpp = %d " , bpp);
776778 }
777- pixSetYRes (pix, 300 );
779+ pixSetYRes (pix, kG8DefaultResolution );
778780
779781 CFRelease (imageData);
780782
You can’t perform that action at this time.
0 commit comments