Ask Your Question
0

Android: how to use detectMultiScale()

asked 2013-02-06 03:17:04 -0600

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-02-07 03:54:40 -0600

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.

edit flag offensive delete link more

Comments

pietmau gravatar imagepietmau ( 2013-02-07 12:34:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-06 03:17:04 -0600

Seen: 1,967 times

Last updated: Feb 07 '13