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 Detail

      • imageContent

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder imageContent​(String 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

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder imageUrl​(String 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
      • region

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder region​(String 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
      • 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

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder serviceKeys​(String 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

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder tagLanguage​(String 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
      • threshold

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder threshold​(float 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

        default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder threshold​(String 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