<commit_before>#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#include <stdlib.h>
#include "Args.hpp"

using namespace std;

static void Usage(void)
{
   cout << "Usage : test [option list] [camera # | video name]" << endl << endl;
   cout << "  Camera number is an integer corresponding to /dev/video??" << endl;

   cout << "\t--frame=<frame num>  start at given frame" << endl;
   cout << "\t--all                write to disk all detected images in each frame" << endl;
   cout << "\t--batch              run without GUI" << endl;
   cout << "\t--skip=<x>           skip frames, only processing every <x> - file input only." << endl;
   cout << "\t--calibrate          bring up crosshair to calibrate camera position" << endl;
   cout << "\t--capture            save raw camera video to output file" << endl;
   cout << "\t--captureSkip=       only save one of every N frames" << endl;
   cout << "\t--save               write processed video to output file" << endl;
   cout << "\t--saveSkip=          only save one of every N processed frames" << endl;
   cout << "\t--no-rects           start with detection rectangles disabled" << endl;
   cout << "\t--no-tracking        start with tracking rectangles disabled" << endl;
   cout << "\t--no-detection       disable object detection" << endl;
   cout << "\t--d12Base=           base directory for d12 info" << endl;
   cout << "\t--d12Dir=            pick d12 dir and stage number" << endl;
   cout << "\t--d12Stage=          from command line" << endl;
   cout << "\t--d24Base=           base directory for d24 info" << endl;
   cout << "\t--d24Dir=            pick d24 dir and stage number" << endl;
   cout << "\t--d24Stage=          from command line" << endl;
   cout << "\t--groundTruth        only test frames which have ground truth data " << endl;
   cout << "\t--xmlFile=           XML file to read/write settings to/from" << endl;
   cout << endl;
   cout << "Examples:" << endl;
   cout << "test : start in GUI mode, open default camera, start detecting and tracking while displaying results in the GUI" << endl;
   cout << "test --batch --capture : Start without a gui, write captured video to disk.  This is the normal way the code is run on the robot during matches. The code communicates via network tables to the roborio." << endl;
   cout << "test --batch --all foo.mp4 : run through foo.mp4. For each frame, write to disk images of all recognized objects. Might be useful for grabbing negative samples from a video known to have no positives in it" << endl;
}

Args::Args(void)
{
	captureAll         = false;
	tracking           = true;
	rects              = true;
	batchMode          = false;
	pause              = false;
	skip               = 0;
	calibrate          = false;
	writeVideo         = false;
	writeVideoSkip     = 1;
	saveVideo          = false;
	saveVideoSkip      = 1;
	detection          = true;
	d12BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/d12";
	d12DirNum          = -1;
	d12StageNum        = -1;
	d12Threshold       = 45;
	d24BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/d24";
	d24DirNum          = -1;
	d24StageNum        = -1;
	d24Threshold       = 98;
	c12BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/c12";
	c12DirNum          = -1;
	c12StageNum        = -1;
	c12Threshold       = 17;
	c24BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/c24";
	c24DirNum          = -1;
	c24StageNum        = -1;
	c24Threshold       = 5;
	frameStart         = 0.0;
	groundTruth        = false;
	xmlFilename        = "/home/ubuntu/2016VisionCode/zebravision/settings.xml";
}
<commit_msg>Tweaking c12 default<commit_after>#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#include <stdlib.h>
#include "Args.hpp"

using namespace std;

static void Usage(void)
{
   cout << "Usage : test [option list] [camera # | video name]" << endl << endl;
   cout << "  Camera number is an integer corresponding to /dev/video??" << endl;

   cout << "\t--frame=<frame num>  start at given frame" << endl;
   cout << "\t--all                write to disk all detected images in each frame" << endl;
   cout << "\t--batch              run without GUI" << endl;
   cout << "\t--skip=<x>           skip frames, only processing every <x> - file input only." << endl;
   cout << "\t--calibrate          bring up crosshair to calibrate camera position" << endl;
   cout << "\t--capture            save raw camera video to output file" << endl;
   cout << "\t--captureSkip=       only save one of every N frames" << endl;
   cout << "\t--save               write processed video to output file" << endl;
   cout << "\t--saveSkip=          only save one of every N processed frames" << endl;
   cout << "\t--no-rects           start with detection rectangles disabled" << endl;
   cout << "\t--no-tracking        start with tracking rectangles disabled" << endl;
   cout << "\t--no-detection       disable object detection" << endl;
   cout << "\t--d12Base=           base directory for d12 info" << endl;
   cout << "\t--d12Dir=            pick d12 dir and stage number" << endl;
   cout << "\t--d12Stage=          from command line" << endl;
   cout << "\t--d24Base=           base directory for d24 info" << endl;
   cout << "\t--d24Dir=            pick d24 dir and stage number" << endl;
   cout << "\t--d24Stage=          from command line" << endl;
   cout << "\t--groundTruth        only test frames which have ground truth data " << endl;
   cout << "\t--xmlFile=           XML file to read/write settings to/from" << endl;
   cout << endl;
   cout << "Examples:" << endl;
   cout << "test : start in GUI mode, open default camera, start detecting and tracking while displaying results in the GUI" << endl;
   cout << "test --batch --capture : Start without a gui, write captured video to disk.  This is the normal way the code is run on the robot during matches. The code communicates via network tables to the roborio." << endl;
   cout << "test --batch --all foo.mp4 : run through foo.mp4. For each frame, write to disk images of all recognized objects. Might be useful for grabbing negative samples from a video known to have no positives in it" << endl;
}

Args::Args(void)
{
	captureAll         = false;
	tracking           = true;
	rects              = true;
	batchMode          = false;
	pause              = false;
	skip               = 0;
	calibrate          = false;
	writeVideo         = false;
	writeVideoSkip     = 1;
	saveVideo          = false;
	saveVideoSkip      = 1;
	detection          = true;
	d12BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/d12";
	d12DirNum          = -1;
	d12StageNum        = -1;
	d12Threshold       = 45;
	d24BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/d24";
	d24DirNum          = -1;
	d24StageNum        = -1;
	d24Threshold       = 98;
	c12BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/c12";
	c12DirNum          = -1;
	c12StageNum        = -1;
	c12Threshold       = 21;
	c24BaseDir         = "/home/ubuntu/2016VisionCode/zebravision/c24";
	c24DirNum          = -1;
	c24StageNum        = -1;
	c24Threshold       = 5;
	frameStart         = 0.0;
	groundTruth        = false;
	xmlFilename        = "/home/ubuntu/2016VisionCode/zebravision/settings.xml";
}

{'fraction_non_alphanumeric': 0.12255505402817672, 'fraction_numerical': 0.028176720010942416, 'mean_word_length': 2.16126242974492, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3908838', 'n_tokens_mistral': 2353, 'n_tokens_neox': 2177, 'n_words': 754}