Android OCR App

Related tags

App textfairy
Overview

Build Status

textfairy

Android OCR App

available in the play store

Features

  • convert images to pdf
  • recognize text in images
  • basic document management
  • delete
  • edit
  • merge multiple documents into one
  • view table of content

Project Structure

  • app contains the android app code
  • app/libs/hocr2pdf contains c++ code to create pdf files
  • app/libs/image_processing contains image processing code (binarization and page segmentation)
    • can be compiled to a command line executable main.cpp
    • app/libs/image_processing/CppTestProject contains an XCode project to debug and test the image processing code on desktop
  • app/libs/leptonica, app/libs/libjpeg, app/libs/libpng-android, app/libs/hocr2pdf and app/libs/tesseract are external dependencies that where added to the sources directly either because they were modified or they are not available as git repos.

Building with gradle

make sure that you have got the android sdk as well as ndk installed

  • git clone [email protected]:renard314/textfairy.git
  • cd textfairy
  • ./gradlew app:assembleDevelopDebug
Comments
  • Include app in F-Droid

    Include app in F-Droid

    In 2014 there was this https://github.com/renard314/textfairy/issues/63 so this is the "new issue" as requested. https://www.lineageos.org/ has 1.6M installs, and https://f-droid.org/ is the main piece that allows those users to completely avoid google and run an open source system (other than driver blobs). It would be nice if textfairy were avalable in f-droid.

    opened by Dmole 17
  • Include app in F-Droid

    Include app in F-Droid

    F-Droid is a alternative "market/store" providing only free, libre and open-source apps, see https://f-droid.org/ for more information.

    There's a request on the forums https://f-droid.org/forums/topic/textfairy-android-ocr-app/ and a merge request for the initial metadata is already submitted. However, it would be nice if you could

    • add a LICENSE file
    • tag your releases

    Thanks.

    opened by ghost 12
  • Issue in ndk-build.cmd

    Issue in ndk-build.cmd

    I have got the below error as given below..

    Total time: 48.541 secs C:\Users\Admin\AndroidStudioProjects\textfairy [master +2 ~0 -0 | +0 ~5 -0]> ./gradlew build To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html. signing.properties not found Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preDevelopDebugBuild UP-TO-DATE :app:checkDevelopDebugManifest :app:preDevelopReleaseBuild UP-TO-DATE :app:prePlaystoreDebugBuild UP-TO-DATE :app:prePlaystoreReleaseBuild UP-TO-DATE :tess-two:preBuild UP-TO-DATE :tess-two:preReleaseBuild UP-TO-DATE :tess-two:compileReleaseNdk UP-TO-DATE :tess-two:compileLint :tess-two:copyReleaseLint UP-TO-DATE :tess-two:mergeReleaseProguardFiles UP-TO-DATE :tess-two:packageReleaseRenderscript UP-TO-DATE :tess-two:checkReleaseManifest :tess-two:prepareReleaseDependencies :tess-two:compileReleaseRenderscript UP-TO-DATE :tess-two:generateReleaseResValues UP-TO-DATE :tess-two:generateReleaseResources UP-TO-DATE :tess-two:packageReleaseResources UP-TO-DATE :tess-two:compileReleaseAidl UP-TO-DATE :tess-two:generateReleaseBuildConfig UP-TO-DATE :tess-two:mergeReleaseShaders UP-TO-DATE :tess-two:compileReleaseShaders UP-TO-DATE :tess-two:generateReleaseAssets UP-TO-DATE :tess-two:mergeReleaseAssets UP-TO-DATE :tess-two:processReleaseManifest UP-TO-DATE :tess-two:processReleaseResources UP-TO-DATE :tess-two:generateReleaseSources UP-TO-DATE :tess-two:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :tess-two:ndkBuild make: Entering directoryC:/Users/Admin/AndroidStudioProjects/textfairy/tess-two' [armeabi] Install : libjpgt.so => libs/armeabi/libjpgt.so [armeabi] Install : liblept.so => libs/armeabi/liblept.so [armeabi] Install : libpngt.so => libs/armeabi/libpngt.so [armeabi] Install : libtess.so => libs/armeabi/libtess.so [armeabi-v7a] Install : libjpgt.so => libs/armeabi-v7a/libjpgt.so [armeabi-v7a] Install : liblept.so => libs/armeabi-v7a/liblept.so [armeabi-v7a] Install : libpngt.so => libs/armeabi-v7a/libpngt.so [armeabi-v7a] Install : libtess.so => libs/armeabi-v7a/libtess.so [x86] Install : libjpgt.so => libs/x86/libjpgt.so [x86] Install : liblept.so => libs/x86/liblept.so [x86] Install : libpngt.so => libs/x86/libpngt.so [x86] Install : libtess.so => libs/x86/libtess.so [mips] Install : libjpgt.so => libs/mips/libjpgt.so [mips] Install : liblept.so => libs/mips/liblept.so [mips] Install : libpngt.so => libs/mips/libpngt.so [mips] Install : libtess.so => libs/mips/libtess.so [arm64-v8a] Install : libjpgt.so => libs/arm64-v8a/libjpgt.so [arm64-v8a] Install : liblept.so => libs/arm64-v8a/liblept.so [arm64-v8a] Install : libpngt.so => libs/arm64-v8a/libpngt.so [arm64-v8a] Install : libtess.so => libs/arm64-v8a/libtess.so [x86_64] Install : libjpgt.so => libs/x86_64/libjpgt.so [x86_64] Install : liblept.so => libs/x86_64/liblept.so [x86_64] Install : libpngt.so => libs/x86_64/libpngt.so [x86_64] Install : libtess.so => libs/x86_64/libtess.so [mips64] Install : libjpgt.so => libs/mips64/libjpgt.so [mips64] Install : liblept.so => libs/mips64/liblept.so [mips64] Install : libpngt.so => libs/mips64/libpngt.so [mips64] Install : libtess.so => libs/mips64/libtess.so make: Leaving directory C:/Users/Admin/AndroidStudioProjects/textfairy/tess-two' :tess-two:compileReleaseJavaWithJavac UP-TO-DATE :tess-two:processReleaseJavaRes UP-TO-DATE :tess-two:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :tess-two:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE :tess-two:mergeReleaseJniLibFolders UP-TO-DATE :tess-two:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE :tess-two:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE :tess-two:bundleRelease UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72321Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72321Library UP-TO-DATE :app:prepareComAndroidSupportDesign2321Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72321Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2321Library UP-TO-DATE :app:prepareComCommit451PhotoView124Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidAnswers136Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidBeta114Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidCrashlytics255Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidCrashlyticsCore238Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidCrashlyticsNdk112Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE :app:prepareComSquareupLeakcanaryLeakcanaryAndroid131Library UP-TO-DATE :app:prepareComViewpagerindicatorLibrary241Library UP-TO-DATE :app:prepareIoFabricSdkAndroidFabric1310Library UP-TO-DATE :app:prepareTextfairyTessTwoUnspecifiedLibrary UP-TO-DATE :app:prepareDevelopDebugDependencies :app:compileDevelopDebugAidl UP-TO-DATE :app:compileDevelopDebugRenderscript UP-TO-DATE :app:generateDevelopDebugBuildConfig UP-TO-DATE :app:mergeDevelopDebugShaders UP-TO-DATE :app:compileDevelopDebugShaders UP-TO-DATE :app:generateDevelopDebugAssets UP-TO-DATE :app:mergeDevelopDebugAssets UP-TO-DATE :app:processDevelopArmeabi-v7aDebugManifest UP-TO-DATE :app:processDevelopUniversalDebugManifest UP-TO-DATE :app:processDevelopX86DebugManifest UP-TO-DATE :app:fabricGenerateResourcesDevelopDebug :app:generateDevelopDebugResValues UP-TO-DATE :app:processDevelopDebugGoogleServices File google-services.json is missing from module root folder. The Google Quickstart Plugin cannot function without it. :app:generateDevelopDebugResources :app:mergeDevelopDebugResources :app:processDevelopArmeabi-v7aDebugResources :app:processDevelopUniversalDebugResources :app:processDevelopX86DebugResources :app:generateDevelopDebugSources :app:incrementalDevelopDebugJavaCompilationSafeguard UP-TO-DATE :app:ndkBuild Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module make: *** No rule to make targetC:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../image-processing-private/src/binarize.cpp', needed by `C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/obj/local/armeabi/objs/image_processing_jni/C_/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/////image-processing-private/src/binarize.o'. Stop. make: *** Waiting for unfinished jobs.... [armeabi] SharedLibrary : libhocr2pdf.so C:/Users/Admin/AppData/Local/Android/sdk2/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lpngo C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:47: error: undefined reference to 'png_get_io_ptr' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:34: error: undefined reference to 'png_get_io_ptr' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:41: error: undefined reference to 'png_get_io_ptr' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:57: error: undefined reference to 'png_sig_cmp' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:71: error: undefined reference to 'png_create_read_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:77: error: undefined reference to 'png_create_info_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:88: error: undefined reference to 'png_set_longjmp_fn' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:90: error: undefined reference to 'png_destroy_read_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:96: error: undefined reference to 'png_set_read_fn' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:104: error: undefined reference to 'png_read_info' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:107: error: undefined reference to 'png_get_IHDR' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:112: error: undefined reference to 'png_get_channels' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:115: error: undefined reference to 'png_get_x_pixels_per_meter' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:116: error: undefined reference to 'png_get_y_pixels_per_meter' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:129: error: undefined reference to 'png_set_palette_to_rgb ' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:135: error: undefined reference to 'png_get_tRNS' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:153: error: undefined reference to 'png_get_valid' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:175: error: undefined reference to 'png_get_valid' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:178: error: undefined reference to 'png_get_sBIT' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:179: error: undefined reference to 'png_set_shift' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:154: error: undefined reference to 'png_set_tRNS_to_alpha' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:191: error: undefined reference to 'png_set_interlace_handling' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:197: error: undefined reference to 'png_read_update_info' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:200: error: undefined reference to 'png_get_rowbytes' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:209: error: undefined reference to 'png_read_rows' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:213: error: undefined reference to 'png_destroy_read_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:228: error: undefined reference to 'png_create_write_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:235: error: undefined reference to 'png_create_info_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:246: error: undefined reference to 'png_set_longjmp_fn' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:248: error: undefined reference to 'png_destroy_write_struct' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:255: error: undefined reference to 'png_set_compression_level' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:260: error: undefined reference to 'png_set_write_fn' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:279: error: undefined reference to 'png_set_IHDR' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:284: error: undefined reference to 'png_set_pHYs' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:286: error: undefined reference to 'png_write_info' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:288: error: undefined reference to 'png_get_rowbytes' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:292: error: undefined reference to 'png_set_swap' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:300: error: undefined reference to 'png_write_rows' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:303: error: undefined reference to 'png_write_end' C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:306: error: undefined reference to 'png_destroy_write_struct ' collect2.exe: error: ld returned 1 exit status make: *** [C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/obj/local/armeabi/libhocr2pdf.so] Error 1 :app:ndkBuild FAILED

    FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':app:ndkBuild'.

      Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2`

    And I have done this s in link https://github.com/renard314/textfairy/issues/105 too but same errors I have..

    I am working on windows pc, and I run the ./gradlew build command in git shell on windows.

    So what could be the solution?

    And other error is as below..

    `C:\Users\Admin\AppData\Local\Android\sdk2\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\arm-linux-androideabi\bin\ld.exe Error:error: C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/obj/local/armeabi/libhocr2pdf.so: file is empty C:\Users\Admin\AndroidStudioProjects\textfairy\app\src\main\jni\hocr2pdf\hocr2pdf.cc Error:(42) undefined reference to 'Image::Image()' Error:(44) undefined reference to 'ImageCodec::Read(std::string, Image&, std::string const&, int)' Error:(82) undefined reference to 'PDFCodec::beginPage(double, double)' Error:(83) undefined reference to 'PDFCodec::setFillColor(double, double, double)' Error:(84) undefined reference to 'hocr2pdf(std::istream&, PDFCodec_, unsigned int, bool, bool, std::ostream_)' Error:(88) undefined reference to 'PDFCodec::showImage(Image&, double, double, double, double, int, std::string const&)' Error:(91) undefined reference to 'Image::~Image()' Error:(122) undefined reference to 'PDFCodec::PDFCodec(std::ostream_)' Error:error: ld returned 1 exit status make: *_* [C:/Users/Admin/AndroidStudioProjects/textfairy/app/src/main/obj/local/armeabi/libhocr2pdfjni.so] Error 1 :app:ndkBuild FAILED Error:Execution failed for task ':app:ndkBuild'.

    Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2`

    Thanks.

    opened by Ruturajraval 11
  • git clone problems

    git clone problems

    @renard314 thank you for the time you spent this week-end. I'm sorry but I think now we have some git problems: I cannot use this command on terminal git clone [email protected]:renard314/textfairy.git I have got this error message: Permission denied (publickey). fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

    So I download the zip from the repository page and than git clone https://github.com/renard314/tess-two.git

    now I can sync the project but I have an error when type ./gradlew assembleDebug command: clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy-master/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/libimage_processing_jni.so] Error 1

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    have I missed something? I try to run with /Library/android-ndk-r15c

    Also I try to cloe from android studio VCS checkout from version controll. git submodule init git submodule update ./gradlew assembleDebug

    still the same error /Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/image_processing.cpp:237: error: undefined reference to 'boxGetGeometry' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/libimage_processing_jni.so] Error 1

    • Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

    BUILD FAILED

    Total time: 6.448 secs Stopped 0 worker daemon(s). Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:externalNativeBuildDevelopDebug'.] from daemon DaemonInfo{pid=1172, address=[a9befcb3-e159-4947-942d-b1244b6ef664 port:49290, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1502124122698, context=DefaultDaemonContext[uid=60101ad1-d2cd-4480-b728-c0c7b092c554,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home,daemonRegistryDir=/Users/giuliopettenuzzo/.gradle/daemon,pid=1172,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=512m,-Dfile.encoding=UTF-8,-Duser.country=IT,-Duser.language=it,-Duser.variant]} (build should be done). MacBook-Pro-di-Giulio:textfairy giuliopettenuzzo$

    if I compile from the editor I see this error:

    Information:Gradle tasks [:app:generateDevelopDebugSources, :app:prepareDevelopDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDevelopDebugAndroidTestSources, :app:compileDevelopDebugSources, :app:compileDevelopDebugUnitTestSources, :app:compileDevelopDebugAndroidTestSources, :tess-two:tess-two:generateDebugSources, :tess-two:tess-two:mockableAndroidJar, :tess-two:tess-two:prepareDebugUnitTestDependencies, :tess-two:tess-two:generateDebugAndroidTestSources, :tess-two:tess-two:compileDebugSources, :tess-two:tess-two:compileDebugUnitTestSources, :tess-two:tess-two:compileDebugAndroidTestSources]

    /Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/SkewCorrector.cpp Error:(82) undefined reference to 'boxaGetBox' /Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/pageseg.cpp Error:error: undefined reference to 'pixCloseBrick' Error:(37) undefined reference to 'pixFindSkewSweep' Error:(56) undefined reference to 'numaGetFValue' Error:(269) undefined reference to 'pixConvertRGBToLuminance' Error:(230) undefined reference to 'pixAnd' Error:(47) undefined reference to 'pixConnComp' Error:error: undefined reference to 'pixCloseBrickDwa' Information:BUILD FAILED Error:(83) undefined reference to 'boxAdjustSides' Error:(258) undefined reference to 'pixGetDepth' Error:(51) undefined reference to 'boxaGetCount' Error:(70) undefined reference to 'pixaDestroy' /Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/app/src/main/jni/image_processing/image_processing.cpp Error:(60) undefined reference to 'boxDestroy' Error:(38) undefined reference to 'pixRenderHashBoxArb' Error:(71) undefined reference to 'boxaDestroy' Error:(43) undefined reference to 'pixRotate' /Users/giuliopettenuzzo/AndroidStudioProjects/textfairy/image-processing/src/binarize.cpp Error:error: undefined reference to 'pixConnCompBB' Error:error: undefined reference to 'numaSetValue' Error:(17) undefined reference to 'pixRotate' Error:(39) undefined reference to 'boxDestroy' Error:(32) undefined reference to 'boxaGetCount' Error:(237) undefined reference to 'pixDisplay' Error:(79) undefined reference to 'boxaGetCount' Error:(67) undefined reference to 'numaGetRankValue' /Library/android-ndk-r15c/toolchains/x86-4.9/prebuilt/darwin-x86_64/i686-linux-android/bin/ld Error:error: linker command failed with exit code 1 (use -v to see invocation) Error:(24) undefined reference to 'LeptMsgSeverity' Error:(48) undefined reference to 'pixaCountPixels' Error:error: undefined reference to 'pixMorphCompSequence' Error:(201) undefined reference to 'pixGetPixel' Error:error: undefined reference to 'pixReduceBinary2' Error:(237) undefined reference to 'boxGetGeometry' Error:error: cannot find -llept Error:error: undefined reference to 'boxaDestroy' Error:(54) undefined reference to 'boxaGetBox' Error:(37) undefined reference to 'boxaGetBox' Error:(203) undefined reference to 'pixTilingPaintTile' Information:Total time: 16.302 secs Information:307 errors

    opened by GiulioPettenuzzo 8
  • IMAGE_PROCESSING ERROR

    IMAGE_PROCESSING ERROR

    this class give me an error: app/src/main/jni/image_processing/Android.mk in this part of code..

    jni

    LOCAL_SRC_FILES +=
    $(IMAGE_PROCESSING_PATH)/binarize.cpp
    $(IMAGE_PROCESSING_PATH)/pageseg.cpp
    $(IMAGE_PROCESSING_PATH)/RunningStats.cpp
    $(IMAGE_PROCESSING_PATH)/PixBlurDetect.cpp
    $(IMAGE_PROCESSING_PATH)/image_processing_util.cpp
    $(IMAGE_PROCESSING_PATH)/dewarp.cpp
    $(IMAGE_PROCESSING_PATH)/TimerUtil.cpp
    $(IMAGE_PROCESSING_PATH)/PixEdgeDetector.cpp
    $(IMAGE_PROCESSING_PATH)/PixAdaptiveBinarizer.cpp
    $(IMAGE_PROCESSING_PATH)/PixBinarizer.cpp
    $(IMAGE_PROCESSING_PATH)/SkewCorrector.cpp
    image_processing.cpp

    if I just leave like this it not compile and give an error: Error:Execution failed for task ':app:ndkBuild'.

    Process 'command '/Library/android-ndk-r15c/ndk-build'' finished with non-zero exit value 2

    if I write something before LOCAL_SRC_FILES += \ it compile but the app crash when user confirm the image after take a photo

    opened by GiulioPettenuzzo 8
  • native code compilation error

    native code compilation error

    After importing the code to Android Studio 2.1.1 in Windows, I encounter a series of errors in task ndkBuild. After running it in terminal, I got this errors:

    _C:/Users/Mehdi/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lpngo

    And after this error, thousands of errors like following: <Text-Fairy-Root>/app/src/main/jni/../../../../hocr2pdf/src/codecs/png.cc:47: error: undefined reference to 'png_get_i o_ptr'

    with different undefined references to functions in Leptonica and more (I guess every C function referred to).

    and finally:

    make: *** [<Text-Fairy-Root>/app/src/main/obj/local/x86/libimage_processing_jni.so] Error 1 :app:ndkBuild FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:ndkBuild'. > Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2 * Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. `BUILD FAILED``

    opened by milaniez 8
  • Adding Santali OCR

    Adding Santali OCR

    opened by Prasanta-Hembram 7
  • Image preprocessing library

    Image preprocessing library

    Hello, I am fan of your program, thank you.

    I am working on image preprocessing before OCR. I see that you have a lot of stuff already implemented in textfairy. But i think that if will be available library with preprocessing, you will can concentrate work on other stuffs.

    Are you interested in this library? I am implementing now it, based on opencv and my algorithms.

    opened by zamazan4ik 6
  • Native methods are unable to run, with corresponding jni function error

    Native methods are unable to run, with corresponding jni function error

    All these below mentioned methods,

    ` public static native void startCaptureLogs();

    public static native String stopCaptureLogs();
    
    private static native void nativeInit();
    
    private native long nativeOCRBook(long nativePix);
    
    private native long[] combineSelectedPixa(long nativePixaTexts, long nativePixaImages, int[] selectedTexts, int[] selectedImages);
    
    private native long nativeAnalyseLayout(long nativePix);`
    

    from

    OCR.java class

    are having error, and shows error for

    image_processing.cpp

    file.

    I am able to run the app, but when I click image from camera or select the image from gallery, I get error due to these native methods.

    And even in that cpp file I am getting the bar mentioning NDK support is an experimental feature and all use cases are not yet supported android studio so what could be the solution to make this code running.

    The logcat is,

    Caused by: java.lang.NoClassDefFoundError: com/googlecode/tesseract/android/OCR at com.renard.ocr.documents.creation.ImageLoadAsyncTask.doInBackground(ImageLoadAsyncTask.java:118) at com.renard.ocr.documents.creation.ImageLoadAsyncTask.doInBackground(ImageLoadAsyncTask.java:24)

    And in that java file the line at 118 is,

    final String msg = OCR.stopCaptureLogs();

    which directs at the native method call..

    So please let me know what I should do, thanks.

    Thanks in advance @renard314

    opened by Ruturajraval 6
  • Three files missing?

    Three files missing?

    @renard314 hi, it seems that these three files are missing when running ndk-build process, would you please upload them?

    $(IMAGE_PROCESSING_PATH)/TimerUtil.cpp \
    $(IMAGE_PROCESSING_PATH)/PixEdgeDetector.cpp \
    $(IMAGE_PROCESSING_PATH)/PixAdaptiveBinarizer.cpp \
    
    opened by javayhu 6
  • "Downloading of Russian failed!"

    Hi,

    Dunno if this is the right forum for reporting a Text Fairly issue. But having used Text Fairy for a long time I am now getting the above message when trying to download the Russian language pack. Am using Android Nexus 5. Please fix if possible!

    Thank you,

    Justin

    opened by jhw 5
  • Reduce pdf size

    Reduce pdf size

    Compare to similar apps, scanned PDF is around 5x bigger. Is this due to lack of compression? Or missing filtered?

    There is a black & white filter but this removes too much information.

    Can this be improved?

    opened by amenk 0
  • Running OCR on screen contents without taking screenshots [Feature request]

    Running OCR on screen contents without taking screenshots [Feature request]

    Dear @renard314,

    Can you please add the option to run optical character recognition on screen contents without taking screenshots?

    I appreciate you considering my request.

    opened by el4ctr0n 0
  • Text detection fails about images with dark background and light letters

    Text detection fails about images with dark background and light letters

    I've tested about these images, and it was working well about first image which has light background and dark letters. Second image is color-inverted one for the first image, but I couldn't get unexpected result. 4-1 4-2

    I think it's a problem occurred due to image pre-processing step.

    opened by skydev66 0
  • Modify TTS speed and generate audio file

    Modify TTS speed and generate audio file

    Hello! Congrats and thank you for this wonderful software. My daughter had and cerebral haemorrhage one month before her 11 birthday. As a result of this cerebral haemorrhage she has many sequels, one of which is that for her is very difficult and exhausting to read. It would be very useful if Text Fairy allows you to modify the speed with which the text is read (modify TTS speed) and if Text fairy allow generate an audio file than you can pause, rewind or fast forward

    Thank you very much again.

    opened by javc1974 2
  • handwriting

    handwriting

    Seems like an ominous feature however there are some libraries that might help;

    https://github.com/search?q=handwriting+OCR

    https://sourceforge.net/directory/graphics/graphics/handrec/

    Interesting long-term feature goal.

    enhancement 
    opened by Dmole 1
Owner
null
Ride-Sharing Uber Lyft Android App - Learn to build a ride-sharing Android Taxi Clone App like Uber, Lyft - Open-Source Project By MindOrks

Ride-Sharing Uber Lyft Android App - Learn to build a ride-sharing Android Taxi Clone App like Uber, Lyft - Open-Source Project By MindOrks

MindOrks 1.2k Dec 29, 2022
Android-basics-kotlin-tip-time-app - Tip Time app from Android Basics in Kotlin

Tip Time Tip Time app from Android Basics in Kotlin at developers.google.com. It

Ramon Lima e Meira 0 Jan 2, 2022
Environmental-Monitoring-Android-App - This Android App is used to monitor environmental parameters data from remote sensors

Environmental-Monitoring-Android-App - This Android App is used to monitor environmental parameters data from remote sensors. Parameters includes but not limited to temperature, humidity, air quality, level of Ionizing radiation, ...

Francisco Pascal Elias TAMBASAFIDY 0 Jan 4, 2022
Library to change Android launcher App Icon and App Name programmatically !

AppIconNameChanger Change Android App launcher Icon and App Name programmatically ! Download Demo APK from HERE Kindly use the following links to use

Prabhakar Thota 587 Dec 29, 2022
HideDroid is an Android app that allows the per-app anonymization of collected personal data according to a privacy level chosen by the user.

