<commit_before>#include <iostream>

#include <opencv2/highgui/highgui.hpp>

#include "../lib/PupilTracker.h"
#include "../lib/cvx.h"

void imshowscale(const std::string& name, cv::Mat& m, double scale)
{
    cv::Mat res;
    cv::resize(m, res, cv::Size(), scale, scale, cv::INTER_NEAREST);
    cv::imshow(name, res);
}

int main(int argc, char* argv[])
{
    if (argc < 2) {
        std::cerr << "Need filename" << std::endl;
        return 1;
    }

    std::cout << "Opening " << argv[1] << std::endl;
    cv::VideoCapture vc(argv[1]);
    if (!vc.isOpened()) {
        std::cerr << "Could not open " << argv[1] << std::endl;
        return 2;
    }


    cv::Mat m;
    while (true)
    {
        vc >> m;
        if (m.empty())
        {
            vc.open(argv[1]);
            if (!vc.isOpened()) {
                std::cerr << "Could not open " << argv[1] << std::endl;
                return 2;
            }
            vc >> m;
            if (m.empty()) {
                return 1;
            }
        }


        pupiltracker::TrackerParams params;
		params.Radius_Min = 3;
		params.Radius_Max = 8;

		params.CannyBlur = 1.6;
		params.CannyThreshold1 = 30;
		params.CannyThreshold2 = 50;
		params.StarburstPoints = 0;

		params.PercentageInliers = 40;
		params.InlierIterations = 2;
		params.ImageAwareSupport = true;
		params.EarlyTerminationPercentage = 95;
		params.EarlyRejection = true;
		params.Seed = -1;<commit_msg>Change default params in cmd<commit_after>#include <iostream>

#include <opencv2/highgui/highgui.hpp>

#include "../lib/PupilTracker.h"
#include "../lib/cvx.h"

void imshowscale(const std::string& name, cv::Mat& m, double scale)
{
    cv::Mat res;
    cv::resize(m, res, cv::Size(), scale, scale, cv::INTER_NEAREST);
    cv::imshow(name, res);
}

int main(int argc, char* argv[])
{
    if (argc < 2) {
        std::cerr << "Need filename" << std::endl;
        return 1;
    }

    std::cout << "Opening " << argv[1] << std::endl;
    cv::VideoCapture vc(argv[1]);
    if (!vc.isOpened()) {
        std::cerr << "Could not open " << argv[1] << std::endl;
        return 2;
    }


    cv::Mat m;
    while (true)
    {
        vc >> m;
        if (m.empty())
        {
            vc.release();
            vc.open(argv[1]);
            if (!vc.isOpened()) {
                std::cerr << "Could not open " << argv[1] << std::endl;
                return 2;
            }
            vc >> m;
            if (m.empty()) {
                return 1;
            }
        }


        pupiltracker::TrackerParams params;
		params.Radius_Min = 3;
		params.Radius_Max = 8;

		params.CannyBlur = 1;
		params.CannyThreshold1 = 20;
		params.CannyThreshold2 = 40;
		params.StarburstPoints = 0;

		params.PercentageInliers = 30;
		params.InlierIterations = 2;
		params.ImageAwareSupport = true;
		params.EarlyTerminationPercentage = 95;
		params.EarlyRejection = true;
		params.Seed = -1;
{'fraction_non_alphanumeric': 0.16089193825042883, 'fraction_numerical': 0.018867924528301886, 'mean_word_length': 2.1354838709677417, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4703108', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1011, 'n_words': 218}