@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ocrapi
@base http://localhost
@version v1
@auth ApiKey Apikey in header
@common_fields {imageFile: any}
@endpoints 20
@toc ocr(20)

@endpoint POST /ocr/image/toText
@optional {recognitionMode: any, language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/image/to/words-with-location
@optional {language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/image/to/lines-with-location
@optional {language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/photo/toText
@optional {recognitionMode: any, language: any}
@returns(200)

@endpoint POST /ocr/photo/to/words-with-location
@optional {recognitionMode: any, language: any, preprocessing: any, diagnostics: any}
@returns(200)

@endpoint POST /ocr/photo/recognize/receipt
@optional {recognitionMode: any, language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/photo/recognize/business-card
@returns(200)

@endpoint POST /ocr/photo/recognize/form
@optional {formTemplateDefinition: map, recognitionMode: any, preprocessing: any, diagnostics: any, language: any}
@returns(200)

@endpoint POST /ocr/photo/recognize/form/advanced
@optional {bucketID: any, bucketSecretKey: any, recognitionMode: any, preprocessing: any, diagnostics: any}
@returns(200)

@endpoint POST /ocr/pdf/toText
@optional {recognitionMode: any, language: any, preprocessing: any}
@returns(200)

@endpoint GET /ocr/pdf/get-job-status
@required {AsyncJobID: any}
@returns(200)

@endpoint POST /ocr/pdf/to/words-with-location
@optional {language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/pdf/to/lines-with-location
@optional {language: any, preprocessing: any}
@returns(200)

@endpoint POST /ocr/preprocessing/image/binarize
@returns(200)

@endpoint POST /ocr/preprocessing/image/binarize/advanced
@returns(200)

@endpoint POST /ocr/preprocessing/image/get-page-angle
@returns(200)

@endpoint POST /ocr/preprocessing/image/unrotate
@returns(200)

@endpoint POST /ocr/preprocessing/image/unrotate/advanced
@returns(200)

@endpoint POST /ocr/preprocessing/image/unskew
@returns(200)

@endpoint POST /ocr/receipts/photo/to/csv
@returns(200)

@end
