Sorry, this content is no longer available

Ask Your Question
0

Android: how to use detectMultiScale()

asked Feb 6 '13

pietmau gravatar image

Hi and thanks for your help.

Sorry for the poor question.

I want to use detectMultiScale() to detect face features of picture of a face.

I understand that I have to use the detectMultiScale() method of CascadeClassifier class.

I do not understand how the method works:

 public void detectMultiScale(Mat image,MatOfRect objects)

Takes Mat image as an input I understand that.

Now how do I access the returned result????

I do not understand because I see "MatOfRect objects" as an input, not an output of the method.

Sorry again for the possibly silly question and thanks for your help!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Feb 7 '13

See FaceDetection sample application on OpenCV4Android SDK. It uses CascadeClassifier.detectMultiScale for face detection on streams from camera. It is the same thing you want. CascadeClassifier documentation will be helpful also.

Preview: (hide)

Comments

pietmau gravatar imagepietmau (Feb 7 '13)edit

Question Tools

1 follower

Stats

Asked: Feb 6 '13

Seen: 1,990 times

Last updated: Feb 07 '13