| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An offline Optical Character Recognition (OCR) plugin for LeanType (and HeliBoard), enabling instant on-device text recognition directly from your keyboard.
Download the latest APK matching your device's CPU architecture (typically arm64-v8a for modern Android devices) from the Releases section and install it.
# Clone the repository
git clone https://github.com/LeanBitLab/LeanType-OCR-Plugin.git
cd LeanType-OCR-Plugin
# Build Debug APKs for all ABIs
./gradlew assembleDebug
# Build Release APKs (configured with ProGuard/R8 optimization)
./gradlew assembleReleaseGenerated APKs will be located in:
app/build/outputs/apk/{debug,release}/ocr_plugin-{abi}.apk
LeanType loads this plugin dynamically at runtime through a standardized interface contract:
package helium314.keyboard.latin.ocr
interface ITextRecognizer {
suspend fun recognizeText(bitmap: Bitmap): String
}Implementation is managed by TextRecognizerImpl in helium314.keyboard.ocr.plugin, which initializes the bundled TextRecognition clients on demand and processes image frames asynchronously using Kotlin Coroutines.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |