Ask Your Question

Android: how to use detectMultiScale()

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

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

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

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


pietmau gravatar imagepietmau ( 2013-02-07 12:34:15 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 1,505 times

Last updated: Feb 07 '13