NetworkCamera

Module used for grabbing images from a network camera. The module has been tested with the the Axis 2130 pan-til-zoom camera and probably works also with other Axis cameras. It requests a MJPEG stream.

Example XML definition

A simple example

  <module
      class = "NetworkCamera"
      name = "NetworkCamera"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "NetworkCamera".string
nameThe name of this instance of the module.string
size_xThe size of the imageint
size_yThe size of the imageint
host_ipThe IP address of the camerastring
host_portThe port used for the cameraint80
image_requestNot currently usedstringAXIS streaming
fpsDesired frames per seondint10
compressionRequested compressionint50

Module Connections

Outputs

NameDescription
INTENSITYThe intensity of the image
REDThe red channel of the image
GREENThe green channel of the image
BLUEThe blue channel of the image

Bugs

The image sizes should be calculated automatically from the first image.

The module currently ignores the image_request parameter and works only with AXIS cameras.

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

NetworkCamera.h
NetworkCamera.cc
NetworkCamera.ikc

blog comments powered by Disqus