public OCR oCRMethod(String language, OCRMethodOptionalParameter oCRMethodOptionalParameter) {
        return oCRMethodWithServiceResponseAsync(language, oCRMethodOptionalParameter).toBlocking().single().body();
    }
public OCR oCRMethod ( String language , OCRMethodOptionalParameter oCRMethodOptionalParameter ) { return oCRMethodWithServiceResponseAsync ( language , oCRMethodOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ; }
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.

@param language Language of the terms.
@param oCRMethodOptionalParameter the object representing the optional parameters to be set before calling this API
@throws IllegalArgumentException thrown if parameters fail the validation
@throws APIErrorException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the OCR object if successful.