Exemple #1
0
def fullTest():
    trainImages, labels, testImages = loadImages()

    per = Perceptron(64, 8, 8)
    per.train(trainImages, labels, 10000)
    results = per.test(testImages)
    print(results)
def fullTest():
    trainImages, labels, testImages = loadImages()

    per = Perceptron(64, 8, 8)
    per.train(trainImages, labels, 10000)
    results = per.test(testImages)
    for image, result in zip(testImages, results):
        cv2.imshow("test", image * 255)
        print(result)
        cv2.waitKey(0)

    print(results)