<commit_before>/*
 * <NAME>
 *
 *
 */

#include <stdio.h>
#include <opencv2/video/background_segm.hpp>
#include "opencv2/opencv.hpp"

// #include <iostream>
// #include <sstream>



using namespace cv;
using namespace std;


Mat frame; //current frame
Mat fgMaskMOG; //fg mask generated by MOG method
// Mat fgMaskMOG2; //fg mask fg mask generated by MOG2 method

BackgroundSubtractorMOG MOG;

const char *win = "video";


void drawCircle(Mat img, Point center)
{
    int thickness = -1;
    int lineType = 8;

    circle( img,
            center,
            32.0,
            Scalar( 255, 255, 255 ),
            thickness,
            lineType);
}

int main()
{
    int cam = 0; // default camera
    VideoCapture cap(cam);
    if (!cap.isOpened()) {
        fprintf(stderr, "cannot open camera %d\n", cam);
        exit(1);
    }

    // namedWindow(win);
    namedWindow(win, 1);
    Mat inputFrame;
    Point pt;
    pt.x = 500;
    pt.y = 0;
    // int momentumY = 10;     // initial momentum hardcoded as 10
    // int momentumX = 0;

    // float threshold = 5.0f;
    // float dist;
    // unsigned char pixel;
    // int x, y;

    double count = 0;
    while (++count) {
        cap >> inputFrame;

        MOG(inputFrame, fgMaskMOG);
        
        
        
        imshow(win, fgMaskMOG);

        if (waitKey(10) >= 0) // wait up to 30 msec
	        break;
    }

    return 0;
}

/*
    Mat BGRChannels[3];
    split(screen,BGRChannels); // split the BGR channesl
    BGRChannels[1]=Mat::zeros(screen.rows,screen.cols,CV_8UC1);// removing Green channel
    merge(BGRChannels,3,screen); // pack the image

    waitKey(0);
*/<commit_msg>Nothing<commit_after>/*
 * <NAME>
 *
 *
 */

#include <stdio.h>
#include <opencv2/video/background_segm.hpp>
#include "opencv2/opencv.hpp"

// #include <iostream>
// #include <sstream>



using namespace cv;
using namespace std;


Mat frame; //current frame
Mat fgMaskMOG; //fg mask generated by MOG method
// Mat fgMaskMOG2; //fg mask fg mask generated by MOG2 method

BackgroundSubtractorMOG MOG;

const char *win = "video";


void drawCircle(Mat img, Point center)
{
    int thickness = -1;
    int lineType = 8;

    circle( img,
            center,
            32.0,
            Scalar( 255, 255, 255 ),
            thickness,
            lineType);
}

int main()
{
    int cam = 0; // default camera
    VideoCapture cap(cam);
    if (!cap.isOpened()) {
        fprintf(stderr, "cannot open camera %d\n", cam);
        exit(1);
    }

    // namedWindow(win);
    namedWindow(win, 1);
    Mat inputFrame;
    Point pt;
    pt.x = 500;
    pt.y = 0;
    // int momentumY = 10;     // initial momentum hardcoded as 10
    // int momentumX = 0;

    // float threshold = 5.0f;
    // float dist;
    // unsigned char pixel;
    // int x, y;

    double count = 0;
    while (++count) {
        cap >> inputFrame;

        MOG(inputFrame, fgMaskMOG);
        
        imshow(win, fgMaskMOG);

        if (waitKey(10) >= 0) // wait up to 30 msec
	        break;
    }

    return 0;
}

/*
    Mat BGRChannels[3];
    split(screen,BGRChannels); // split the BGR channesl
    BGRChannels[1]=Mat::zeros(screen.rows,screen.cols,CV_8UC1);// removing Green channel
    merge(BGRChannels,3,screen); // pack the image

    waitKey(0);
*/
{'fraction_non_alphanumeric': 0.13276492082825822, 'fraction_numerical': 0.027405602923264313, 'mean_word_length': 2.0961357210179075, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '7506186', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1136, 'n_words': 314}