<commit_before># import numpy as np
import cv2
# import linecache
import LoadImagePrintText as f
# >>> import os
# >>> os.chdir("C:\Users\dario\Desktop\Dropbox\Work\DemoHDA\git\Source\\")

## Input
cam = 60
frame = 26
debugREID = 1

img = f.loadImagePrintText(cam, frame, debugREID=1, debugPD=1)

cv2.namedWindow("1", cv2.WINDOW_NORMAL)<commit_msg>added threshold variable<commit_after># import numpy as np
import cv2
# import linecache
import LoadImagePrintText as f
# >>> import os
# >>> os.chdir("C:\Users\dario\Desktop\Dropbox\Work\DemoHDA\git\Source\\")

## Input
cam = 60
frame = 26
debugREID = 1

img = f.loadImagePrintText(cam, frame, debugREID=0, debugPD=1, PDthreshold=20)

cv2.namedWindow("1", cv2.WINDOW_NORMAL)
{'fraction_non_alphanumeric': 0.14107883817427386, 'fraction_numerical': 0.03319502074688797, 'mean_word_length': 5.241379310344827, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2868976', 'n_tokens_mistral': 279, 'n_tokens_neox': 264, 'n_words': 62}