ofxCvHaarFinder × ofBeginShape()
Raspberry PI の openFrameworks で ofxCvHaarFinderのfindHaarObjects()とofBeginShape() / ofEndShape()を使ったコードを書いていたら、何故か顔認識動かない。ofBeginShape() ~ ofEndShape()をコメントアウトすると認識される。
とりあえず解決案 – ofPushStyle() ~ ofPopStyle();
[code]
ofPushStyle(); //追加
ofBeginShape();
ofVertexes(); //描画
ofEndShape();
ofPopStyle(); //追加
[/code]
ofBeginShape() ~ ofEndShape()するときに内部で描画設定を変えられてるからかな〜と推測して、前後にofPopStyle()とofPushStyle()で囲んだら顔認識動いた。