Point and Size were ambigous, changet to cv::Point and cv::Size
sleep(1) to ofSleepMillis(1) to make it cross-platform