The textStyles array from the Document AI response object is empty, despite having set everything up following google's docAI documentation.
I enabled document AI's font-style detection following google's documentation here.
In my server, the request is built as follows
const request: google.cloud.documentai.v1.IProcessRequest | undefined = {
name,
rawDocument: {
content,
mimeType,
},
processOptions: {
ocrConfig: {
premiumFeatures: {
enableMathOcr: true,
computeStyleInfo: true,
}
}
}
};
And the OCR processor is set to v2.0 in the GCP / terminal for doc ai. Unfortunately, when sending images with clear styles (underlines, bolds, etc) the response object still contains no textStyles information (empty array).
response object with empty text styles array
Did I miss a step somewhere?