Interface: VerticalOCRProps
Defined in: packages/react-native-executorch/src/types/ocr.ts:70
Configuration properties for the useVerticalOCR hook.
Extends
Properties
independentCharacters?
optionalindependentCharacters:boolean
Defined in: packages/react-native-executorch/src/types/ocr.ts:75
Boolean indicating whether to treat each character independently during recognition.
Defaults to false.
model
model:
object
Defined in: packages/react-native-executorch/src/types/ocr.ts:41
Object containing the necessary model sources and configuration for the OCR pipeline.
detectorSource
detectorSource:
ResourceSource
ResourceSource that specifies the location of the text detector model binary.
language
language:
"abq"|"ady"|"af"|"ava"|"az"|"be"|"bg"|"bs"|"chSim"|"che"|"cs"|"cy"|"da"|"dar"|"de"|"en"|"es"|"et"|"fr"|"ga"|"hr"|"hu"|"id"|"inh"|"ic"|"it"|"ja"|"kbd"|"kn"|"ko"|"ku"|"la"|"lbe"|"lez"|"lt"|"lv"|"mi"|"mn"|"ms"|"mt"|"nl"|"no"|"oc"|"pi"|"pl"|"pt"|"ro"|"ru"|"rsCyrillic"|"rsLatin"|"sk"|"sl"|"sq"|"sv"|"sw"|"tab"|"te"|"tjk"|"tl"|"tr"|"uk"|"uz"|"vi"
The language configuration enum for the OCR model (e.g., English, Polish, etc.).
recognizerSource
recognizerSource:
ResourceSource
ResourceSource that specifies the location of the text recognizer model binary.
Inherited from
preventLoad?
optionalpreventLoad:boolean
Defined in: packages/react-native-executorch/src/types/ocr.ts:62
Boolean that can prevent automatic model loading (and downloading the data if loaded for the first time) after running the hook.
Defaults to false.