Esempio n. 1
0
def stdRun(path, graph=True):
    frames = files.reader(path)
    # if graph:
    #     chart.drawGraphJob(frames)
    frames = stdClean(frames)
    if graph:
        chart.drawGraphJob(frames)
    return pul.findBeats(frames, 4, 6)
Esempio n. 2
0
def stdRun(path, graph=True):
    frames = files.reader(path)
    # if graph:
    #     chart.drawGraphJob(frames)
    frames = stdClean(frames)
    if graph:
        chart.drawGraphJob(frames)
    return pul.findBeats(frames, 4, 6)
Esempio n. 3
0
def classify(path, clas):
    """
        Makes a tuple with the file name, its frames and its classification
    """
    f = files.listDir(path)
    res = []
    j = 0
    for i in f:
        frames = files.reader(path + "/" + i)
        res.append([i, frames, clas])
        if j > 2:
            break
        j += 1
        # break#TODO: remove this
    return res
Esempio n. 4
0
def classify(path, clas):
    """
        Makes a tuple with the file name, its frames and its classification
    """
    f = files.listDir(path)
    res = []
    j = 0
    for i in f:
        frames = files.reader(path + "/" + i)
        res.append([i,frames,clas])
        if j > 2:
            break
        j += 1
        # break#TODO: remove this
    return res
Esempio n. 5
0
def stdShannonRun(path, graph=True, reader=True):
    if reader:
        frames = files.reader(path)
    else:
        frames = path
    # if graph:
    #     chart.drawGraphJob(frames)
    frames = flt.halfRate(frames)
    frames = flt.norm(frames)
    frames = stdMovArg(frames)
    frames = flt.shannon(frames)
    frames = flt.avgShannon(frames, 40, 20)
    if graph:
        chart.drawGraphJob(frames)
    # return pul.findBeats(frames, 4, 6)
    return frames
Esempio n. 6
0
def stdShannonRun(path, graph=True, reader=True):
    if reader:
        frames = files.reader(path)
    else:
        frames = path
    # if graph:
    #     chart.drawGraphJob(frames)
    frames = flt.halfRate(frames)
    frames = flt.norm(frames)
    frames = stdMovArg(frames)
    frames = flt.shannon(frames)
    frames = flt.avgShannon(frames, 40, 20)
    if graph:
        chart.drawGraphJob(frames)
    # return pul.findBeats(frames, 4, 6)
    return frames