<jupyter_start><jupyter_text>Utilitities for Computer Vision Projects<jupyter_code>import os<jupyter_output><empty_output><jupyter_text>Return Image List in A Directory with Wanted Image Format.<jupyter_code>def get_limits(path,img_format):
    '''
        Return a list of filenames for all formated images in a directory
    '''
    return [os.path.join(path,f) for f in os.listdir(path) if f.endswith(img_format)]
    
get_limits(os.getcwd(),'.jpg')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10580912863070539, 'fraction_numerical': 0.0, 'mean_word_length': 5.802816901408451, '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}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '50410', 'license': 'MIT', 'n_tokens_mistral': 170, 'n_tokens_neox': 166, 'n_words': 37, 'path': 'Basics/__cv_utils__.ipynb', 'repo_name': 'huynguyen120390/Computer_Vision_Projects', 'size': '482'}