How to sort a structure after applying haar cascades?

voxdeserti's picture

Hello, everybody! I just realized that 'Apply haar cascade' patch brings out a XYWH structure automatically sorted by acsending rectangle scale. So it cannot match concrete face (for example) in all cases. And the result is that augmented graphics begin hopping between several faces. Is there any tactics to fix this? Maybe some kind of a structure sort?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

itsthejayj's picture
Re: How to sort a structure after applying haar cascades?

Have you tried 'structure sort'? in the patch preferences you can use descending sorting of keys using '!keyname

jrs's picture
Re: How to sort a structure after applying haar cascades?

voxdeserti's picture
Re: How to sort a structure after applying haar cascades?

Thanks: structure sort works))