HideDroid An Android App for preserving user privacy HideDroid is an Android app that allows the per-app anonymization of collected personal data acco

null 100 Dec 12, 2022
Water tracker app helps you with daily reminder to drink water. This app is just a trial to test and improve my android development skills.

?? About Me I am a self-thaught developer learning web and android development. This app is just a trial to test and improve my android development sk

Sinan Sonmez (Chaush) 28 Dec 17, 2022
Visual Studio App Center Sample App for Android

Visual Studio App Center Sample App for Android The Android application in this repository and its corresponding tutorials will help you quickly and e

Yourhomeplan 1 Oct 13, 2021
Android app for Ribbit, Broker API Reference App

Ribbit Reference Implementation (Android) The reference implementation for designing the Android user interface of a broker-dealer trading application

Alpaca 12 Nov 24, 2022
Android-Java-App - Notepad app with user and password. SQL Lite

DVNote2 App Android-Java-App Notepad app with user and password Application made in Android Studio with Java language and SQLite database. How does it

DViga 1 Nov 6, 2021
Android Bitcoin market app base on Jetpack Compose and MVI. The app displays current bitcoin market price and history price k-line charts.

compose-bitcoin Android Bitcoin market app base on Jetpack Compose and MVVM & MVI. Features Current bitcoin market price. K-line charts of history pri

Chen Pan 3 May 20, 2022
App for lesson 8 of the Android App Development in Kotlin course on Udacity

Connect to the Internet - Mars Real Estate This is the toy app for Lesson 8 of t

Michael Pessoni 1 Dec 28, 2021
Android Camper parking app written in kotlin for assignment 2 of Mobile App Development

Technical Report Splash view Application shows a splash screen when opened. The

Alvaro Sanchez Domingo 1 Sep 9, 2022
null 1 Jan 7, 2022
Quiz-App - An Android app which have some basic questions

Quiz-App An Android app which have some basic questions Start page Questions pag

Gururaj KL 3 Apr 21, 2022
A Task Management and Habit-building App, representating my journey in Android as well as my first Kotlin App. 🤗 ✨

A Task Management and Habit-building App, representating my journey in Android as well as my first Kotlin App. ?? ✨

Sarthak Musmade 8 May 8, 2022
An Android app for Dokuz Eylul University students can make use of multiple school websites in this one app

An Android app for Dokuz Eylul University students can make use of multiple school websites in this one app

Eyüb Salih Özdemir 3 Apr 13, 2022
Advanced Android Weather App using MVVM Architecture Sample (ViewModel + LiveData + Kotlin + volley) = Weather App

Advanced Android Weather App using MVVM Architecture Sample (ViewModel + LiveData + Kotlin + volley) = Weather App Video Weather.-.HD.720p.mov Introdu

wykee2 4 Jul 12, 2022
Android App to save shares from any app into a file.

Save To… Android App to save shares from any app into a file. Download · Website · Contact About the Project Exporting data from any app into a file m

Daniel Gehrer 2 Oct 19, 2022
A sample app that shows how to easily encrypt the room database in an Android app

A sample app that shows how to easily encrypt the room database in an Android app. The password used for encryption is generated on the first use and saved in the Android EncryptedSharedPreferences.

Lenz Karbaumer 3 Oct 26, 2022