<commit_before># ---------------- User Configuration Settings for speed2.py ---------------------------------
#               Ver 2.08  speed2.py Variable Configuration Settings

# Display and Log settings
#-------------------------
verbose = True              # display basic status information on console
calibrate = False           # Create a speed_calibrate.jpg file with markers to calculate a px to FT conversion
display_fps = True          # show average frame count every 100 loops
gui_window_on = False       # Display desktop GUI openCV threshold window. Set to False if running from ssh console only.
log_data_to_file = True     # save log data as CSV comma separated values
show_out_range = False      # Show Out of Range Display entries (Default False)

# Motion Event Settings
# ---------------------
IMAGE_VIEW_FT = 72     # Set the width in feet for the road width that the camera width sees
SPEED_MPH = True       # Set the speed conversion  kph = False  mph=True
track_len_trig = 125   # Length of track to trigger speed photo Default=125
track_timeout = 1      # Number of seconds to wait after track End (prevents dual tracking)
event_timeout = 2      # Number of seconds to wait for next motion event before starting new track

# Camera Settings
#----------------
CAMERA_WIDTH = 320     # Image stream width for opencv motion scanning default=320
CAMERA_HEIGHT = 240    # Image stream height for opencv motion scanning  default=240
CAMERA_FRAMERATE = 35  # framerate for video stream default=35 90 max for V1 cam. V2 can be higher
CAMERA_ROTATION = 0    # Rotate camera image valid values are 0, 90, 180, 270
CAMERA_VFLIP = True    # Flip the camera image vertically if required
CAMERA_HFLIP = False   # Flip the camera image horizontally if required

# Camera Image Settings
#-----------------------
image_path = "images"     # folder name to store images 
image_prefix = "cam1-"    # image name prefix
image_text_bottom = True  # True = Show image text at bottom otherwise at top
image_font_size = 18      # font text height in px for text on images default=18 
image_bigger = 3          # multiply value to resize the default image size 320x240
 
# Motion Event Exclusion Settings
# -------------------------------
MIN_AREA = 170         # Exclude all contours less than or equal to this sq-px Area
y_upper = 100          # Exclude event if y less that this value default=100
y_lower = 200          # Exclude event if y greater than this value default=200
x_left  = 25           # Exclude event if x less than this px position Default=25
x_right = 295          # Exclude event if x greater than this px position Default=295
x_diff_min = 1         # Exclude if min px away exceeds last event x pos
x_diff_max = 50        # Exclude if max px away for last motion event x pos
max_speed_over = 0     # Exclude track if Speed less than or equal to value specified 0=All 

# OpenCV Motion Tracking Settings
#--------------------------------
WINDOW_BIGGER = 2  # resize multiplier for opencv window if gui_window_on=True default = 3
CIRCLE_SIZE = 1    # diameter of circle to show motion location in window
BLUR_SIZE = 10     # OpenCV setting for Gaussian difference image blur 
THRESHOLD_SENSITIVITY = 25  # OpenCV setting for difference image threshold
FONT_SCALE = .5    # OpenCV window text font size scaling factor default=.5 (lower is smaller)

#--------------------------- End of User Settings -------------------------------------------------
<commit_msg>ver 2.08 changed track_len_trig=100 and Add Comments<commit_after># ---------------- User Configuration Settings for speed2.py ---------------------------------
#               Ver 2.08  speed2.py Variable Configuration Settings

# Display and Log settings
#-------------------------
verbose = True              # display basic status information on console
calibrate = False           # Create a speed_calibrate.jpg file with markers to calculate a px to FT conversion
display_fps = True          # show average frame count every 1000 loops
gui_window_on = False       # Display desktop GUI openCV windows. Set to False if running from ssh console only.
log_data_to_file = True     # save log data as CSV comma separated values
show_out_range = False      # Show Out of Range Events Default=False)

# Motion Event Settings
# ---------------------
IMAGE_VIEW_FT = 72     # Set the width in feet for the road width that the camera width sees
SPEED_MPH = True       # Set the speed conversion  kph=False  mph=True
track_len_trig = 100   # Length of track to trigger speed photo Default=125
track_timeout = 1      # Number of seconds to wait after track End (prevents dual tracking)
event_timeout = 2      # Number of seconds to wait for next motion event before starting new track

# Camera Settings
#----------------
CAMERA_WIDTH = 320     # Image stream width for opencv motion scanning default=320
CAMERA_HEIGHT = 240    # Image stream height for opencv motion scanning  default=240
CAMERA_FRAMERATE = 35  # framerate for video stream default=35 90 max for V1 cam. V2 can be higher
CAMERA_ROTATION = 0    # Rotate camera image valid values are 0, 90, 180, 270
CAMERA_VFLIP = True    # Flip the camera image vertically if required
CAMERA_HFLIP = False   # Flip the camera image horizontally if required

# Camera Image Settings
#-----------------------
image_path = "images"     # folder name to store images 
image_prefix = "cam1-"    # image name prefix
image_text_bottom = True  # True = Show image text at bottom otherwise at top
image_font_size = 18      # font text height in px for text on images default=18 
image_bigger = 3          # multiply value to resize the default image size 320x240
 
# Motion Event Exclusion Settings
# -------------------------------
MIN_AREA = 170         # Exclude all contours less than or equal to this sq-px Area
x_diff_min = 1         # Exclude if min px away exceeds last event x pos
x_diff_max = 50        # Exclude if max px away for last motion event x pos
max_speed_over = 0     # Exclude track if Speed less than or equal to value specified 0=All 

# This is the Crop Area for motion tracking
y_upper = 100          # Exclude event if y less that this value default=100
y_lower = 200          # Exclude event if y greater than this value default=200
x_left  = 25           # Exclude event if x less than this px position Default=25
x_right = 295          # Exclude event if x greater than this px position Default=295

# OpenCV Motion Tracking Settings
#--------------------------------
FONT_SCALE = .5    # OpenCV window text font size scaling factor default=.5 (lower is smaller)
WINDOW_BIGGER = 2  # resize multiplier for opencv window if gui_window_on=True default = 3
CIRCLE_SIZE = 1    # diameter of circle to show motion location in window
BLUR_SIZE = 10     # OpenCV setting for Gaussian difference image blur 
THRESHOLD_SENSITIVITY = 25  # OpenCV setting for difference image threshold

#--------------------------- End of User Settings -------------------------------------------------

{'fraction_non_alphanumeric': 0.11460706150341686, 'fraction_numerical': 0.029185649202733484, 'mean_word_length': 2.421821724305894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1323869', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1756, 'n_words': 870}