def detect_image_with_http_info(project_id, published_name, image_data, application:nil, custom_headers:nil)
      detect_image_async(project_id, published_name, image_data, application:application, custom_headers:custom_headers).value!
    end
def detect_image_with_http_info(project_id, published_name, image_data, application:nil, custom_headers:nil)
      detect_image_async(project_id, published_name, image_data, application:application, custom_headers:custom_headers).value!
    end
Detect objects in an image and saves the result.

 @param project_id The project id.
 @param published_name [String] Specifies the name of the model to evaluate
 against.
 @param image_data Binary image data. Supported formats are JPEG, GIF, PNG,
 and BMP. Supports images up to 4MB.
 @param application [String] Optional. Specifies the name of application using
 the endpoint.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.