temas.Camera

class Camera(port=8081, ip_address='')[source]

Bases: object

This class allows the control of camera using urllib.

__init__(port=8081, ip_address='')[source]

Initializes the Camera class

Methods

__init__([port, ip_address])

Initializes the Camera class

get_frame()

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

start_thread()

Starts the thread to fetch frames.

stop_thread()

Stops the thread.

update()

Continuously fetches frames from the MJPEG stream.

update()[source]

Continuously fetches frames from the MJPEG stream.

start_thread()[source]

Starts the thread to fetch frames.

stop_thread()[source]

Stops the thread.

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

set_lens_position(lens_position_percent)[source]

Set lens position of visual camera 0-100 :return: Lens position :rtype: String

set_gain(gain_value)[source]

Set gain of visual camera 1.123-16.0 :return: Gain :rtype: String