IRPCScanningAndOCR.OCROperation_BeginAfterUpload

View as Markdown

Vault API / standard write session idempotent returns metadata structure version

Starts an OCR job on a file that the caller uploaded with UploadTempFile.

ServiceScanning and OCR MFiles.IRPCScanningAndOCR
gRPC method/MFiles.IRPCScanningAndOCR/OCROperation_BeginAfterUpload
HTTP (mf-http-grpc)POST /grpc/v1/ocroperation_-begin-after-upload
RequestOCROperation_BeginAfterUploadRequest
ResponseOCROperation_BeginAfterUploadResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Request: OCROperation_BeginAfterUploadRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
typeOCROperationTypeWhat to produce. See the service overview.Values: OCROPERATION_TYPE_NONE (0), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF (1), OCROPERATION_TYPE_RECOGNIZE_SPECIFIC_BLOCKS (2), OCROPERATION_TYPE_RECOGNIZE_ANY_BLOCKS (3), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS (4), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_ANY_BLOCKS (5), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF (6), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS (7), OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_ANY_BLOCKS (8).
optionsOCROptionsRecognition languages and automatic language detection. Unset uses the defaults.
options.languages[]repeated OCRLanguageTypeLanguages/character sets/dictionaries to be used as recognition hints. Can be unset.
options.ocr_automatic_language_detectionboolTrue if the OCR automatic language detection is to be used.
upload_sessionint32The upload_id of an uploaded, not committed file.
upload_file_sizeint64The size of the uploaded file in bytes; must match the uploaded bytes.
source_file_extensionstringThe file name extension of the uploaded file, without the dot, for example pdf or tif.
pagesOCRPageArrayFor ..._RECOGNIZE_SPECIFIC_BLOCKS types, the areas to recognize, per page. Otherwise leave unset.
pages.value[]repeated OCRPageAn array of OCR pages, should be ordered by the page number.
pages.value[].numberuint32Page number of this page.
pages.value[].blocks[]repeated OCRBlockAn array of OCR blocks.

Response: OCROperation_BeginAfterUploadResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
background_op_iduint32The ID of the job.