Frankenstein
Frankenstein

Reputation: 430

Detecting multiple objects using openCV

I'm trying to develop a code which recognizes two different patterns. I have trained both the patterns separately and obtained the cascade XMLs of both. I give the patterns in a single image, which the program is supposed to detect.

How can I implement this using 'detectMultiScale' in openCV or are there any other option(s)??

Please help :)

PS: I'm using C++ in openCV

Upvotes: 3

Views: 346

Answers (1)

Bull
Bull

Reputation: 11951

Since you have trained the patterns seperately, you'll have to run detectMultiScale() twice.

Upvotes: 2

Related Questions