Perform document analysis
POST {{baseUrl}}/actions/analyzeDocument
Perform different types of image analysis.
Request Body
{"document"=>{"source"=>"OBJECT_STORAGE", "namespaceName"=>"<namespace_name>", "bucketName"=>"<bucket_name>", "objectName"=>"<object_name>"}, "features"=>[{"featureType"=>"TEXT_DETECTION"}, {"featureType"=>"KEY_VALUE_DETECTION"}], "compartmentId"=>"{{compartment_ocid}}", "documentType"=>"INVOICE", "language"=>"CES", "outputLocation"=>{"bucketName"=>"sunt_pariatur_dolor_anim", "namespaceName"=>"loremet", "prefix"=>"laboris qui"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"documentMetadata":{"mimeType":"fugiat","pageCount":33866370},"pages":[{"pageNumber":39649635,"detectedDocumentTypes":[{"confidence":0.742782085397981,"documentType":"cupidatat culpa Ut proident"},{"confidence":0.765457956519553,"documentType":"ad aute est pariatur"}],"detectedLanguages":[{"confidence":0.09128773740308005,"languageCode":"ELL"},{"confidence":0.7923151965180764,"languageCode":"HUN"}],"dimensions":{"height":-97380560.24656539,"unit":"INCH","width":-34253030.91198435},"documentFields":[{"fieldType":"LINE_ITEM_FIELD","fieldValue":{"boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.7049665500867468,"valueType":"STRING","wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"text":"minim tempor"},"fieldLabel":{"name":"cons","confidence":0.4671552299135242},"fieldName":{"name":"ut nostrud Excepteur cillum","boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.5738335717854008,"wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}},{"fieldType":"LINE_ITEM","fieldValue":{"boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.17725074405852181,"valueType":"INTEGER","wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"text":"id sit"},"fieldLabel":{"name":"voluptate nostrud culpa","confidence":0.04951595634759731},"fieldName":{"name":"quis anim nostrud","boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.10069353894546262,"wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}}],"lines":[{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.4606827583789568,"text":"dolore","wordIndexes":[13009772,33952162]},{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.23308514115435264,"text":"culpa ut","wordIndexes":[73790759,83772310]}],"tables":[{"bodyRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"columnCount":45023271,"confidence":0.7568465136234792,"footerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"headerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"rowCount":49742925},{"bodyRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"columnCount":41109552,"confidence":0.881984645146791,"footerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"headerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"rowCount":70563231}],"words":[{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.9973977575799453,"text":"amet incididunt aliqua exercitation"},{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.07929797852851861,"text":"est aliquip minim"}]},{"pageNumber":32256836,"detectedDocumentTypes":[{"confidence":0.43898156597510307,"documentType":"minim aute aliquip nulla"},{"confidence":0.36505838173180005,"documentType":"consectetur irure officia"}],"detectedLanguages":[{"confidence":0.9188803914172712,"languageCode":"ENG"},{"confidence":0.33355997083311206,"languageCode":"SLK"}],"dimensions":{"height":-27089077.790097356,"unit":"INCH","width":-27661084.71597053},"documentFields":[{"fieldType":"LINE_ITEM","fieldValue":{"boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.07696782510232492,"valueType":"NUMBER","wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"text":"culpa et proident occae"},"fieldLabel":{"name":"eu esse reprehenderit in","confidence":0.15280968890920388},"fieldName":{"name":"sed","boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.006088720150796201,"wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}},{"fieldType":"LINE_ITEM","fieldValue":{"boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.28781440540696157,"valueType":"INTEGER","wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"text":"ad consectetur reprehend"},"fieldLabel":{"name":"non","confidence":0.5392047331761329},"fieldName":{"name":"sunt tempor","boundingPolygon":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"confidence":0.6961661078451826,"wordIndexes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}}],"lines":[{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.05949049207432178,"text":"Excepteur voluptate eu qui magna","wordIndexes":[99730822,-71555708]},{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.6977890379134104,"text":"sed qui","wordIndexes":[39054147,-52699969]}],"tables":[{"bodyRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"columnCount":90657581,"confidence":0.45832037148679783,"footerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"headerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"rowCount":95942683},{"bodyRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"columnCount":86117139,"confidence":0.3785852461972812,"footerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"headerRows":[{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"cells":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"rowCount":93647309}],"words":[{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.9763933195897876,"text":"voluptate veniam"},{"boundingPolygon":{"normalizedVertices":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"confidence":0.15410706255204465,"text":"deserunt elit quis"}]}],"detectedDocumentTypes":[{"confidence":0.22209601640588872,"documentType":"cupidatat"},{"confidence":0.02377267586618048,"documentType":"ullamco esse et dolor irure"}],"detectedLanguages":[{"confidence":0.9686223854261133,"languageCode":"NLD"},{"confidence":0.7360862320954453,"languageCode":"ELL"}],"documentClassificationModelVersion":"conse","errors":[{"code":"elit ir","message":"dolor officia"},{"code":"sed ullamco","message":"dolore officia"}],"keyValueDetectionModelVersion":"qui ex","languageClassificationModelVersion":"fugiat","searchablePdf":"SxiCG9FY/LZdz1cjJiJ9Ae==","tableDetectionModelVersion":"nostrud","textDetectionModelVersion":"officia labore pariatur dolor exercitation"}