Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Latest commit

 

History

History

2-python-test

README.md

Python Camera via. Docker on macOS, Ubuntu and Raspbian

Twitter: @thomasbjgilbert Language: Python License: MIT

This project will demonstrate how to use Python to access the videofeed from your camera, while still supporting Docker.

Build

docker build -t python-test .

Run

docker run --rm -it --device=/dev/video0 python-test

Contents

  • main.pu - will iterate over all your camera devices until there are none left.
  • demo-ui.py - will open a window on your local computer showing you some video feed. Note this cannot run in Docker
  • demo-tpu.py- will try to load the tensorflow libraries in python, and exit when done.