Ejemplo n.º 1
0
def Objectinfer(inferprogram, exe, ActionGather, boundGather, colorbackground,
                colorbackgroundnow):
    infer_result = []
    for i in range(len(ActionGather)):
        if ActionGather[i] == 1:
            processer.Objectsave(colorbackgroundnow, boundGather[i], i)
        elif ActionGather[i] == -1:
            processer.Objectsave(colorbackground, boundGather[i], i)
    for i in range(len(ActionGather)):
        infer_result.append(model.infer(inferprogram, exe, str(i) + ".jpg"))
    return infer_result