react-native-vision-camera-v3-text-recognition
Advanced tools
Comparing version 1.0.5 to 1.0.6
import React from 'react'; | ||
import type { TextDataMap } from './types'; | ||
export { scanText } from './scanText'; | ||
export type { TextData, TextDataMap } from './types'; | ||
export declare const Camera: React.ForwardRefExoticComponent<{ | ||
callback: Function; | ||
callback: (data: TextDataMap) => void; | ||
options: import("./types").TextRecognitionOptions; | ||
} & import("react-native-vision-camera").CameraProps & React.RefAttributes<any>>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import type { Frame, TextRecognitionOptions } from './types'; | ||
export declare function scanText(frame: Frame, options: TextRecognitionOptions): any; | ||
import type { Frame, TextRecognitionOptions, TextDataMap } from './types'; | ||
export declare function scanText(frame: Frame, options: TextRecognitionOptions): TextDataMap; | ||
//# sourceMappingURL=scanText.d.ts.map |
@@ -6,6 +6,28 @@ export type { CameraProps, Frame, FrameProcessorPlugin, FrameProcessor, } from 'react-native-vision-camera'; | ||
} | ||
export type TextData = { | ||
blockFrameBottom: number; | ||
blockFrameLeft: number; | ||
blockFrameRight: number; | ||
blockFrameTop: number; | ||
blockText: string; | ||
elementFrameBottom: number; | ||
elementFrameLeft: number; | ||
elementFrameRight: number; | ||
elementFrameTop: number; | ||
elementText: string; | ||
lineFrameBottom: number; | ||
lineFrameLeft: number; | ||
lineFrameRight: number; | ||
lineFrameTop: number; | ||
lineText: string; | ||
resultText: string; | ||
size: number; | ||
}; | ||
export type TextDataMap = { | ||
[key: number]: TextData; | ||
}; | ||
export type CameraTypes = { | ||
callback: Function; | ||
callback: (data: TextDataMap) => void; | ||
options: TextRecognitionOptions; | ||
} & CameraProps; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "react-native-vision-camera-v3-text-recognition", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "The frame processor plugin for text recognition using Google ML Kit library for react-native-vision-camera with high performance.", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index", |
@@ -5,2 +5,3 @@ import type { | ||
TextRecognitionOptions, | ||
TextDataMap, | ||
} from './types'; | ||
@@ -19,3 +20,6 @@ import { VisionCameraProxy } from 'react-native-vision-camera'; | ||
export function scanText(frame: Frame, options: TextRecognitionOptions): any { | ||
export function scanText( | ||
frame: Frame, | ||
options: TextRecognitionOptions | ||
): TextDataMap { | ||
'worklet'; | ||
@@ -22,0 +26,0 @@ if (plugin == null) throw new Error(LINKING_ERROR); |
@@ -12,5 +12,29 @@ export type { | ||
export type TextData = { | ||
blockFrameBottom: number; | ||
blockFrameLeft: number; | ||
blockFrameRight: number; | ||
blockFrameTop: number; | ||
blockText: string; | ||
elementFrameBottom: number; | ||
elementFrameLeft: number; | ||
elementFrameRight: number; | ||
elementFrameTop: number; | ||
elementText: string; | ||
lineFrameBottom: number; | ||
lineFrameLeft: number; | ||
lineFrameRight: number; | ||
lineFrameTop: number; | ||
lineText: string; | ||
resultText: string; | ||
size: number; | ||
}; | ||
export type TextDataMap = { | ||
[key: number]: TextData; | ||
}; | ||
export type CameraTypes = { | ||
callback: Function; | ||
callback: (data: TextDataMap) => void; | ||
options: TextRecognitionOptions; | ||
} & CameraProps; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40100
246