1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00
ruby-opencv/lib/opencv/cvhaarclassifiercascade.rb
2016-04-10 18:52:55 +09:00

15 lines
329 B
Ruby

module Cv
CV_HAAR_DO_CANNY_PRUNING = 1
class CvHaarClassifierCascade < CascadeClassifier
def self.load(filename)
new(filename)
end
def detect_objects(image, options = {})
rects = detect_multi_scale(image, options)
rects.each { |rect| yield rect } if block_given?
rects
end
end
end