Exemple #1
0
    def shot(self, camera):
        print("taking shot")
        path = '../image.jpg'
        camera.capture(path, use_video_port=True)

        image = Image(config=self.config, path=path)
        image.upload_image()
Exemple #2
0
 def test_load_image(self):
     config = Config()
     image = Image(config,"Config.py")
     image.upload_image()
     self.assertEqual('foo'.upper(), 'FOO')