mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
15 lines
329 B
Ruby
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
|