Exemple #1
0
def test_Vimba_threaded_getImage():
    printPrettyHeader("Test Vimba_threaded_getImage")
    c = VimbaCamera(threaded=True)
    time.sleep(0.2)
    img = c.getImage()
    img.save("vimba.png")

    time.sleep(0.2)

    c.shutdown()
Exemple #2
0
def test_Vimba_threaded_getImage():
    printPrettyHeader("Test Vimba_threaded_getImage")
    c = VimbaCamera(threaded=True)
    time.sleep(0.2)
    img = c.getImage()
    img.save("vimba.png")

    time.sleep(0.2)

    c.shutdown()
Exemple #3
0
def test_all():
    c = VimbaCamera()
    _getProperty(c)
    _getAllProperties(c)
    _setProperty(c)
    _setupASyncMode(c)
    _setupSyncMode(c)

    _getImage(c)
    _runCommand(c)
    _listAllCameras(c)
def test_takeManyShots():
    c = VimbaCamera()
    printPrettyHeader("Test takeManyShots")

    _takeShots(c, 5, "vimba")
def test_oneShot():
    c = VimbaCamera()
    printPrettyHeader("Test oneShot")

    img = c.getImage()
    img.save("test_oneShot.png")
def test_oneGrayShot():
    c = VimbaCamera(properties={"mode": "gray"})
    printPrettyHeader("Test oneGrayShot")

    img = c.getImage()
    img.save("test_oneGrayShot.png")
def _takeManyVimbaShots(idx):
    c = VimbaCamera()
    print("_takeManyVimbaShots %d" % idx)

    _takeShots(c, 10, "cam_vimba%d" % idx)
def test_oneShot():
    c = VimbaCamera()
    printPrettyHeader("Test oneShot")

    img = c.getImage()
    img.save("test_oneShot.png")
def test_oneGrayShot():
    c = VimbaCamera(properties={"mode":"gray"})
    printPrettyHeader("Test oneGrayShot")

    img = c.getImage()
    img.save("test_oneGrayShot.png")