@ekaj wrote:
Hi guys,
I’m super new to openFrameworks and programming, so I’m probably missing something easy and obvious.I’m trying to build a little app that will let a user load an image and then find faces in the scene, allow them to save the image and load the next one.
I found the load example and that works fine, but i’m unsure how to get the image to update each time and draw boxes over faces.
I’ve tried putting this in bothofApp::keyPressed and ofApp::KeyReleased, but I’m not getting the results I’m hoping for ( boxes drawn over faces )
if (key == 'f') { for (size_t i = 0, ilen = haar.blobs.size(); i < ilen; i++) { ofNoFill(); ofDrawRectangle(haar.blobs[i].boundingRect); }
in ofApp::update(), I only have
haar.findHaarObjects(image)
do I need to have a image.isFrameNew in update to make sure it refreshes each time?
Thanks for any help you can give.
Posts: 1
Participants: 1