ofxTldTracker and ofxCv

Greetings!

I have progressed pretty far along, but am in a bit of a snag.

I am using the new object detect library, ofxTidTracker with kyle mcdonalds opencv library. Had to do some tweaking of the source files that were being referenced in some instances, but it compiles.

What I am trying to do is use the original ofxTidTracker example (allows you to select with mouse cursor bounding rectangular box to do image analysis) and substitute this with the rectangular output dimmensions from a created object that references an .xml file for facial recognition .

my issue is the app builds, but then crashes at this point. code below:

  
#include "testApp.h"  
  
using namespace ofxCv;  
using namespace cv;  
  
static const float scale_factor = 2.0;  
  
//--------------------------------------------------------------  
void testApp::setup(){  
      
      
    ofSetVerticalSync(true);  
    //ofBackground(0);  
    ofSetFrameRate(120);  
   	finder.setup("/Users/danieljaybertner/Desktop/haarcascade_frontalface_alt2.xml"); //finder is created from ofxCv::ObjectFinder  
      
      
    finder.setPreset(ObjectFinder::Fast);  
    finder.getTracker().setSmoothingRate(.3);  
    cam.initGrabber(640, 480); //cam is from ofVideoGrabber  
    tld.setup(); //tld = ofxTldTracker  
      
     
      
     
}  
  
//--------------------------------------------------------------  
void testApp::update(){  
    cam.update();  
    if(cam.isFrameNew()) {  
        tld.update(toCv(cam));  
        finder.update(cam);  
    }  
}  
  
//--------------------------------------------------------------  
void testApp::draw(){  
    //ofScale(scale_factor, scale_factor);  
    cam.draw(0,0);  
      
    finder.draw(); //finder is created from ofxCv::ObjectFinder  
      
      
    //////PROBLEMATIC AREA //////////////////////////////////////  
      
      
    for(float i = 0; i < finder.size(); i++) {  
		tld.setBoundingBox(i/cam.getWidth(), i/cam.getHeight(), 10, 20);  
        tld.draw();  
  
    }  
    ///////////////////////////////////////////////////////////  
 }