Ejemplo n.º 1
0
 def testPsDigit(self):
     user_image = image_parser.load_image(img_name='image2.png')
     pr_array = self.net.feedforward(user_image)
     self.textEdit.append('Drawn digit in Adobe Photoshop is considered to be {0}'.format(np.argmax(pr_array)))
Ejemplo n.º 2
0
 def drawDigitAndTest(self):
     drawer.launch()
     user_image = image_parser.load_image(img_name='custom_img.png')
     pr_array = self.net.feedforward(user_image)
     self.textEdit.append('Your drawn digit is considered to be {0}'.format(np.argmax(pr_array)))