Skip to main content

A simple tool to stream camera in shell.

Reason this release was yanked:

Not stable

Project description

CamShell

CamShell, A simple way to stream a camera as ASCII art directly in a terminal.

Installation

Using pip:

pip install camshell

How to Use

CLI Usage:

After installation, you can run the camshell command-line tool or by providing the device id.

# Run the default device
camshell

# Or run by device-id
camshell 1

# Or a device path specifically
camshell /dev/video3

Python API Usage

If you’d like to use CamShell in your Python code, here’s how:

from camshell import CamShell

# simply call:
device_id = "/dev/video0"
CamShell.start(device_index=device_id)

# or in case of MacOS
CamShell.start(avf_source=True)

Run on a custom screen

from camshell import CamShell
from camshell.display import Display
from camshell.vision.camera import GenericCamera

# Create a GStream-based camera object
camera = GenericCamera(device_index=cap_id, avf_source=True)

# Create a Curses display
display = Display()

# Create and run the CamShell
cs = CamShell(camera, display)
cs.initialize()
cs.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camshell-0.1.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

camshell-0.1.4-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file camshell-0.1.4.tar.gz.

File metadata

  • Download URL: camshell-0.1.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for camshell-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7c824897eb130862e12137f2f18757b94173d1bbdbc330ceaecd8c68562f2174
MD5 d0d8b4b3b6c9328b020d649ee3ffde74
BLAKE2b-256 e1e19d2951c9924a72ebafe50f8e669aa434c46585668d1d8728da1d0e912ff5

See more details on using hashes here.

File details

Details for the file camshell-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: camshell-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for camshell-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f3d3962d4c20fde21a1068f4058a83cacb948aba467d8bd62e97239bc20b1a77
MD5 df8d276b7ce9bfdd178860826635b676
BLAKE2b-256 56c7c373a93ed2e71ea0681522f849c6bd8d4319aea2ccef92357618e133a657

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page