Fix: TextWord uses 'value' not 'text' to match SDK TextRecognitionResult
This commit is contained in:
parent
b895a370ca
commit
a19d3f8ed4
@ -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 = { text: word.text || '' };
|
let word1: TextWord = { value: word.value || '' };
|
||||||
wordsArray.push(word1);
|
wordsArray.push(word1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,7 +347,7 @@ export interface OcrAdapterImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface TextWord {
|
export interface TextWord {
|
||||||
text: string;
|
value: string;
|
||||||
confidence?: number;
|
confidence?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user