oci-aivision 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +1521 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/aiservicevision-waiter.d.ts +60 -0
- package/lib/aiservicevision-waiter.js +112 -0
- package/lib/aiservicevision-waiter.js.map +1 -0
- package/lib/client.d.ts +310 -0
- package/lib/client.js +1688 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/analyze-document-details.d.ts +40 -0
- package/lib/model/analyze-document-details.js +71 -0
- package/lib/model/analyze-document-details.js.map +1 -0
- package/lib/model/analyze-document-result.d.ts +63 -0
- package/lib/model/analyze-document-result.js +97 -0
- package/lib/model/analyze-document-result.js.map +1 -0
- package/lib/model/analyze-image-details.d.ts +31 -0
- package/lib/model/analyze-image-details.js +63 -0
- package/lib/model/analyze-image-details.js.map +1 -0
- package/lib/model/analyze-image-result.d.ts +51 -0
- package/lib/model/analyze-image-result.js +95 -0
- package/lib/model/analyze-image-result.js.map +1 -0
- package/lib/model/bounding-polygon.d.ts +28 -0
- package/lib/model/bounding-polygon.js +61 -0
- package/lib/model/bounding-polygon.js.map +1 -0
- package/lib/model/cell.d.ts +43 -0
- package/lib/model/cell.js +57 -0
- package/lib/model/cell.js.map +1 -0
- package/lib/model/change-model-compartment-details.d.ts +27 -0
- package/lib/model/change-model-compartment-details.js +29 -0
- package/lib/model/change-model-compartment-details.js.map +1 -0
- package/lib/model/change-project-compartment-details.d.ts +27 -0
- package/lib/model/change-project-compartment-details.js +29 -0
- package/lib/model/change-project-compartment-details.js.map +1 -0
- package/lib/model/create-document-job-details.d.ts +48 -0
- package/lib/model/create-document-job-details.js +73 -0
- package/lib/model/create-document-job-details.js.map +1 -0
- package/lib/model/create-image-job-details.d.ts +40 -0
- package/lib/model/create-image-job-details.js +73 -0
- package/lib/model/create-image-job-details.js.map +1 -0
- package/lib/model/create-model-details.d.ts +75 -0
- package/lib/model/create-model-details.js +69 -0
- package/lib/model/create-model-details.js.map +1 -0
- package/lib/model/create-project-details.d.ts +51 -0
- package/lib/model/create-project-details.js +29 -0
- package/lib/model/create-project-details.js.map +1 -0
- package/lib/model/data-science-labeling-dataset.d.ts +28 -0
- package/lib/model/data-science-labeling-dataset.js +52 -0
- package/lib/model/data-science-labeling-dataset.js.map +1 -0
- package/lib/model/dataset.d.ts +22 -0
- package/lib/model/dataset.js +69 -0
- package/lib/model/dataset.js.map +1 -0
- package/lib/model/detected-document-type.d.ts +29 -0
- package/lib/model/detected-document-type.js +29 -0
- package/lib/model/detected-document-type.js.map +1 -0
- package/lib/model/detected-language.d.ts +30 -0
- package/lib/model/detected-language.js +29 -0
- package/lib/model/detected-language.js.map +1 -0
- package/lib/model/dimensions.d.ts +42 -0
- package/lib/model/dimensions.js +39 -0
- package/lib/model/dimensions.js.map +1 -0
- package/lib/model/document-classification-feature.d.ts +32 -0
- package/lib/model/document-classification-feature.js +54 -0
- package/lib/model/document-classification-feature.js.map +1 -0
- package/lib/model/document-details.d.ts +22 -0
- package/lib/model/document-details.js +69 -0
- package/lib/model/document-details.js.map +1 -0
- package/lib/model/document-feature.d.ts +22 -0
- package/lib/model/document-feature.js +81 -0
- package/lib/model/document-feature.js.map +1 -0
- package/lib/model/document-field.d.ts +40 -0
- package/lib/model/document-field.js +75 -0
- package/lib/model/document-field.js.map +1 -0
- package/lib/model/document-job.d.ts +98 -0
- package/lib/model/document-job.js +97 -0
- package/lib/model/document-job.js.map +1 -0
- package/lib/model/document-key-value-detection-feature.d.ts +24 -0
- package/lib/model/document-key-value-detection-feature.js +54 -0
- package/lib/model/document-key-value-detection-feature.js.map +1 -0
- package/lib/model/document-language-classification-feature.d.ts +28 -0
- package/lib/model/document-language-classification-feature.js +54 -0
- package/lib/model/document-language-classification-feature.js.map +1 -0
- package/lib/model/document-language.d.ts +51 -0
- package/lib/model/document-language.js +62 -0
- package/lib/model/document-language.js.map +1 -0
- package/lib/model/document-metadata.d.ts +29 -0
- package/lib/model/document-metadata.js +29 -0
- package/lib/model/document-metadata.js.map +1 -0
- package/lib/model/document-table-detection-feature.d.ts +24 -0
- package/lib/model/document-table-detection-feature.js +54 -0
- package/lib/model/document-table-detection-feature.js.map +1 -0
- package/lib/model/document-text-detection-feature.d.ts +28 -0
- package/lib/model/document-text-detection-feature.js +54 -0
- package/lib/model/document-text-detection-feature.js.map +1 -0
- package/lib/model/document-type.d.ts +36 -0
- package/lib/model/document-type.js +47 -0
- package/lib/model/document-type.js.map +1 -0
- package/lib/model/field-label.d.ts +29 -0
- package/lib/model/field-label.js +29 -0
- package/lib/model/field-label.js.map +1 -0
- package/lib/model/field-name.d.ts +35 -0
- package/lib/model/field-name.js +57 -0
- package/lib/model/field-name.js.map +1 -0
- package/lib/model/field-value.d.ts +36 -0
- package/lib/model/field-value.js +97 -0
- package/lib/model/field-value.js.map +1 -0
- package/lib/model/image-classification-feature.d.ts +32 -0
- package/lib/model/image-classification-feature.js +54 -0
- package/lib/model/image-classification-feature.js.map +1 -0
- package/lib/model/image-details.d.ts +22 -0
- package/lib/model/image-details.js +69 -0
- package/lib/model/image-details.js.map +1 -0
- package/lib/model/image-feature.d.ts +22 -0
- package/lib/model/image-feature.js +73 -0
- package/lib/model/image-feature.js.map +1 -0
- package/lib/model/image-job.d.ts +90 -0
- package/lib/model/image-job.js +97 -0
- package/lib/model/image-job.js.map +1 -0
- package/lib/model/image-object-detection-feature.d.ts +32 -0
- package/lib/model/image-object-detection-feature.js +54 -0
- package/lib/model/image-object-detection-feature.js.map +1 -0
- package/lib/model/image-object.d.ts +31 -0
- package/lib/model/image-object.js +57 -0
- package/lib/model/image-object.js.map +1 -0
- package/lib/model/image-text-detection-feature.d.ts +28 -0
- package/lib/model/image-text-detection-feature.js +54 -0
- package/lib/model/image-text-detection-feature.js.map +1 -0
- package/lib/model/image-text.d.ts +30 -0
- package/lib/model/image-text.js +71 -0
- package/lib/model/image-text.js.map +1 -0
- package/lib/model/index.d.ts +182 -0
- package/lib/model/index.js +206 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/inline-document-details.d.ts +28 -0
- package/lib/model/inline-document-details.js +52 -0
- package/lib/model/inline-document-details.js.map +1 -0
- package/lib/model/inline-image-details.d.ts +28 -0
- package/lib/model/inline-image-details.js +52 -0
- package/lib/model/inline-image-details.js.map +1 -0
- package/lib/model/input-location.d.ts +22 -0
- package/lib/model/input-location.js +65 -0
- package/lib/model/input-location.js.map +1 -0
- package/lib/model/label.d.ts +29 -0
- package/lib/model/label.js +29 -0
- package/lib/model/label.js.map +1 -0
- package/lib/model/line.d.ts +35 -0
- package/lib/model/line.js +57 -0
- package/lib/model/line.js.map +1 -0
- package/lib/model/model-collection.d.ts +26 -0
- package/lib/model/model-collection.js +61 -0
- package/lib/model/model-collection.js.map +1 -0
- package/lib/model/model-summary.d.ts +101 -0
- package/lib/model/model-summary.js +69 -0
- package/lib/model/model-summary.js.map +1 -0
- package/lib/model/model.d.ts +159 -0
- package/lib/model/model.js +93 -0
- package/lib/model/model.js.map +1 -0
- package/lib/model/normalized-vertex.d.ts +32 -0
- package/lib/model/normalized-vertex.js +29 -0
- package/lib/model/normalized-vertex.js.map +1 -0
- package/lib/model/object-list-inline-input-location.d.ts +28 -0
- package/lib/model/object-list-inline-input-location.js +66 -0
- package/lib/model/object-list-inline-input-location.js.map +1 -0
- package/lib/model/object-location.d.ts +33 -0
- package/lib/model/object-location.js +29 -0
- package/lib/model/object-location.js.map +1 -0
- package/lib/model/object-storage-dataset.d.ts +36 -0
- package/lib/model/object-storage-dataset.js +52 -0
- package/lib/model/object-storage-dataset.js.map +1 -0
- package/lib/model/object-storage-document-details.d.ts +36 -0
- package/lib/model/object-storage-document-details.js +54 -0
- package/lib/model/object-storage-document-details.js.map +1 -0
- package/lib/model/object-storage-image-details.d.ts +36 -0
- package/lib/model/object-storage-image-details.js +54 -0
- package/lib/model/object-storage-image-details.js.map +1 -0
- package/lib/model/ontology-class.d.ts +33 -0
- package/lib/model/ontology-class.js +29 -0
- package/lib/model/ontology-class.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +34 -0
- package/lib/model/operation-type.js +45 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/output-location.d.ts +33 -0
- package/lib/model/output-location.js +29 -0
- package/lib/model/output-location.js.map +1 -0
- package/lib/model/page.d.ts +51 -0
- package/lib/model/page.js +115 -0
- package/lib/model/page.js.map +1 -0
- package/lib/model/processing-error.d.ts +29 -0
- package/lib/model/processing-error.js +29 -0
- package/lib/model/processing-error.js.map +1 -0
- package/lib/model/project-collection.d.ts +26 -0
- package/lib/model/project-collection.js +61 -0
- package/lib/model/project-collection.js.map +1 -0
- package/lib/model/project-summary.d.ts +77 -0
- package/lib/model/project-summary.js +29 -0
- package/lib/model/project-summary.js.map +1 -0
- package/lib/model/project.d.ts +94 -0
- package/lib/model/project.js +43 -0
- package/lib/model/project.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/table-row.d.ts +26 -0
- package/lib/model/table-row.js +61 -0
- package/lib/model/table-row.js.map +1 -0
- package/lib/model/table.d.ts +47 -0
- package/lib/model/table.js +87 -0
- package/lib/model/table.js.map +1 -0
- package/lib/model/update-model-details.d.ts +47 -0
- package/lib/model/update-model-details.js +29 -0
- package/lib/model/update-model-details.js.map +1 -0
- package/lib/model/update-project-details.d.ts +47 -0
- package/lib/model/update-project-details.js +29 -0
- package/lib/model/update-project-details.js.map +1 -0
- package/lib/model/value-array.d.ts +25 -0
- package/lib/model/value-array.js +62 -0
- package/lib/model/value-array.js.map +1 -0
- package/lib/model/value-date.d.ts +28 -0
- package/lib/model/value-date.js +50 -0
- package/lib/model/value-date.js.map +1 -0
- package/lib/model/value-integer.d.ts +28 -0
- package/lib/model/value-integer.js +50 -0
- package/lib/model/value-integer.js.map +1 -0
- package/lib/model/value-number.d.ts +28 -0
- package/lib/model/value-number.js +50 -0
- package/lib/model/value-number.js.map +1 -0
- package/lib/model/value-phone-number.d.ts +28 -0
- package/lib/model/value-phone-number.js +52 -0
- package/lib/model/value-phone-number.js.map +1 -0
- package/lib/model/value-string.d.ts +28 -0
- package/lib/model/value-string.js +50 -0
- package/lib/model/value-string.js.map +1 -0
- package/lib/model/value-time.d.ts +28 -0
- package/lib/model/value-time.js +50 -0
- package/lib/model/value-time.js.map +1 -0
- package/lib/model/word.d.ts +31 -0
- package/lib/model/word.js +57 -0
- package/lib/model/word.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +42 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +67 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +65 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/analyze-document-request.d.ts +27 -0
- package/lib/request/analyze-document-request.js +15 -0
- package/lib/request/analyze-document-request.js.map +1 -0
- package/lib/request/analyze-image-request.d.ts +27 -0
- package/lib/request/analyze-image-request.js +15 -0
- package/lib/request/analyze-image-request.js.map +1 -0
- package/lib/request/cancel-document-job-request.d.ts +35 -0
- package/lib/request/cancel-document-job-request.js +15 -0
- package/lib/request/cancel-document-job-request.js.map +1 -0
- package/lib/request/cancel-image-job-request.d.ts +35 -0
- package/lib/request/cancel-image-job-request.js +15 -0
- package/lib/request/cancel-image-job-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-model-compartment-request.d.ts +40 -0
- package/lib/request/change-model-compartment-request.js +15 -0
- package/lib/request/change-model-compartment-request.js.map +1 -0
- package/lib/request/change-project-compartment-request.d.ts +40 -0
- package/lib/request/change-project-compartment-request.js +15 -0
- package/lib/request/change-project-compartment-request.js.map +1 -0
- package/lib/request/create-document-job-request.d.ts +36 -0
- package/lib/request/create-document-job-request.js +15 -0
- package/lib/request/create-document-job-request.js.map +1 -0
- package/lib/request/create-image-job-request.d.ts +36 -0
- package/lib/request/create-image-job-request.js +15 -0
- package/lib/request/create-image-job-request.js.map +1 -0
- package/lib/request/create-model-request.d.ts +36 -0
- package/lib/request/create-model-request.js +15 -0
- package/lib/request/create-model-request.js.map +1 -0
- package/lib/request/create-project-request.d.ts +36 -0
- package/lib/request/create-project-request.js +15 -0
- package/lib/request/create-project-request.js.map +1 -0
- package/lib/request/delete-model-request.d.ts +35 -0
- package/lib/request/delete-model-request.js +15 -0
- package/lib/request/delete-model-request.js.map +1 -0
- package/lib/request/delete-project-request.d.ts +35 -0
- package/lib/request/delete-project-request.js +15 -0
- package/lib/request/delete-project-request.js.map +1 -0
- package/lib/request/get-document-job-request.d.ts +26 -0
- package/lib/request/get-document-job-request.js +15 -0
- package/lib/request/get-document-job-request.js.map +1 -0
- package/lib/request/get-image-job-request.d.ts +26 -0
- package/lib/request/get-image-job-request.js +15 -0
- package/lib/request/get-image-job-request.js.map +1 -0
- package/lib/request/get-model-request.d.ts +26 -0
- package/lib/request/get-model-request.js +15 -0
- package/lib/request/get-model-request.js.map +1 -0
- package/lib/request/get-project-request.d.ts +26 -0
- package/lib/request/get-project-request.js +15 -0
- package/lib/request/get-project-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +62 -0
- package/lib/request/index.js +45 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-models-request.d.ts +66 -0
- package/lib/request/list-models-request.js +24 -0
- package/lib/request/list-models-request.js.map +1 -0
- package/lib/request/list-projects-request.d.ts +62 -0
- package/lib/request/list-projects-request.js +24 -0
- package/lib/request/list-projects-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-model-request.d.ts +40 -0
- package/lib/request/update-model-request.js +15 -0
- package/lib/request/update-model-request.js.map +1 -0
- package/lib/request/update-project-request.d.ts +40 -0
- package/lib/request/update-project-request.js +15 -0
- package/lib/request/update-project-request.js.map +1 -0
- package/lib/response/analyze-document-response.d.ts +30 -0
- package/lib/response/analyze-document-response.js +15 -0
- package/lib/response/analyze-document-response.js.map +1 -0
- package/lib/response/analyze-image-response.d.ts +30 -0
- package/lib/response/analyze-image-response.js +15 -0
- package/lib/response/analyze-image-response.js.map +1 -0
- package/lib/response/cancel-document-job-response.d.ts +20 -0
- package/lib/response/cancel-document-job-response.js +15 -0
- package/lib/response/cancel-document-job-response.js.map +1 -0
- package/lib/response/cancel-image-job-response.d.ts +20 -0
- package/lib/response/cancel-image-job-response.js +15 -0
- package/lib/response/cancel-image-job-response.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-model-compartment-response.d.ts +20 -0
- package/lib/response/change-model-compartment-response.js +15 -0
- package/lib/response/change-model-compartment-response.js.map +1 -0
- package/lib/response/change-project-compartment-response.d.ts +20 -0
- package/lib/response/change-project-compartment-response.js +15 -0
- package/lib/response/change-project-compartment-response.js.map +1 -0
- package/lib/response/create-document-job-response.d.ts +30 -0
- package/lib/response/create-document-job-response.js +15 -0
- package/lib/response/create-document-job-response.js.map +1 -0
- package/lib/response/create-image-job-response.d.ts +30 -0
- package/lib/response/create-image-job-response.js +15 -0
- package/lib/response/create-image-job-response.js.map +1 -0
- package/lib/response/create-model-response.d.ts +35 -0
- package/lib/response/create-model-response.js +15 -0
- package/lib/response/create-model-response.js.map +1 -0
- package/lib/response/create-project-response.d.ts +35 -0
- package/lib/response/create-project-response.js +15 -0
- package/lib/response/create-project-response.js.map +1 -0
- package/lib/response/delete-model-response.d.ts +25 -0
- package/lib/response/delete-model-response.js +15 -0
- package/lib/response/delete-model-response.js.map +1 -0
- package/lib/response/delete-project-response.d.ts +25 -0
- package/lib/response/delete-project-response.js +15 -0
- package/lib/response/delete-project-response.js.map +1 -0
- package/lib/response/get-document-job-response.d.ts +30 -0
- package/lib/response/get-document-job-response.js +15 -0
- package/lib/response/get-document-job-response.js.map +1 -0
- package/lib/response/get-image-job-response.d.ts +30 -0
- package/lib/response/get-image-job-response.js +15 -0
- package/lib/response/get-image-job-response.js.map +1 -0
- package/lib/response/get-model-response.d.ts +30 -0
- package/lib/response/get-model-response.js +15 -0
- package/lib/response/get-model-response.js.map +1 -0
- package/lib/response/get-project-response.d.ts +30 -0
- package/lib/response/get-project-response.js +15 -0
- package/lib/response/get-project-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +62 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-models-response.d.ts +32 -0
- package/lib/response/list-models-response.js +15 -0
- package/lib/response/list-models-response.js.map +1 -0
- package/lib/response/list-projects-response.d.ts +32 -0
- package/lib/response/list-projects-response.js +15 -0
- package/lib/response/list-projects-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-model-response.d.ts +25 -0
- package/lib/response/update-model-response.js +15 -0
- package/lib/response/update-model-response.js.map +1 -0
- package/lib/response/update-project-response.d.ts +25 -0
- package/lib/response/update-project-response.js +15 -0
- package/lib/response/update-project-response.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageFeature;
|
|
37
|
+
(function (ImageFeature) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
40
|
+
if ("featureType" in obj && obj.featureType) {
|
|
41
|
+
switch (obj.featureType) {
|
|
42
|
+
case "TEXT_DETECTION":
|
|
43
|
+
return model.ImageTextDetectionFeature.getJsonObj(jsonObj, true);
|
|
44
|
+
case "OBJECT_DETECTION":
|
|
45
|
+
return model.ImageObjectDetectionFeature.getJsonObj(jsonObj, true);
|
|
46
|
+
case "IMAGE_CLASSIFICATION":
|
|
47
|
+
return model.ImageClassificationFeature.getJsonObj(jsonObj, true);
|
|
48
|
+
default:
|
|
49
|
+
throw Error("Unknown value for: " + obj.featureType);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
ImageFeature.getJsonObj = getJsonObj;
|
|
55
|
+
function getDeserializedJsonObj(obj) {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
57
|
+
if ("featureType" in obj && obj.featureType) {
|
|
58
|
+
switch (obj.featureType) {
|
|
59
|
+
case "TEXT_DETECTION":
|
|
60
|
+
return model.ImageTextDetectionFeature.getDeserializedJsonObj(jsonObj, true);
|
|
61
|
+
case "OBJECT_DETECTION":
|
|
62
|
+
return model.ImageObjectDetectionFeature.getDeserializedJsonObj(jsonObj, true);
|
|
63
|
+
case "IMAGE_CLASSIFICATION":
|
|
64
|
+
return model.ImageClassificationFeature.getDeserializedJsonObj(jsonObj, true);
|
|
65
|
+
default:
|
|
66
|
+
throw Error("Unknown value for: " + obj.featureType);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return jsonObj;
|
|
70
|
+
}
|
|
71
|
+
ImageFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
72
|
+
})(ImageFeature = exports.ImageFeature || (exports.ImageFeature = {}));
|
|
73
|
+
//# sourceMappingURL=image-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-feature.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,YAAY,CAqD5B;AArDD,WAAiB,YAAY;IAC3B,SAAgB,UAAU,CAAC,GAAiB;QAC1C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAC3C,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,gBAAgB;oBACnB,OAAO,KAAK,CAAC,yBAAyB,CAAC,UAAU,CACL,OAAQ,EAClD,IAAI,CACL,CAAC;gBACJ,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,sBAAsB;oBACzB,OAAO,KAAK,CAAC,0BAA0B,CAAC,UAAU,CACL,OAAQ,EACnD,IAAI,CACL,CAAC;gBACJ;oBACE,MAAM,KAAK,CAAC,qBAAqB,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC;aACxD;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,uBAAU,aAyBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAiB;QACtD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAC3C,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,gBAAgB;oBACnB,OAAO,KAAK,CAAC,yBAAyB,CAAC,sBAAsB,CACjB,OAAQ,EAClD,IAAI,CACL,CAAC;gBACJ,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,sBAAsB;oBACzB,OAAO,KAAK,CAAC,0BAA0B,CAAC,sBAAsB,CACjB,OAAQ,EACnD,IAAI,CACL,CAAC;gBACJ;oBACE,MAAM,KAAK,CAAC,qBAAqB,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC;aACxD;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,mCAAsB,yBAyBrC,CAAA;AACH,CAAC,EArDgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAqD5B"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisionService API
|
|
3
|
+
* A description of the VisionService API.
|
|
4
|
+
* OpenAPI spec version: 20220125
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Job details for a batch image analysis.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageJob {
|
|
18
|
+
/**
|
|
19
|
+
* Job id
|
|
20
|
+
*/
|
|
21
|
+
"id": string;
|
|
22
|
+
/**
|
|
23
|
+
* The OCID of the compartment that starts the job.
|
|
24
|
+
*/
|
|
25
|
+
"compartmentId": string;
|
|
26
|
+
/**
|
|
27
|
+
* Image job display name.
|
|
28
|
+
*/
|
|
29
|
+
"displayName"?: string;
|
|
30
|
+
/**
|
|
31
|
+
* List of document analysis types requested.
|
|
32
|
+
*/
|
|
33
|
+
"features": Array<model.ImageFeature>;
|
|
34
|
+
"inputLocation"?: model.ObjectListInlineInputLocation;
|
|
35
|
+
/**
|
|
36
|
+
* Job accepted time.
|
|
37
|
+
*/
|
|
38
|
+
"timeAccepted": Date;
|
|
39
|
+
/**
|
|
40
|
+
* Job started time.
|
|
41
|
+
*/
|
|
42
|
+
"timeStarted"?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* Job finished time.
|
|
45
|
+
*/
|
|
46
|
+
"timeFinished"?: Date;
|
|
47
|
+
/**
|
|
48
|
+
* How much progress the operation has made, vs the total amount of work that must be performed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
49
|
+
*/
|
|
50
|
+
"percentComplete"?: number;
|
|
51
|
+
"outputLocation": model.OutputLocation;
|
|
52
|
+
/**
|
|
53
|
+
* The current state of the batch image job.
|
|
54
|
+
*/
|
|
55
|
+
"lifecycleState": ImageJob.LifecycleState;
|
|
56
|
+
/**
|
|
57
|
+
* Detailed status of FAILED state.
|
|
58
|
+
*/
|
|
59
|
+
"lifecycleDetails"?: ImageJob.LifecycleDetails;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to generate a Zip file containing the results.
|
|
62
|
+
*/
|
|
63
|
+
"isZipOutputEnabled"?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace ImageJob {
|
|
66
|
+
enum LifecycleState {
|
|
67
|
+
Succeeded = "SUCCEEDED",
|
|
68
|
+
Failed = "FAILED",
|
|
69
|
+
Accepted = "ACCEPTED",
|
|
70
|
+
Canceled = "CANCELED",
|
|
71
|
+
InProgress = "IN_PROGRESS",
|
|
72
|
+
Canceling = "CANCELING",
|
|
73
|
+
/**
|
|
74
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
75
|
+
* version of the SDK.
|
|
76
|
+
*/
|
|
77
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
78
|
+
}
|
|
79
|
+
enum LifecycleDetails {
|
|
80
|
+
PartiallySucceeded = "PARTIALLY_SUCCEEDED",
|
|
81
|
+
CompletelyFailed = "COMPLETELY_FAILED",
|
|
82
|
+
/**
|
|
83
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
84
|
+
* version of the SDK.
|
|
85
|
+
*/
|
|
86
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
87
|
+
}
|
|
88
|
+
function getJsonObj(obj: ImageJob): object;
|
|
89
|
+
function getDeserializedJsonObj(obj: ImageJob): object;
|
|
90
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageJob = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageJob;
|
|
37
|
+
(function (ImageJob) {
|
|
38
|
+
let LifecycleState;
|
|
39
|
+
(function (LifecycleState) {
|
|
40
|
+
LifecycleState["Succeeded"] = "SUCCEEDED";
|
|
41
|
+
LifecycleState["Failed"] = "FAILED";
|
|
42
|
+
LifecycleState["Accepted"] = "ACCEPTED";
|
|
43
|
+
LifecycleState["Canceled"] = "CANCELED";
|
|
44
|
+
LifecycleState["InProgress"] = "IN_PROGRESS";
|
|
45
|
+
LifecycleState["Canceling"] = "CANCELING";
|
|
46
|
+
/**
|
|
47
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
48
|
+
* version of the SDK.
|
|
49
|
+
*/
|
|
50
|
+
LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
|
|
51
|
+
})(LifecycleState = ImageJob.LifecycleState || (ImageJob.LifecycleState = {}));
|
|
52
|
+
let LifecycleDetails;
|
|
53
|
+
(function (LifecycleDetails) {
|
|
54
|
+
LifecycleDetails["PartiallySucceeded"] = "PARTIALLY_SUCCEEDED";
|
|
55
|
+
LifecycleDetails["CompletelyFailed"] = "COMPLETELY_FAILED";
|
|
56
|
+
/**
|
|
57
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
58
|
+
* version of the SDK.
|
|
59
|
+
*/
|
|
60
|
+
LifecycleDetails["UnknownValue"] = "UNKNOWN_VALUE";
|
|
61
|
+
})(LifecycleDetails = ImageJob.LifecycleDetails || (ImageJob.LifecycleDetails = {}));
|
|
62
|
+
function getJsonObj(obj) {
|
|
63
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
64
|
+
"features": obj.features
|
|
65
|
+
? obj.features.map(item => {
|
|
66
|
+
return model.ImageFeature.getJsonObj(item);
|
|
67
|
+
})
|
|
68
|
+
: undefined,
|
|
69
|
+
"inputLocation": obj.inputLocation
|
|
70
|
+
? model.InputLocation.getJsonObj(obj.inputLocation)
|
|
71
|
+
: undefined,
|
|
72
|
+
"outputLocation": obj.outputLocation
|
|
73
|
+
? model.OutputLocation.getJsonObj(obj.outputLocation)
|
|
74
|
+
: undefined
|
|
75
|
+
});
|
|
76
|
+
return jsonObj;
|
|
77
|
+
}
|
|
78
|
+
ImageJob.getJsonObj = getJsonObj;
|
|
79
|
+
function getDeserializedJsonObj(obj) {
|
|
80
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
81
|
+
"features": obj.features
|
|
82
|
+
? obj.features.map(item => {
|
|
83
|
+
return model.ImageFeature.getDeserializedJsonObj(item);
|
|
84
|
+
})
|
|
85
|
+
: undefined,
|
|
86
|
+
"inputLocation": obj.inputLocation
|
|
87
|
+
? model.InputLocation.getDeserializedJsonObj(obj.inputLocation)
|
|
88
|
+
: undefined,
|
|
89
|
+
"outputLocation": obj.outputLocation
|
|
90
|
+
? model.OutputLocation.getDeserializedJsonObj(obj.outputLocation)
|
|
91
|
+
: undefined
|
|
92
|
+
});
|
|
93
|
+
return jsonObj;
|
|
94
|
+
}
|
|
95
|
+
ImageJob.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
96
|
+
})(ImageJob = exports.ImageJob || (exports.ImageJob = {}));
|
|
97
|
+
//# sourceMappingURL=image-job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-job.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-job.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuDlC,IAAiB,QAAQ,CAmExB;AAnED,WAAiB,QAAQ;IACvB,IAAY,cAYX;IAZD,WAAY,cAAc;QACxB,yCAAuB,CAAA;QACvB,mCAAiB,CAAA;QACjB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,4CAA0B,CAAA;QAC1B,yCAAuB,CAAA;QACvB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAZW,cAAc,GAAd,uBAAc,KAAd,uBAAc,QAYzB;IAED,IAAY,gBAQX;IARD,WAAY,gBAAgB;QAC1B,8DAA0C,CAAA;QAC1C,0DAAsC,CAAA;QACtC;;;WAGG;QACH,kDAA8B,CAAA;IAChC,CAAC,EARW,gBAAgB,GAAhB,yBAAgB,KAAhB,yBAAgB,QAQ3B;IAED,SAAgB,UAAU,CAAC,GAAa;QACtC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ;gBACtB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtB,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;gBACnD,CAAC,CAAC,SAAS;YAEb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACrD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,mBAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAa;QAClD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,UAAU,EAAE,GAAG,CAAC,QAAQ;gBACtB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtB,OAAO,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACzD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;gBAC/D,CAAC,CAAC,SAAS;YAEb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,+BAAsB,yBAoBrC,CAAA;AACH,CAAC,EAnEgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAmExB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisionService API
|
|
3
|
+
* A description of the VisionService API.
|
|
4
|
+
* OpenAPI spec version: 20220125
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Object detection parameters.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageObjectDetectionFeature extends model.ImageFeature {
|
|
18
|
+
/**
|
|
19
|
+
* The maximum number of results to return. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
20
|
+
*/
|
|
21
|
+
"maxResults"?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Custom model id.
|
|
24
|
+
*/
|
|
25
|
+
"modelId"?: string;
|
|
26
|
+
"featureType": string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace ImageObjectDetectionFeature {
|
|
29
|
+
function getJsonObj(obj: ImageObjectDetectionFeature, isParentJsonObj?: boolean): object;
|
|
30
|
+
const featureType = "OBJECT_DETECTION";
|
|
31
|
+
function getDeserializedJsonObj(obj: ImageObjectDetectionFeature, isParentJsonObj?: boolean): object;
|
|
32
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageObjectDetectionFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageObjectDetectionFeature;
|
|
37
|
+
(function (ImageObjectDetectionFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.ImageFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
ImageObjectDetectionFeature.getJsonObj = getJsonObj;
|
|
45
|
+
ImageObjectDetectionFeature.featureType = "OBJECT_DETECTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.ImageFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
ImageObjectDetectionFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(ImageObjectDetectionFeature = exports.ImageObjectDetectionFeature || (exports.ImageObjectDetectionFeature = {}));
|
|
54
|
+
//# sourceMappingURL=image-object-detection-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-object-detection-feature.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-object-detection-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmBlC,IAAiB,2BAA2B,CAyB3C;AAzBD,WAAiB,2BAA2B;IAC1C,SAAgB,UAAU,CAAC,GAAgC,EAAE,eAAyB;QACpF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAiC,CAAC,GACrE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,sCAAU,aASzB,CAAA;IACY,uCAAW,GAAG,kBAAkB,CAAC;IAC9C,SAAgB,sBAAsB,CACpC,GAAgC,EAChC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,CAAiC,CAAC,GACjF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,kDAAsB,yBAYrC,CAAA;AACH,CAAC,EAzBgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAyB3C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisionService API
|
|
3
|
+
* A description of the VisionService API.
|
|
4
|
+
* OpenAPI spec version: 20220125
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Detected object in image.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageObject {
|
|
18
|
+
/**
|
|
19
|
+
* Object category name. Every value returned by the pre-deployed model will be in English.
|
|
20
|
+
*/
|
|
21
|
+
"name": string;
|
|
22
|
+
/**
|
|
23
|
+
* Confidence score between 0 to 1. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
24
|
+
*/
|
|
25
|
+
"confidence": number;
|
|
26
|
+
"boundingPolygon": model.BoundingPolygon;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace ImageObject {
|
|
29
|
+
function getJsonObj(obj: ImageObject): object;
|
|
30
|
+
function getDeserializedJsonObj(obj: ImageObject): object;
|
|
31
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageObject = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageObject;
|
|
37
|
+
(function (ImageObject) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"boundingPolygon": obj.boundingPolygon
|
|
41
|
+
? model.BoundingPolygon.getJsonObj(obj.boundingPolygon)
|
|
42
|
+
: undefined
|
|
43
|
+
});
|
|
44
|
+
return jsonObj;
|
|
45
|
+
}
|
|
46
|
+
ImageObject.getJsonObj = getJsonObj;
|
|
47
|
+
function getDeserializedJsonObj(obj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
49
|
+
"boundingPolygon": obj.boundingPolygon
|
|
50
|
+
? model.BoundingPolygon.getDeserializedJsonObj(obj.boundingPolygon)
|
|
51
|
+
: undefined
|
|
52
|
+
});
|
|
53
|
+
return jsonObj;
|
|
54
|
+
}
|
|
55
|
+
ImageObject.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
56
|
+
})(ImageObject = exports.ImageObject || (exports.ImageObject = {}));
|
|
57
|
+
//# sourceMappingURL=image-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-object.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-object.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkBlC,IAAiB,WAAW,CAyB3B;AAzBD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,iBAAiB,EAAE,GAAG,CAAC,eAAe;gBACpC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC;gBACvD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,sBAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,iBAAiB,EAAE,GAAG,CAAC,eAAe;gBACpC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,eAAe,CAAC;gBACnE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,kCAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAyB3B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisionService API
|
|
3
|
+
* A description of the VisionService API.
|
|
4
|
+
* OpenAPI spec version: 20220125
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Text detection parameters.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageTextDetectionFeature extends model.ImageFeature {
|
|
18
|
+
/**
|
|
19
|
+
* Language of the document image, abbreviated according to ISO 639-2.
|
|
20
|
+
*/
|
|
21
|
+
"language"?: model.DocumentLanguage;
|
|
22
|
+
"featureType": string;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace ImageTextDetectionFeature {
|
|
25
|
+
function getJsonObj(obj: ImageTextDetectionFeature, isParentJsonObj?: boolean): object;
|
|
26
|
+
const featureType = "TEXT_DETECTION";
|
|
27
|
+
function getDeserializedJsonObj(obj: ImageTextDetectionFeature, isParentJsonObj?: boolean): object;
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageTextDetectionFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageTextDetectionFeature;
|
|
37
|
+
(function (ImageTextDetectionFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.ImageFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
ImageTextDetectionFeature.getJsonObj = getJsonObj;
|
|
45
|
+
ImageTextDetectionFeature.featureType = "TEXT_DETECTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.ImageFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
ImageTextDetectionFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(ImageTextDetectionFeature = exports.ImageTextDetectionFeature || (exports.ImageTextDetectionFeature = {}));
|
|
54
|
+
//# sourceMappingURL=image-text-detection-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-text-detection-feature.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-text-detection-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAelC,IAAiB,yBAAyB,CAyBzC;AAzBD,WAAiB,yBAAyB;IACxC,SAAgB,UAAU,CAAC,GAA8B,EAAE,eAAyB;QAClF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAA+B,CAAC,GACnE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,oCAAU,aASzB,CAAA;IACY,qCAAW,GAAG,gBAAgB,CAAC;IAC5C,SAAgB,sBAAsB,CACpC,GAA8B,EAC9B,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,CAA+B,CAAC,GAC/E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,gDAAsB,yBAYrC,CAAA;AACH,CAAC,EAzBgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAyBzC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisionService API
|
|
3
|
+
* A description of the VisionService API.
|
|
4
|
+
* OpenAPI spec version: 20220125
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Detected text.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageText {
|
|
18
|
+
/**
|
|
19
|
+
* Words recognized in the image.
|
|
20
|
+
*/
|
|
21
|
+
"words": Array<model.Word>;
|
|
22
|
+
/**
|
|
23
|
+
* Lines of text recognized in the image.
|
|
24
|
+
*/
|
|
25
|
+
"lines": Array<model.Line>;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace ImageText {
|
|
28
|
+
function getJsonObj(obj: ImageText): object;
|
|
29
|
+
function getDeserializedJsonObj(obj: ImageText): object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* VisionService API
|
|
4
|
+
* A description of the VisionService API.
|
|
5
|
+
* OpenAPI spec version: 20220125
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.ImageText = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var ImageText;
|
|
37
|
+
(function (ImageText) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"words": obj.words
|
|
41
|
+
? obj.words.map(item => {
|
|
42
|
+
return model.Word.getJsonObj(item);
|
|
43
|
+
})
|
|
44
|
+
: undefined,
|
|
45
|
+
"lines": obj.lines
|
|
46
|
+
? obj.lines.map(item => {
|
|
47
|
+
return model.Line.getJsonObj(item);
|
|
48
|
+
})
|
|
49
|
+
: undefined
|
|
50
|
+
});
|
|
51
|
+
return jsonObj;
|
|
52
|
+
}
|
|
53
|
+
ImageText.getJsonObj = getJsonObj;
|
|
54
|
+
function getDeserializedJsonObj(obj) {
|
|
55
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
56
|
+
"words": obj.words
|
|
57
|
+
? obj.words.map(item => {
|
|
58
|
+
return model.Word.getDeserializedJsonObj(item);
|
|
59
|
+
})
|
|
60
|
+
: undefined,
|
|
61
|
+
"lines": obj.lines
|
|
62
|
+
? obj.lines.map(item => {
|
|
63
|
+
return model.Line.getDeserializedJsonObj(item);
|
|
64
|
+
})
|
|
65
|
+
: undefined
|
|
66
|
+
});
|
|
67
|
+
return jsonObj;
|
|
68
|
+
}
|
|
69
|
+
ImageText.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
70
|
+
})(ImageText = exports.ImageText || (exports.ImageText = {}));
|
|
71
|
+
//# sourceMappingURL=image-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-text.js","sourceRoot":"","sources":["../../../../../lib/aivision/lib/model/image-text.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,SAAS,CAuCzB;AAvCD,WAAiB,SAAS;IACxB,SAAgB,UAAU,CAAC,GAAc;QACvC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACrC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACrC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,oBAAU,aAkBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAc;QACnD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACjD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACjD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,gCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAvCgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAuCzB"}
|