import re


def frame_of(path):
    """
    Get the frame number of a specific image path
    :param path:
    :return: frame as int
    """
    frame = re.findall('.+[\._](\d{4,8})\.[A-Za-z]{3,4}', path)
    if frame and len(frame) == 1:
        return int(frame[0])