Skip to main content

A package for camera streams on the google coral

Project description

TPUCameraManager

from TPUCameraManager.TPUCameraManager import CameraManager, GStreamerPipelines
import time
camMan = CameraManager() #Creates new camera manager object
#camMan = CameraManager()
cam2 = camMan.newCam(0,GStreamerPipelines.RGB,(640,480),30) #Creates new RGB camera stream at 640 x 480
time.sleep(1)
camMan.close(cam2) #Closes the camera stream
cam2 = camMan.newCam(0,GStreamerPipelines.H264,(1920,1080),30) #Creates new RGB camera stream at 1920 by 1080
while True:
    if(cam2): #Returns true if there are new values
        image = cam2.getImage() #CAN ONLY BE USED ON RGB IMAGE
        imageBytes = cam2.data #Used on H264 bytes stream
        print(image.shape)

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

TPUCameraManager-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

TPUCameraManager-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file TPUCameraManager-0.1.0.tar.gz.

File metadata

  • Download URL: TPUCameraManager-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for TPUCameraManager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cfe2be6fae939d1e5184a71a4bd7edcad076126bc13d133d7eea3b5df47e8c67
MD5 6c1b86c29e816875d54affb9260bbc95
BLAKE2b-256 ec82d36835f4cd5017c8566b70bdbf6faa39dc0e5ce8b6f146a15a25af088a9f

See more details on using hashes here.

File details

Details for the file TPUCameraManager-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: TPUCameraManager-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for TPUCameraManager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba45dfef4815dbff152e9921938c0e80d675b5121491e47a0159a018d0223bc
MD5 aa82767e0cb4068b178e0d6da5679032
BLAKE2b-256 b7c729417a00b606d46b7aa2c71005cffbae890d1e0ee41ac3224f11a07a64bd

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