class Azure::CognitiveServices::VisualSearch::V1_0::Models::CropArea
A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.
Attributes
@return [Float] The bottom coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
@return [Float] The left coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
@return [Float] The right coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
@return [Float] The top coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
Private Class Methods
Mapper for CropArea
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/crop_area.rb, line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CropArea', type: { name: 'Composite', class_name: 'CropArea', model_properties: { top: { client_side_validation: true, required: true, serialized_name: 'top', type: { name: 'Double' } }, bottom: { client_side_validation: true, required: true, serialized_name: 'bottom', type: { name: 'Double' } }, left: { client_side_validation: true, required: true, serialized_name: 'left', type: { name: 'Double' } }, right: { client_side_validation: true, required: true, serialized_name: 'right', type: { name: 'Double' } } } } } end