diff --git a/lib/scale/api/tasks/image_recognition.rb b/lib/scale/api/tasks/image_recognition.rb index 61fe343..dabdb7d 100644 --- a/lib/scale/api/tasks/image_recognition.rb +++ b/lib/scale/api/tasks/image_recognition.rb @@ -7,7 +7,7 @@ class Tasks class ImageRecognition < Scale::Api::Tasks::BaseTask CREATE_PATH = 'task/annotation'.freeze - def self.create(callback_url: nil, instruction: nil, attachment_type: nil, attachment: null, objects_to_annotate: [], with_labels: false, examples: [], urgency: 'day', metadata: {}, client: nil) + def self.create(callback_url: nil, instruction: nil, attachment_type: nil, attachment: null, objects_to_annotate: [], with_labels: false, min_width: nil, min_height: nil, examples: [], urgency: 'day', metadata: {}, client: nil) response = client.post(CREATE_PATH, { callback_url: callback_url, instruction: instruction, @@ -15,6 +15,8 @@ def self.create(callback_url: nil, instruction: nil, attachment_type: nil, attac attachment: attachment, objects_to_annotate: objects_to_annotate, with_labels: with_labels, + min_width: min_width, + min_height: min_height, examples: examples, urgency: urgency, metadata: metadata @@ -25,4 +27,4 @@ def self.create(callback_url: nil, instruction: nil, attachment_type: nil, attac end end end -end \ No newline at end of file +end diff --git a/scaleapi-ruby.gemspec b/scaleapi-ruby.gemspec index 57e7d5d..8b04854 100644 --- a/scaleapi-ruby.gemspec +++ b/scaleapi-ruby.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "scaleapi" - spec.version = "0.1.0" + spec.version = "0.2.0" spec.authors = ["Alexandr Wang"] spec.email = ["alex@scaleapi.com"]