Initial commit

This commit is contained in:
Aryan 2026-02-24 17:37:40 +05:30
commit 6072b2ba29
844 changed files with 220532 additions and 0 deletions

View file

@ -0,0 +1,34 @@
package com.aryan.reader.pdf.ocr
import android.graphics.Rect
/**
* Platform-agnostic OCR result models to decouple the app from Google ML Kit.
*/
data class OcrResult(
val text: String,
val textBlocks: List<OcrBlock>
)
data class OcrBlock(
val text: String,
val boundingBox: Rect?,
val lines: List<OcrLine>
)
data class OcrLine(
val text: String,
val boundingBox: Rect?,
val elements: List<OcrElement>
)
data class OcrElement(
val text: String,
val boundingBox: Rect?,
val symbols: List<OcrSymbol>
)
data class OcrSymbol(
val text: String,
val boundingBox: Rect?
)