コード例 #1
0
    pl.addMiner(FaceVectoriser(),
                'faceVec')  # Encodes images of faces as LBP vectors.
    pl.addMiner(FaceClusterer(n_clusters=None),
                'faceClust')  # Assigns faces/face vectors to clusters
    pl.addMiner(FaceSearchMiner(faceFolder='./Frontend-Web/faces/'),
                'faceSearchMine'
                )  # Formats the output from the FaceClusterer to be searchable
    pl.addMiner(TrieMiner(),
                'trieminer')  # Processes list of SRTChunks into a trie
    pl.addMiner(TrieMiner(),
                'trieminer2')  # Processes list of SRTChunks into a trie
    pl.addMiner(TrieMiner(),
                'trieminer3')  # Processes list of SRTChunks into a trie
    pl.addMiner(TrieMiner(),
                'trieminerSR')  # Processes list of SRTChunks into a trie
    pl.addSearch(TrieSearch(), 'triesearch')  # searches a trie
    pl.addSearch(
        FaceSearch(),
        'faceSearch')  # Searches faces by cluster id across a timeline

    print ""

    # we pre-specify the timelines we want to offer...

    # Test timelines

    timelines['subtitles'] = Timeline(
        "Auto Subtitles",  # prettyName
        ['fail', 'ytautosub'],  # acquireTag
        ['fileline', 'vssminer', 'trieminer'],  # minerTags in order
        ['fileline', 'vssminer', 'trieminer'],  # corpusTags in order