I am working with the form parser in google document ai.
when I send the request :
curl -X POST -H "Authorization: Bearer "$(gcloud auth application-default print-access-token)
-H "Content-Type: application/json; charset=utf-8"
-d @request.json https://eu-documentai.googleapis.com/v1beta3/projects/<project id>
/locations/eu/processors/<processor id>:process
I obtain a document with no entity with this structure :
{
"document": {
"uri": "",
"mimeType": "application/pdf",
"text": "Pascal Carrié\nincwo SAS\nx2289475d\nc/ santa isabel, 12, 4D\nN° TVA FR33494952401\n28012 Madrid\n16 rue de La Comète\nIban :\nES76 3023 0047 4866 6328 6612\n75007 Paris\nrib:\nBCOEESMM023\nFRANCE\nFactura nº 2020/02\nFecha\n11/2/20\nConcepto\nPrecio\nCuandidad\nIVA\nImporte\ndéveloppement backend\n4250\n1\n0%\n4,250.00 €\nCondicións de pago : A la recepción de la factura\nBase Imponible\n4,250.00 €\nTotal IVA\n0.00 €\nTOTAL\n4,250.00 €\nForma de pago\nContado\n",
"pages": [
{
"pageNumber": 1,
"dimension": {
"width": 2378,
"height": 1681,
"unit": "pixels"
},
"layout": {
"textAnchor": {
"textSegments": [
{
"endIndex": "431"
}
]
},
"boundingPoly": {
"vertices": [
{},
{ ...
No analysis at all. What am I doing wrong?
When I upload the same document in the demonstration, it works fine.
I don't think it's base64 related; I have coded my document and obtain a string as describe in the doc