temas.Camera
- class Camera(port=8081, ip_address='')[source]
Bases:
objectThis class allows the control of camera using urllib.
Methods
__init__([port, ip_address])Initializes the Camera class
Returns the most recent frame
set_brightness(brightness_percent)Set brightness of visual camera 0-100 :return: Brightness :rtype: String
set_contrast(contrast_percent)Set contrast of visual camera 0-100 :return: Contrast :rtype: String
set_exposure_time(microseconds)Set exposure time of visual camera 50-33000µs :return: Exposure time :rtype: String
set_gain(gain_value)Set gain of visual camera 1.123-16.0 :return: Gain :rtype: String
set_lens_position(lens_position_percent)Set lens position of visual camera 0-100 :return: Lens position :rtype: String
set_saturation(saturation_percent)Set saturation of visual camera 0-100 :return: Saturation :rtype: String
Starts the thread to fetch frames.
Stops the thread.
update()Continuously fetches frames from the MJPEG stream.
- get_frame()[source]
Returns the most recent frame
- Returns:
Frame
- Return type:
numpy.ndarray or None
- set_exposure_time(microseconds)[source]
Set exposure time of visual camera 50-33000µs :return: Exposure time :rtype: String
- set_brightness(brightness_percent)[source]
Set brightness of visual camera 0-100 :return: Brightness :rtype: String
- set_saturation(saturation_percent)[source]
Set saturation of visual camera 0-100 :return: Saturation :rtype: String
- set_contrast(contrast_percent)[source]
Set contrast of visual camera 0-100 :return: Contrast :rtype: String