Skip to main content

An easy to use camera interface for NVIDIA Jetson and raspberry pi

Project description

bcam

bcam is an easy to use Python camera interface for NVIDIA Jetson.

This is forked form jetcam, intended to be used by BillioTech Team.

Of course, You can clone and use it as well, if you find it convenient.

Quick guide is here

If you find an issue, please let us know!

Install

pip3 install bcam

Usage

Start camera from Jupyter Notebook

from bcam import BCamera
import traitlets
import ipywidgets.widgets as widgets

def bgr8_to_jpeg(value):
    return bytes(cv2.imencode('.jpg', value)[1])

bcam = BCamera.builder() \
        .device(0) \
        .resolution(800, 600) \
        .fps(5) \
        .build()

bcam.start()

image_widget1 = widgets.Image(format='jpeg', width=400, height=400)

display(image_widget)

camera_link = traitlets.dlink((bcam, 'value'), (image_widget, 'value'), transform=bgr8_to_jpeg)

Stop

camera_link.release()
bcam.stop()

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

bcam-0.0.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

bcam-0.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file bcam-0.0.3.tar.gz.

File metadata

  • Download URL: bcam-0.0.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for bcam-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5e673830b55f16d696f49544988fb56c7eda6ab4798346dd2919d0bebfeb8dbf
MD5 6a612a91a554b732c3548a36ec22ec9c
BLAKE2b-256 ba8d56f2753fd4466411fba7c9a699682c32ec435850d69cb2118a62cae20b08

See more details on using hashes here.

File details

Details for the file bcam-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: bcam-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for bcam-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc9536f991462d00135c576e118d135d3dba0c25ff751d86621c4b833eef2b68
MD5 09240521d757bc2b09181b4f6a7d1118
BLAKE2b-256 a07b4464cf6ed16cc01b7315b1e35e18e34e55930c222b6a81d88baeec6a9692

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