A simple tool to stream camera in shell.
Project description
CamShell
CamShell, a light weight ASCII art video streamer.
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
# Or stream from a file
camshell -f ./my_video.mp4
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()
Output Example
Project details
Release history Release notifications | RSS feed
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.7.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
camshell-0.1.7-py3-none-any.whl
(12.1 kB
view details)
File details
Details for the file camshell-0.1.7.tar.gz.
File metadata
- Download URL: camshell-0.1.7.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ff45cc622c1b7c00e4296b8a883b6f356ba4a703962d7ee5b2c4facb0d50ac9
|
|
| MD5 |
3545bbf8b74e666250bb03eb048ccf89
|
|
| BLAKE2b-256 |
d788db0ed2ca233c7a15616d90b76ea22e694981de7f862a0685fe87dcbba7e9
|
File details
Details for the file camshell-0.1.7-py3-none-any.whl.
File metadata
- Download URL: camshell-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d1127e073fc2f8ba481c0bad0f5a409586e08c73a4dad6e7cd70d64f0fd86cc
|
|
| MD5 |
3c27ad952e335fa752de98d48c04fa4c
|
|
| BLAKE2b-256 |
7e9852f47291b9bf05e23ec1c6f9fecd08263ea94215f1452e16e81d449eaee7
|