Typo in Cascade Classifier tutorial code causes crash (Patch #2044)
Description
The turorial code donwloaded from
contains a typo which may crash the application.
line 90:
int radius = cvRound( (eyes[j].width + eyes[i].height)*0.25 );
should read
int radius = cvRound( (eyes[j].width + eyes[j].height)*0.25 );
(eyes must be indexed by j, not by i)
On the tutorial webpage, the code is correct:
Associated revisions
fixes #2044
History
Updated by Kirill Kornyakov over 12 years ago
Thank you! Fixed in r8656.
- Tracker changed from Bug to Patch
- Target version set to 2.4.2
Updated by Kirill Kornyakov over 12 years ago
- Status changed from Open to Done