collection/collectionMaker.py
def make_regexp(field_name, field_id, field_txt, file_ext):
        """
        make regex pattern for filter out the selected files
        :param field_name: name of the 'cities' to include in the collection
        :param field_id: id of the 'cities' to include in the collection
        :param field_txt: extension of the field, e.g. 'GT' or 'RGB
        :param file_ext: extension of the images
        :return: regex pattern string
        """
        regexp = r'.*({})[\D]*({})[\D]{}.*.{}'.format('|'.join(field_name), '|'.join(field_id), field_txt, file_ext)
        return regexp

        make regex pattern for filter out the selected files
        :param field_name: name of the 'cities' to include in the collection
        :param field_id: id of the 'cities' to include in the collection
        :param field_txt: extension of the field, e.g. 'GT' or 'RGB
        :param file_ext: extension of the images
        :return: regex pattern string
        
make regex pattern for filter out the selected files
make regex pattern for filter out the selected files
def make_regexp(field_name, field_id, field_txt, file_ext):
        regexp = r'.*({})[\D]*({})[\D]{}.*.{}'.format('|'.join(field_name), '|'.join(field_id), field_txt, file_ext)
        return regexp
def make_regexp ( field_name , field_id , field_txt , file_ext ) : regexp = r'.*({})[\D]*({})[\D]{}.*.{}' . format ( '|' . join ( field_name ) , '|' . join ( field_id ) , field_txt , file_ext ) return regexp
make regex pattern for filter out the selected files
make regex pattern for filter out the selected files
"""
        make regex pattern for filter out the selected files
        :param field_name: name of the 'cities' to include in the collection
        :param field_id: id of the 'cities' to include in the collection
        :param field_txt: extension of the field, e.g. 'GT' or 'RGB
        :param file_ext: extension of the images
        :return: regex pattern string
        """
regex pattern string
regex pattern string
field_name
name of the 'cities' to include in the collection
name of the ' cities ' to include in the collection
field_id
id of the 'cities' to include in the collection
id of the ' cities ' to include in the collection
field_txt
extension of the field, e.g. 'GT' or 'RGB
extension of the field e . g . ' GT ' or ' RGB
file_ext
extension of the images
extension of the images