<commit_before>#include "VideoTestsApp.h"
#include "ofxXmlSettings.h"
#include "ofGstVideoPlayer.h"
#include "Poco/DateTimeFormatter.h"
#include "Poco/DateTimeFormat.h"
#include "Poco/DateTime.h"


//--------------------------------------------------------------
void VideoTestsApp::setup(){
	updatingPosition = false;
	
	//ofSetLogLevel(OF_LOG_VERBOSE);

	ofxXmlSettings xml("settings.xml");
	for(u_int i=0;i<4;i++){
		axisCameras.push_back(new ofxAxisGui());
		axisCameras[i]->setDrawGui(false);
		axisCameras[i]->setAuth(xml.getValue("settings:camera"+ofToString(i+1)+":user",""),xml.getValue("settings:camera"+ofToString(i+1)+":pwd",""));
		axisCameras[i]->setup(xml.getValue("settings:camera"+ofToString(i+1)+":address",""),"Camera"+ofToString(i+1),220,10);
		cvModules.push_back(new ComputerVision);
		ofAddListener(axisCameras[i]->axis->getGstUtils().bufferEvent,cvModules[i],&ComputerVision::newFrame);
	}

	gui.setup("Settings","settings.xml");

	videoParameters.setName("Player");
	videoParameters.add(record.set("record",0,0,axisCameras.size()+1));
	videoParameters.add(usePlayer.set("usePlayer",false));
	videoParameters.add(playerPaused.set("playerPaused",false));
	videoParameters.add(playerPosition.set("playerPosition",0,0,1));
	videoParameters.add(drawCamera.set("drawCamera",axisCameras.size()+1,1,axisCameras.size()+1));
	gui.add(videoParameters);

<commit_msg>correct xml path for user/password and address of camera settings<commit_after>#include "VideoTestsApp.h"
#include "ofxXmlSettings.h"
#include "ofGstVideoPlayer.h"
#include "Poco/DateTimeFormatter.h"
#include "Poco/DateTimeFormat.h"
#include "Poco/DateTime.h"


//--------------------------------------------------------------
void VideoTestsApp::setup(){
	updatingPosition = false;
	
	//ofSetLogLevel(OF_LOG_VERBOSE);

	ofxXmlSettings xml("settings.xml");
	for(u_int i=0;i<4;i++){
		axisCameras.push_back(new ofxAxisGui());
		axisCameras[i]->setDrawGui(false);
		axisCameras[i]->setAuth(xml.getValue("Settings:Camera"+ofToString(i+1)+":user",""),xml.getValue("Settings:Camera"+ofToString(i+1)+":pwd",""));
		axisCameras[i]->setup(xml.getValue("Settings:Camera"+ofToString(i+1)+":address",""),"Camera"+ofToString(i+1),220,10);
		cvModules.push_back(new ComputerVision);
		ofAddListener(axisCameras[i]->axis->getGstUtils().bufferEvent,cvModules[i],&ComputerVision::newFrame);
	}

	gui.setup("Settings","settings.xml");

	videoParameters.setName("Player");
	videoParameters.add(record.set("record",0,0,axisCameras.size()+1));
	videoParameters.add(usePlayer.set("usePlayer",false));
	videoParameters.add(playerPaused.set("playerPaused",false));
	videoParameters.add(playerPosition.set("playerPosition",0,0,1));
	videoParameters.add(drawCamera.set("drawCamera",axisCameras.size()+1,1,axisCameras.size()+1));
	gui.add(videoParameters);


{'fraction_non_alphanumeric': 0.2286628733997155, 'fraction_numerical': 0.01422475106685633, 'mean_word_length': 6.706849315068493, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2271974', 'n_tokens_mistral': 1002, 'n_tokens_neox': 946, 'n_words': 83}