|
|
@ -93,8 +93,7 @@ void ofApp::update(){ |
|
|
|
} |
|
|
|
|
|
|
|
/* Setup model input using ofImage, allocated fbo, checks if a frame or video_frme should be drawn to the screen */ |
|
|
|
player.SetFrame(server->vp_resp.image); |
|
|
|
player.Update(img, server->is_active); |
|
|
|
displayFrame(); |
|
|
|
|
|
|
|
/* Run Models, and set pixels */ |
|
|
|
try{ |
|
|
@ -224,7 +223,10 @@ void ofApp::printEmotions(){ |
|
|
|
|
|
|
|
/* check vp_resp, set frame to video_player fbo (centered + scaled) */ |
|
|
|
void ofApp::displayFrame(){ |
|
|
|
|
|
|
|
/* set frame from recent vantage-point tree response */ |
|
|
|
player.SetFrame(server->vp_resp.image); |
|
|
|
/* set image for model input, checks if the clients are active -> yes-frame no-video */ |
|
|
|
player.Update(img, server->is_active); |
|
|
|
} |
|
|
|
|
|
|
|
//--------------------------------------------------------------
|
|
|
|