Extension for the Matrix-Alt-Core package to add camera functionality
Project description
Matrix-Alt-Cameras
Matrix-Alt-Cameras is an extension package to the Matrix-Alt-Core framework, designed to add camera capabilities to your Alt Agents with minimal setup.
🚀 Quick Start
Here's a basic example using an OpenCV-compatible webcam:
from Alt.Core.Agents import Agent
from Alt.Cameras.CameraUsingAgent import CameraUsingAgentBase
from Alt.Cameras.Captures.OpenCVCapture import OpenCVCapture
import cv2
class CamTest(CameraUsingAgentBase):
def __init__(self):
super().__init__(capture=OpenCVCapture("test", 0))
def runPeriodic(self):
super().runPeriodic()
cv2.putText(self.latestFrameMain, "This test will be displayed on top of the frame", (10, 20), 1, 1, (255, 255, 255), 1)
def getDescription(self):
return "test-read-webcam"
if __name__ == "__main__":
from Alt.Core import Neo
n = Neo()
n.wakeAgent(CamTest, isMainThread=True)
n.shutDown()
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
matrix_alt_cameras-0.0.1.tar.gz
(20.5 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
File details
Details for the file matrix_alt_cameras-0.0.1.tar.gz.
File metadata
- Download URL: matrix_alt_cameras-0.0.1.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
902dcdef62a4a591f5f699add70697088c5336ca967b918c1fae6709da7358ae
|
|
| MD5 |
9d8018f83356bf95597f0798e7e7c8dd
|
|
| BLAKE2b-256 |
e8c8de31e513b608d6738fa835fd1a8621d77f200e7cda612a96d6897caac26e
|
File details
Details for the file matrix_alt_cameras-0.0.1-py3-none-any.whl.
File metadata
- Download URL: matrix_alt_cameras-0.0.1-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82e3047c14d0f56f0bc5ffdeaa1ce6656cce95d336206da578c867a154a84fe7
|
|
| MD5 |
5da0053576ad59b188984bc75666cb8a
|
|
| BLAKE2b-256 |
7ce7a56ae74f10c696477f8c8464423d34c2ffeff5c75963d89bc557c2b1ac40
|