camera_service

Module Contents

Classes

CameraService

Reads from a camera and publishes image data.

Functions

main()

Set names, collect params, and give service to server

Attributes

path

using_kinetic

camera_service.path
camera_service.using_kinetic
class camera_service.CameraService(name, param)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Reads from a camera and publishes image data.

As a sensor service, the camera is responsible for reading the image data from a physical camera and publishing it so that it can be recorded or used by a detector.

The camera has many parameters which are set in the configuration.yaml

The public functions exposed by the camera include start(), stop(), and pause()

service_id

Setup the camera

start(self)

Start the camera stream and publish images

stop(self)

Stop the service and close the stream

pause(self)

Set the service to success to stop publishing

setup_camera(self)

Setup the camera

_open_stream(self)

Opening the stream

_close_stream(self)

Closing the stream

_read_stream_and_publish(self)

Continously publish image data from the camera

While state is START publish images

camera_service.main()

Set names, collect params, and give service to server