<commit_before>/**
 * ocv_ar - OpenCV based Augmented Reality library
 *
 * Configuration file for compile-time settings.
 *
 * Author: <NAME> <<EMAIL>>, June 2014.
 * INKA Research Group, HTW Berlin - http://inka.htw-berlin.de/
 *
 * See LICENSE for license.
 */

#ifndef OCV_AR_CONF_H
#define OCV_AR_CONF_H

/** Downsampling **/

// perform cv::pyrDown N times
#define OCV_AR_CONF_DOWNSAMPLE  1
// or: use cv::resize
//#define OCV_AR_CONF_RESIZE_W 640
//#define OCV_AR_CONF_RESIZE_H 360

/** thresholding **/
/* see http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html#adaptivethreshold */

#define OCV_AR_CONF_THRESH_BLOCK_SIZE   7
#define OCV_AR_CONF_THRESH_C            9.0f

/** detection **/

#define OCV_AR_CONF_FIND_CONTOUR_TYPE   CV_RETR_EXTERNAL    // is faster but can cause problems with low contrast images; try CV_RETR_LIST then
#define OCV_AR_CONF_MIN_CONTOUR_PTS     4       // 4 because we need to find squares
#define OCV_AR_CONF_MIN_CONTOUR_LENGTH  15.0f   // in pixels
#define OCV_AR_CONF_MAX_DUPLICATE_DIST  2.0f    // in pixels

/** pose estimation **/

#define OCV_AR_CONF_DEFAULT_MARKER_SIZE_REAL    0.05f   // "real world" marker size in meters

#define OCV_AR_CONF_REFINE_CORNERS_ITER 0       // num. of iterations to refine corners. set 0 to disable

#define OCV_AR_CONF_PROJMAT_NEAR_PLANE  0.01f   // opengl projection matrix near plane
#define OCV_AR_CONF_PROJMAT_FAR_PLANE   100.0f  // opengl projection matrix far plane

#define OCV_AR_CONF_SMOOTHING_HIST_SIZE 5

/** marker identification **/

#define OCV_AR_CONF_MARKER_CODE_PX_PER_FIELD    8       // length in pixels that defines a single marker cell
#define OCV_AR_CONF_TEMPL_MATCH_MAX_ERROR_RATE  0.1f    // max. error rate for template matching

/** tracking **/

#define OCV_AR_CONF_TRACKER_MARKER_TIMEOUT_MS   750.0   // tracker timeout for lost markers in millisec.

#endif<commit_msg>small config parameter change<commit_after>/**
 * ocv_ar - OpenCV based Augmented Reality library
 *
 * Configuration file for compile-time settings.
 *
 * Author: <NAME> <<EMAIL>>, June 2014.
 * INKA Research Group, HTW Berlin - http://inka.htw-berlin.de/
 *
 * See LICENSE for license.
 */

#ifndef OCV_AR_CONF_H
#define OCV_AR_CONF_H

/** Downsampling **/

// perform cv::pyrDown N times
#define OCV_AR_CONF_DOWNSAMPLE  1
// or: use cv::resize
//#define OCV_AR_CONF_RESIZE_W 640
//#define OCV_AR_CONF_RESIZE_H 360

/** thresholding **/
/* see http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html#adaptivethreshold */

#define OCV_AR_CONF_THRESH_BLOCK_SIZE   7
#define OCV_AR_CONF_THRESH_C            9.0f

/** detection **/

#define OCV_AR_CONF_FIND_CONTOUR_TYPE   CV_RETR_EXTERNAL    // is faster but can cause problems with low contrast images; try CV_RETR_LIST then
#define OCV_AR_CONF_MIN_CONTOUR_PTS     4       // 4 because we need to find squares
#define OCV_AR_CONF_MIN_CONTOUR_LENGTH  15.0f   // in pixels
#define OCV_AR_CONF_MAX_DUPLICATE_DIST  2.0f    // in pixels

/** pose estimation **/

#define OCV_AR_CONF_DEFAULT_MARKER_SIZE_REAL    0.05f   // "real world" marker size in meters

#define OCV_AR_CONF_REFINE_CORNERS_ITER 0       // num. of iterations to refine corners. set 0 to disable

#define OCV_AR_CONF_PROJMAT_NEAR_PLANE  0.01f   // opengl projection matrix near plane
#define OCV_AR_CONF_PROJMAT_FAR_PLANE   100.0f  // opengl projection matrix far plane

#define OCV_AR_CONF_SMOOTHING_HIST_SIZE 5

/** marker identification **/

#define OCV_AR_CONF_MARKER_CODE_PX_PER_FIELD    8       // length in pixels that defines a single marker cell
#define OCV_AR_CONF_TEMPL_MATCH_MAX_ERROR_RATE  0.2f    // max. error rate for template matching

/** tracking **/

#define OCV_AR_CONF_TRACKER_MARKER_TIMEOUT_MS   750.0   // tracker timeout for lost markers in millisec.

#endif
{'fraction_non_alphanumeric': 0.08324607329842931, 'fraction_numerical': 0.021465968586387434, 'mean_word_length': 3.949481865284974, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7256529', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1375, 'n_words': 346}