mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
changed face detection sample of README.rdoc
This commit is contained in:
parent
b8fa50869b
commit
383eaa89bf
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ subfolder called data.
|
|||
data = "./data/haarcascades/haarcascade_frontalface_alt.xml"
|
||||
detector = OpenCV::CvHaarClassifierCascade::load(data)
|
||||
image = OpenCV::IplImage.load(ARGV[0])
|
||||
detector.detect_objects(image) do |region|
|
||||
detector.detect_objects(image).each do |region|
|
||||
color = OpenCV::CvColor::Blue
|
||||
image.rectangle! region.top_left, region.bottom_right, :color => color
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue