Interface ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder

All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
Enclosing interface:
ImageRecognitionEndpointBuilderFactory

public static interface ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Huawei Cloud Image Recognition component.
  • Method Details

    • advanced

    • accessKey

      Access key for the cloud user. The option is a: <code>java.lang.String</code> type. Required: true Group: producer
      Parameters:
      accessKey - the value to set
      Returns:
      the dsl builder
    • endpoint

      Fully qualified Image Recognition service url. Carries higher precedence than region based configuration. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      endpoint - the value to set
      Returns:
      the dsl builder
    • imageContent

      Indicates the Base64 character string converted from the image. The size cannot exceed 10 MB. The image resolution of the narrow sides must be greater than 15 pixels, and that of the wide sides cannot exceed 4096 pixels.The supported image formats include JPG, PNG, and BMP. Configure either this parameter or imageUrl, and this one carries higher precedence than imageUrl. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      imageContent - the value to set
      Returns:
      the dsl builder
    • imageUrl

      Indicates the URL of an image. The options are as follows: HTTP/HTTPS URLs on the public network OBS URLs. To use OBS data, authorization is required, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring the Access Permission of OBS. Configure either this parameter or imageContent, and this one carries lower precedence than imageContent. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      imageUrl - the value to set
      Returns:
      the dsl builder
    • projectId

      Cloud project ID. The option is a: <code>java.lang.String</code> type. Required: true Group: producer
      Parameters:
      projectId - the value to set
      Returns:
      the dsl builder
    • proxyHost

      Proxy server ip/hostname. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      proxyHost - the value to set
      Returns:
      the dsl builder
    • proxyPassword

      Proxy authentication password. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      proxyPassword - the value to set
      Returns:
      the dsl builder
    • proxyPort

      Proxy server port. The option is a: <code>int</code> type. Group: producer
      Parameters:
      proxyPort - the value to set
      Returns:
      the dsl builder
    • proxyPort

      Proxy server port. The option will be converted to a <code>int</code> type. Group: producer
      Parameters:
      proxyPort - the value to set
      Returns:
      the dsl builder
    • proxyUser

      Proxy authentication user. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      proxyUser - the value to set
      Returns:
      the dsl builder
    • region

      Image Recognition service region. Currently only cn-north-1 and cn-north-4 are supported. This is lower precedence than endpoint based configuration. The option is a: <code>java.lang.String</code> type. Required: true Group: producer
      Parameters:
      region - the value to set
      Returns:
      the dsl builder
    • secretKey

      Secret key for the cloud user. The option is a: <code>java.lang.String</code> type. Required: true Group: producer
      Parameters:
      secretKey - the value to set
      Returns:
      the dsl builder
    • serviceKeys

      default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder serviceKeys(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys)
      Configuration object for cloud service authentication. The option is a: <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. Group: producer
      Parameters:
      serviceKeys - the value to set
      Returns:
      the dsl builder
    • serviceKeys

      Configuration object for cloud service authentication. The option will be converted to a <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. Group: producer
      Parameters:
      serviceKeys - the value to set
      Returns:
      the dsl builder
    • tagLanguage

      Indicates the language of the returned tags when the operation is tagRecognition, including zh and en. The option is a: <code>java.lang.String</code> type. Default: zh Group: producer
      Parameters:
      tagLanguage - the value to set
      Returns:
      the dsl builder
    • tagLimit

      Indicates the maximum number of the returned tags when the operation is tagRecognition. The option is a: <code>int</code> type. Default: 50 Group: producer
      Parameters:
      tagLimit - the value to set
      Returns:
      the dsl builder
    • tagLimit

      Indicates the maximum number of the returned tags when the operation is tagRecognition. The option will be converted to a <code>int</code> type. Default: 50 Group: producer
      Parameters:
      tagLimit - the value to set
      Returns:
      the dsl builder
    • threshold

      Indicates the threshold of confidence. When the operation is tagRecognition, this parameter ranges from 0 to 100. Tags whose confidence score is lower than the threshold will not be returned. The default value is 60. When the operation is celebrityRecognition, this parameter ranges from 0 to 1. Labels whose confidence score is lower than the threshold will not be returned. The default value is 0.48. The option is a: <code>float</code> type. Group: producer
      Parameters:
      threshold - the value to set
      Returns:
      the dsl builder
    • threshold

      Indicates the threshold of confidence. When the operation is tagRecognition, this parameter ranges from 0 to 100. Tags whose confidence score is lower than the threshold will not be returned. The default value is 60. When the operation is celebrityRecognition, this parameter ranges from 0 to 1. Labels whose confidence score is lower than the threshold will not be returned. The default value is 0.48. The option will be converted to a <code>float</code> type. Group: producer
      Parameters:
      threshold - the value to set
      Returns:
      the dsl builder
    • ignoreSslVerification

      default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder ignoreSslVerification(boolean ignoreSslVerification)
      Ignore SSL verification. The option is a: <code>boolean</code> type. Default: false Group: security
      Parameters:
      ignoreSslVerification - the value to set
      Returns:
      the dsl builder
    • ignoreSslVerification

      default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder ignoreSslVerification(String ignoreSslVerification)
      Ignore SSL verification. The option will be converted to a <code>boolean</code> type. Default: false Group: security
      Parameters:
      ignoreSslVerification - the value to set
      Returns:
      the dsl builder