Fix: TextWord.word -> TextWord.text to match SDK's textRecognition.TextWord
This commit is contained in:
parent
7dda953045
commit
b895a370ca
@ -64,7 +64,7 @@ export class OcrAdapter extends BaseAdapter {
|
|||||||
for (const block of data.blocks) {
|
for (const block of data.blocks) {
|
||||||
for (const line of block.lines) {
|
for (const line of block.lines) {
|
||||||
for (let word of line.words) {
|
for (let word of line.words) {
|
||||||
let word1: TextWord = { word: (word as any).text || '' };
|
let word1: TextWord = { text: word.text || '' };
|
||||||
wordsArray.push(word1);
|
wordsArray.push(word1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,7 +347,7 @@ export interface OcrAdapterImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface TextWord {
|
export interface TextWord {
|
||||||
word: string;
|
text: string;
|
||||||
confidence?: number;
|
confidence?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user