Skip to content

Python driver for interfacing with the cameras in the SDL

License

Notifications You must be signed in to change notification settings

AD-SDL/camera_module

Repository files navigation

camera_module

Provides a simple MADSci node for integrating web cameras to capture images.

See definitions/camera_node_template.node.info.yaml for details on the capabilities of this node, and definitions/camera_node_template.node.yaml as a template for your own Camera Node definition file.

Installation and Usage

Python

# Create a virtual environment named .venv
python -m venv .venv
# Activate the virtual environment on Linux or macOS
source .venv/bin/activate
# Alternatively, activate the virtual environment on Windows
# .venv\Scripts\activate
# Install the module and dependencies in the venv
pip install .
# Run the environment
python -m camera_rest_node --host 127.0.0.1 --port 2000

Note: on Mac or Linux, you'll need to install the zbar dependencies manually (see https://pypi.org/project/pyzbar/ for details).

Docker

  • We provide a Dockerfile and example docker compose file (compose.yaml) to run this node dockerized.
  • There is also a pre-built image available as ghcr.io/ad-sdl/camera_module.
  • You can control the container user's id and group id by setting the USER_ID and GROUP_ID

About

Python driver for interfacing with the cameras in the SDL

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •