Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Explicitly load libraries. Closes #150.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtheis committed Jul 16, 2016
1 parent 909d874 commit 6c9798d
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
*/
public class OpticalFlow {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("opticalflow");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class HydrogenTextDetector {
private final long mNative;

static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("hydrogen");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
public class Thresholder {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("hydrogen");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@SuppressWarnings("WeakerAccess")
public class AdaptiveMap {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Binarize.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@SuppressWarnings("WeakerAccess")
public class Binarize {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Box.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
@SuppressWarnings("WeakerAccess")
public class Box {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Boxa.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
@SuppressWarnings("WeakerAccess")
public class Boxa {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Clip.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*/
public class Clip {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Convert.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
public class Convert {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Edge.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@SuppressWarnings("WeakerAccess")
public class Edge {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Enhance.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@SuppressWarnings("WeakerAccess")
public class Enhance {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/GrayQuant.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

public class GrayQuant {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/JpegIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
@SuppressWarnings("WeakerAccess")
public class JpegIO {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/MorphApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@SuppressWarnings("WeakerAccess")
public class MorphApp {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Pix.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@SuppressWarnings("WeakerAccess")
public class Pix {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Pixa.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
@SuppressWarnings("WeakerAccess")
public class Pixa implements Iterable<Pix> {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/ReadFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/
public class ReadFile {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Rotate.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@SuppressWarnings("WeakerAccess")
public class Rotate {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Scale.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
public class Scale {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/Skew.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@SuppressWarnings("WeakerAccess")
public class Skew {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
2 changes: 2 additions & 0 deletions tess-two/src/com/googlecode/leptonica/android/WriteFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@SuppressWarnings("WeakerAccess")
public class WriteFile {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

public class PageIterator {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("tess");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
*/
public class ResultIterator extends PageIterator {
static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("tess");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class TessBaseAPI {
private long mNativeData;

static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("tess");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class TessPdfRenderer {
private final long mNativePdfRenderer;

static {
System.loadLibrary("jpgt");
System.loadLibrary("pngt");
System.loadLibrary("lept");
System.loadLibrary("tess");
}
Expand Down

0 comments on commit 6c9798d

Please sign in to comment.