From 07c909bb185235c31f46b216fc1cd150bdf63abb Mon Sep 17 00:00:00 2001 From: stevenhao Date: Thu, 27 Apr 2017 18:57:30 -0700 Subject: [PATCH 1/2] add annotation min_width and min_height params --- lib/scale/api/tasks/image_recognition.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 From 9a0c032311f2c7d969f7da0e6f5e61ac444c5572 Mon Sep 17 00:00:00 2001 From: Alexandr Wang Date: Thu, 27 Apr 2017 19:30:45 -0700 Subject: [PATCH 2/2] update version --- scaleapi-ruby.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]