rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

How to build tess-two without JNI? #247

Closed xtttttttttx closed 6 years ago

xtttttttttx commented 6 years ago

Summary: I'm trying to build tess-two into .so library without JNI . Because I want to use it in Unity3D android application which was written in C#. I want to use DllImport to import .so library into my C# application, so I can call tess-two's api from C#. Is there any way to achieve this?

yibaimishenlan commented 6 years ago

Is it compiled into .so or .dll? if it 's .so : First of all, make sure you download ndk-bundle & tess-two. and enter the ../tess-two-master/tess-two directory. excute the ndk-buil cmd. OK , Wait for half an hour. I wish you a successful compilation.