def detect_objects_in_stream(image, custom_headers:nil)
      response = detect_objects_in_stream_async(image, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def detect_objects_in_stream(image, custom_headers:nil)
      response = detect_objects_in_stream_async(image, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Performs object detection on the specified image.
 Two input methods are supported -- (1) Uploading an image or (2) specifying
 an image URL.
 A successful response will be returned in JSON. If the request failed, the
 response will contain an error code and a message to help understand what
 went wrong.

 @param image An image stream.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [DetectResult] operation results.