Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.stabilizer_obj = Stabilizer(smoothing_radius = s_radius, border_type = border_type, border_size = border_size, logging = logging)
#log info
if logging:
print('Enabling Stablization Mode for the current video source!')
if enablePiCamera:
# only import the pigear module only if required
from .pigear import PiGear
# initialize the picamera stream by enabling PiGear Class
self.stream = PiGear(resolution=resolution, framerate=framerate, colorspace = colorspace, logging = logging, time_delay = time_delay, **options)
else:
# otherwise, we are using OpenCV so initialize the webcam
# stream by activating CamGear Class
self.stream = CamGear(source=source, y_tube = y_tube, backend = backend, colorspace = colorspace, logging = logging, time_delay = time_delay, **options)