Beispiel #1
0
def _getVideoInputInstance():
    """ Returns an instance of the videoInput class. """
    return vi.videoInput_getInstance()
Beispiel #2
0
def _getVideoInputInstance():
    """ Returns an instance of the videoInput class. """
    return vi.videoInput_getInstance()
Beispiel #3
0
import videoInput as vi
import numpy as np

print vi.VERSION

print "LOADED VIDEOINPUT LIB"

vin = vi.videoInput_getInstance()
assert isinstance(vin, vi.videoInput)

devices = vi.DeviceList()
vin.getListOfDevices(devices)
for d in devices:
    assert isinstance(d, vi.Device)
    print d.friendlyName, d.symbolicName
    dev = d
dev = devices[1]
assert isinstance(dev, vi.Device)
print "LOADED CAPTURE DEVICES" 

deviceSettings = vi.DeviceSettings()
deviceSettings.symbolicLink = dev.symbolicName
deviceSettings.indexStream = 0
deviceSettings.indexMediaType = 195
captureSettings = vi.CaptureSettings()
captureSettings.readMode = vi.ReadMode.SYNC
captureSettings.videoFormat = vi.CaptureVideoFormat.RGB24

stream = dev.listStream[0]
assert isinstance(stream, vi.Stream)
mediaType = stream.listMediaType[195]
Beispiel #4
0
import videoInput as vi
import numpy as np

print vi.VERSION

print "LOADED VIDEOINPUT LIB"

vin = vi.videoInput_getInstance()
assert isinstance(vin, vi.videoInput)

devices = vi.DeviceList()
vin.getListOfDevices(devices)
for d in devices:
    assert isinstance(d, vi.Device)
    print d.friendlyName, d.symbolicName
    dev = d
dev = devices[1]
assert isinstance(dev, vi.Device)
print "LOADED CAPTURE DEVICES"

deviceSettings = vi.DeviceSettings()
deviceSettings.symbolicLink = dev.symbolicName
deviceSettings.indexStream = 0
deviceSettings.indexMediaType = 195
captureSettings = vi.CaptureSettings()
captureSettings.readMode = vi.ReadMode.SYNC
captureSettings.videoFormat = vi.CaptureVideoFormat.RGB24

stream = dev.listStream[0]
assert isinstance(stream, vi.Stream)
mediaType = stream.listMediaType[195]
def _getVideoInputInstance():
    return vi.videoInput_getInstance()
Beispiel #6
0
def _getVideoInputInstance():
    return vi.videoInput_getInstance()