<commit_before>###################### INFORMATION ##############################
#          crass-Addin to crop and splice segments of an image
#          optional preprocess: deskew
#Program:  **crass**
#Info:     **Python 2.7**
#Author:   **<NAME>**
#Date:     **02.06.2017**

####################### IMPORT ##################################
import argparse
import copy
import glob
import logging
import matplotlib.pyplot as plt
import multiprocessing
import numpy as np
import os
from scipy.ndimage import measurements
import skimage as skimage
import scipy.misc as misc
import skimage.color as color
import skimage.filters.thresholding as th
from skimage.io import imread, imsave
import skimage.morphology as morph
import skimage.transform as transform
import warnings

####################### CMD-PARSER-SETTINGS ########################
def get_parser():
    parser = argparse.ArgumentParser(description="Crop And Splice Segements (CRASS) of an image based on black (seperator-)lines")
    #parser.add_argument("--config", action=LoadConfigAction, default=None)
    # Erease -- on input and extension
    parser.add_argument("--input", type=str, default="C:\\Coding\\crass\\test\\testimg_skew.jpg",
                       help='Input file or folder')
    #parser.add_argument("--input", type=str, default="U:\\Eigene Dokumente\\Literatur\\Aufgaben\\crass\\1967\\jpg\\hoppa-405844417-0060_0805.jpg",
    #                    help='Input file or folder')
    #parser.add_argument("--input", type=str,default="U:\\Eigene Dokumente\\Literatur\\Aufgaben\\crass\\1957\\jpg\\",
    #                    help='Input file or folder')
    parser.add_argument("--extension", type=str, choices=["bmp","jpg","png","tif"], default="jpg", help='Extension of the files, default: %(default)s')

    parser.add_argument('-A', '--addstartheightab', type=float, default=0.01, choices=np.arange(-1.0, 1.0), help='Add some pixel for the clipping mask of segments a&b (startheight), default: %(default)s')<commit_msg>- deleted plot-function<commit_after>###################### INFORMATION ##############################
#          crass-Addin to crop and splice segments of an image
#          optional preprocess: deskew
#Program:  **crass**
#Info:     **Python 2.7**
#Author:   **<NAME>**
#Date:     **02.06.2017**

####################### IMPORT ##################################
import argparse
import copy
import glob
import logging
import multiprocessing
import numpy as np
import os
from scipy.ndimage import measurements
import skimage as skimage
import scipy.misc as misc
import skimage.color as color
import skimage.filters.thresholding as th
from skimage.io import imread, imsave
import skimage.morphology as morph
import skimage.transform as transform
import warnings

####################### CMD-PARSER-SETTINGS ########################
def get_parser():
    parser = argparse.ArgumentParser(description="Crop And Splice Segements (CRASS) of an image based on black (seperator-)lines")
    #parser.add_argument("--config", action=LoadConfigAction, default=None)
    # Erease -- on input and extension
    parser.add_argument("--input", type=str, default="C:\\Coding\\crass\\test\\testimg.jpg",
                       help='Input file or folder')
    #parser.add_argument("--input", type=str, default="U:\\Eigene Dokumente\\Literatur\\Aufgaben\\crass\\1967\\jpg\\hoppa-405844417-0060_0805.jpg",
    #                    help='Input file or folder')
    #parser.add_argument("--input", type=str,default="U:\\Eigene Dokumente\\Literatur\\Aufgaben\\crass\\1957\\jpg\\",
    #                    help='Input file or folder')
    parser.add_argument("--extension", type=str, choices=["bmp","jpg","png","tif"], default="jpg", help='Extension of the files, default: %(default)s')

    parser.add_argument('-A', '--addstartheightab', type=float, default=0.01, choices=np.arange(-1.0, 1.0), help='Add some pixel for the clipping mask of segments a&b (startheight), default: %(default)s')
{'fraction_non_alphanumeric': 0.20452830188679244, 'fraction_numerical': 0.021132075471698115, 'mean_word_length': 4.217847769028872, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '27952', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1175, 'n_words': 305}