@@ -57,13 +57,13 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) {
57
57
}
58
58
59
59
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit (JNIEnv* env, jclass clazz) {
60
- LOGV (__FUNCTION__);
60
+ // LOGV(__FUNCTION__);
61
61
62
62
field_mNativeData = env->GetFieldID (clazz, " mNativeData" , " I" );
63
63
}
64
64
65
65
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct (JNIEnv* env, jobject object) {
66
- LOGV (__FUNCTION__);
66
+ // LOGV(__FUNCTION__);
67
67
68
68
native_data_t *nat = new native_data_t ;
69
69
@@ -76,7 +76,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct(JNIEnv* e
76
76
}
77
77
78
78
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeFinalize (JNIEnv* env, jobject object) {
79
- LOGV (__FUNCTION__);
79
+ // LOGV(__FUNCTION__);
80
80
81
81
native_data_t *nat = get_native_data (env, object);
82
82
@@ -96,7 +96,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeFinalize(JNIEnv* en
96
96
97
97
jboolean Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit (JNIEnv *env, jobject thiz,
98
98
jstring dir, jstring lang) {
99
- LOGV (__FUNCTION__);
99
+ // LOGV(__FUNCTION__);
100
100
101
101
native_data_t *nat = get_native_data (env, thiz);
102
102
@@ -125,7 +125,7 @@ jboolean Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem(JNIEnv
125
125
jstring dir,
126
126
jstring lang,
127
127
jint mode) {
128
- LOGV (__FUNCTION__);
128
+ // LOGV(__FUNCTION__);
129
129
130
130
native_data_t *nat = get_native_data (env, thiz);
131
131
@@ -151,7 +151,7 @@ jboolean Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInitOem(JNIEnv
151
151
152
152
jstring Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetLastInitLanguage (JNIEnv *env,
153
153
jobject thiz) {
154
- LOGV (__FUNCTION__);
154
+ // LOGV(__FUNCTION__);
155
155
156
156
native_data_t *nat = get_native_data (env, thiz);
157
157
@@ -169,7 +169,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetImageBytes(JNIEn
169
169
jint width,
170
170
jint height, jint bpp,
171
171
jint bpl) {
172
- LOGV (__FUNCTION__);
172
+ // LOGV(__FUNCTION__);
173
173
174
174
jbyte *data_array = env->GetByteArrayElements (data, NULL );
175
175
int count = env->GetArrayLength (data);
@@ -200,7 +200,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetImageBytes(JNIEn
200
200
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetImagePix (JNIEnv *env,
201
201
jobject thiz,
202
202
jint nativePix) {
203
- LOGV (__FUNCTION__);
203
+ // LOGV(__FUNCTION__);
204
204
205
205
PIX *pixs = (PIX *) nativePix;
206
206
PIX *pixd = pixClone (pixs);
@@ -223,24 +223,24 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetRectangle(JNIEnv
223
223
jobject thiz, jint left,
224
224
jint top, jint width,
225
225
jint height) {
226
- LOGV (__FUNCTION__);
226
+ // LOGV(__FUNCTION__);
227
227
228
228
native_data_t *nat = get_native_data (env, thiz);
229
229
230
- LOGI (" set rectangle left=%d, top=%d, width=%d, height=%d\n " , left, top, width, height);
230
+ // LOGI("set rectangle left=%d, top=%d, width=%d, height=%d\n", left, top, width, height);
231
231
232
232
nat->api .SetRectangle (left, top, width, height);
233
233
}
234
234
235
235
jstring Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetUTF8Text (JNIEnv *env,
236
236
jobject thiz) {
237
- LOGV (__FUNCTION__);
237
+ // LOGV(__FUNCTION__);
238
238
239
239
native_data_t *nat = get_native_data (env, thiz);
240
240
241
- LOGI (" BEFORE RECOGNIZE" );
241
+ // LOGI("BEFORE RECOGNIZE");
242
242
char *text = nat->api .GetUTF8Text ();
243
- LOGI (" AFTER RECOGNIZE" );
243
+ // LOGI("AFTER RECOGNIZE");
244
244
245
245
jstring result = env->NewStringUTF (text);
246
246
@@ -250,7 +250,7 @@ jstring Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetUTF8Text(JNIE
250
250
}
251
251
252
252
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeStop (JNIEnv *env, jobject thiz) {
253
- LOGV (__FUNCTION__);
253
+ // LOGV(__FUNCTION__);
254
254
255
255
native_data_t *nat = get_native_data (env, thiz);
256
256
@@ -259,7 +259,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeStop(JNIEnv *env, j
259
259
260
260
jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeMeanConfidence (JNIEnv *env,
261
261
jobject thiz) {
262
- LOGV (__FUNCTION__);
262
+ // LOGV(__FUNCTION__);
263
263
264
264
native_data_t *nat = get_native_data (env, thiz);
265
265
@@ -268,7 +268,7 @@ jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeMeanConfidence(JNIE
268
268
269
269
jintArray Java_com_googlecode_tesseract_android_TessBaseAPI_nativeWordConfidences (JNIEnv *env,
270
270
jobject thiz) {
271
- LOGV (__FUNCTION__);
271
+ // LOGV(__FUNCTION__);
272
272
273
273
native_data_t *nat = get_native_data (env, thiz);
274
274
@@ -300,7 +300,7 @@ jboolean Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetVariable(JNI
300
300
jobject thiz,
301
301
jstring var,
302
302
jstring value) {
303
- LOGV (__FUNCTION__);
303
+ // LOGV(__FUNCTION__);
304
304
305
305
native_data_t *nat = get_native_data (env, thiz);
306
306
@@ -316,14 +316,14 @@ jboolean Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetVariable(JNI
316
316
}
317
317
318
318
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClear (JNIEnv *env, jobject thiz) {
319
- LOGV (__FUNCTION__);
319
+ // LOGV(__FUNCTION__);
320
320
321
321
native_data_t *nat = get_native_data (env, thiz);
322
322
323
323
nat->api .Clear ();
324
324
325
325
// Call between pages or documents etc to free up memory and forget adaptive data.
326
- LOGI (" clearing adaptive classifier" );
326
+ // LOGI("clearing adaptive classifier");
327
327
nat->api .ClearAdaptiveClassifier ();
328
328
329
329
// Since Tesseract doesn't take ownership of the memory, we keep a pointer in the native
@@ -338,7 +338,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClear(JNIEnv *env,
338
338
}
339
339
340
340
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeEnd (JNIEnv *env, jobject thiz) {
341
- LOGV (__FUNCTION__);
341
+ // LOGV(__FUNCTION__);
342
342
343
343
native_data_t *nat = get_native_data (env, thiz);
344
344
@@ -357,7 +357,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeEnd(JNIEnv *env, jo
357
357
358
358
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetDebug (JNIEnv *env, jobject thiz,
359
359
jboolean debug) {
360
- LOGV (__FUNCTION__);
360
+ // LOGV(__FUNCTION__);
361
361
362
362
native_data_t *nat = get_native_data (env, thiz);
363
363
@@ -367,7 +367,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetDebug(JNIEnv *en
367
367
void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetPageSegMode (JNIEnv *env,
368
368
jobject thiz,
369
369
jint mode) {
370
- LOGV (__FUNCTION__);
370
+ // LOGV(__FUNCTION__);
371
371
372
372
native_data_t *nat = get_native_data (env, thiz);
373
373
@@ -376,7 +376,7 @@ void Java_com_googlecode_tesseract_android_TessBaseAPI_nativeSetPageSegMode(JNIE
376
376
377
377
jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetRegions (JNIEnv *env,
378
378
jobject thiz) {
379
- LOGV (__FUNCTION__);
379
+ // LOGV(__FUNCTION__);
380
380
381
381
native_data_t *nat = get_native_data (env, thiz);;
382
382
PIXA *pixa = NULL ;
@@ -391,7 +391,7 @@ jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetRegions(JNIEnv *
391
391
392
392
jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetTextlines (JNIEnv *env,
393
393
jobject thiz) {
394
- LOGV (__FUNCTION__);
394
+ // LOGV(__FUNCTION__);
395
395
396
396
native_data_t *nat = get_native_data (env, thiz);;
397
397
PIXA *pixa = NULL ;
@@ -406,7 +406,7 @@ jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetTextlines(JNIEnv
406
406
407
407
jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetWords (JNIEnv *env,
408
408
jobject thiz) {
409
- LOGV (__FUNCTION__);
409
+ // LOGV(__FUNCTION__);
410
410
411
411
native_data_t *nat = get_native_data (env, thiz);;
412
412
PIXA *pixa = NULL ;
@@ -421,7 +421,7 @@ jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetWords(JNIEnv *en
421
421
422
422
jint Java_com_googlecode_tesseract_android_TessBaseAPI_nativeGetCharacters (JNIEnv *env,
423
423
jobject thiz) {
424
- LOGV (__FUNCTION__);
424
+ // LOGV(__FUNCTION__);
425
425
426
426
native_data_t *nat = get_native_data (env, thiz);
427
427
return reinterpret_cast <jint>(nat->api .GetCharacters ());
0 commit comments