def recognize_text_in_stream(image, mode, custom_headers:nil)
      response = recognize_text_in_stream_async(image, mode, custom_headers:custom_headers).value!
      nil
    end
def recognize_text_in_stream(image, mode, custom_headers:nil)
      response = recognize_text_in_stream_async(image, mode, custom_headers:custom_headers).value!
      nil
    end
Recognize Text operation. When you use the Recognize Text interface, the
 response contains a field called 'Operation-Location'. The
 'Operation-Location' field contains the URL that you must use for your Get
 Recognize Text Operation Result operation.

 @param image An image stream.
 @param mode [TextRecognitionMode] Type of text to recognize. Possible values
 include: 'Handwritten', 'Printed'
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.