slmsuite.hardware.cameras.pylablib#
Light wrapper for the pylablib package.
See the supported cameras.
pylablib must be installed pip install pylablib.
For example, the following code loads a UC480 camera:
# Load a legacy Thorlabs camera using the UC480 driver.
import pylablib as pll
pll.par["devices/dlls/uc480"] = "path/to/uc480/dlls"
from pylablib.devices.uc480 import UC480Camera
pll_cam = UC480Camera()
# Wrap the camera with the slmsuite-compatible class.
from slmsuite.hardware.cameras.pylablib import PyLabLib
cam = PyLabLib(pll_cam)
Note
Color camera functionality is not currently implemented, and will lead to undefined behavior.
Classes
A wrapped |