// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ImageRecognitionShrinkRequest extends $dara.Model { /** * @remarks * The URL of the image to recognize. * * This parameter is required. * * @example * https://fb-es.mrvcdn.com/kf/E6332bde0101849968532c4f08dac757cZ.jpg */ imageUrl?: string; /** * @remarks * The element types to detect on the non-subject area of the image (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types. This parameter and ObjectDetectElements cannot both be empty. * * @example * [1,2,3,4] */ nonObjectDetectElementsShrink?: string; /** * @remarks * The element types to detect on the image subject (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types. * * @example * [1,2,3,4] */ objectDetectElementsShrink?: string; /** * @remarks * Specifies whether to return border pixel information. Valid values: 1 (return) and 0 (do not return). * * @example * 1 */ returnBorderPixel?: number; /** * @remarks * Specifies whether to return text information. Valid values: 1 (return) and 0 (do not return). * * @example * 1 */ returnCharacter?: number; /** * @remarks * Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return). * * @example * 1 */ returnCharacterProp?: number; /** * @remarks * Specifies whether to return the product count. Valid values: 1 (return) and 0 (do not return). * * @example * 1 */ returnProductNum?: number; /** * @remarks * Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return). * * @example * 1 */ returnProductProp?: number; static names(): { [key: string]: string } { return { imageUrl: 'ImageUrl', nonObjectDetectElementsShrink: 'NonObjectDetectElements', objectDetectElementsShrink: 'ObjectDetectElements', returnBorderPixel: 'ReturnBorderPixel', returnCharacter: 'ReturnCharacter', returnCharacterProp: 'ReturnCharacterProp', returnProductNum: 'ReturnProductNum', returnProductProp: 'ReturnProductProp', }; } static types(): { [key: string]: any } { return { imageUrl: 'string', nonObjectDetectElementsShrink: 'string', objectDetectElementsShrink: 'string', returnBorderPixel: 'number', returnCharacter: 'number', returnCharacterProp: 'number', returnProductNum: 'number', returnProductProp: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }