コード例 #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()
コード例 #2
0
ファイル: test_vimba_async.py プロジェクト: RoGoSo/SimpleCV
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()
コード例 #3
0
ファイル: test_vimba.py プロジェクト: ahsnag/SimpleCV
def test_all():
    c = VimbaCamera()
    _getProperty(c)
    _getAllProperties(c)
    _setProperty(c)
    _setupASyncMode(c)
    _setupSyncMode(c)

    _getImage(c)
    _runCommand(c)
    _listAllCameras(c)
コード例 #4
0
def test_takeManyShots():
    c = VimbaCamera()
    printPrettyHeader("Test takeManyShots")

    _takeShots(c, 5, "vimba")
コード例 #5
0
def test_oneShot():
    c = VimbaCamera()
    printPrettyHeader("Test oneShot")

    img = c.getImage()
    img.save("test_oneShot.png")
コード例 #6
0
def test_oneGrayShot():
    c = VimbaCamera(properties={"mode": "gray"})
    printPrettyHeader("Test oneGrayShot")

    img = c.getImage()
    img.save("test_oneGrayShot.png")
コード例 #7
0
def _takeManyVimbaShots(idx):
    c = VimbaCamera()
    print("_takeManyVimbaShots %d" % idx)

    _takeShots(c, 10, "cam_vimba%d" % idx)
コード例 #8
0
def test_oneShot():
    c = VimbaCamera()
    printPrettyHeader("Test oneShot")

    img = c.getImage()
    img.save("test_oneShot.png")
コード例 #9
0
def test_oneGrayShot():
    c = VimbaCamera(properties={"mode":"gray"})
    printPrettyHeader("Test oneGrayShot")

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