Module: Yearbook::Detector

Defined in:
lib/yearbook/detector.rb

Class Method Summary collapse

Class Method Details

.detect_objects(cv_image, object_type) ⇒ Object

returns an array of detected objects



9
10
11
12
13
14
# File 'lib/yearbook/detector.rb', line 9

def detect_objects(cv_image, object_type)
  x = Classifier.of(object_type).detect_objects(cv_image)


  return Yearbook.DetectionCollection(x, object_type)
end

.load_cv(fname) ⇒ Object



16
17
18
# File 'lib/yearbook/detector.rb', line 16

def load_cv(fname)
  IplImage::load(fname)
end