Skip to main content

Eric's Camera library

image

Work-in-progress! Only works for the exact workflows I use right now.

Provides Python classes to interact with various cameras. So far there is support for

  • CSI cameras on Jetson Orin platforms
  • USB cameras on Linux platforms
  • RTSP cameras on Linux platforms
  • Arbitrary gstreamer pipelines

The package also includes a nice calibration utility that can be run with python3 -m erics_cameras.calibrate, that will automatically select which images to include in the calibration dataset by criteria like stillness, uniqueness of the camera pose, and reprojection error. It will also show you the reprojections of the calibration target points using the latest calculated intrinsics in real time, and the intrinsics will be printed to the terminal for you to copy into your program with numpy.

This package requires you have a version of OpenCV with GStreamer support. The repo includes a build_opencv.sh script that will download the opencv 4.12 source code to ~/Downloads and install it with gstreamer support. You can test this is successfull with python3 -c "import cv2; print(cv2.getBuildInformation())" | grep GStreamer. The calibration script will break with opencv versions less than 4.10 and if you don't have the opencv contrib package installed. If another package requires opencv and pip automatically installs it, it will override the version built from source. To make this package work again you will need to pip uninstall opencv-python, which only removes the version installed with pip, and leaves the system opencv working.

I've tested this package to work with Ubuntu 22 on an x86 pc and Jetson Orin Nano and NX. If you're doing robotics in 2025 I think this is the happy path in terms of OS and hardware for getting max compatibility with other programs like Isaac Sim, ROS, and Gazebo.

Release files for erics-cameras 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erics-cameras 1.0.2
File Size Uploaded
erics_cameras-1.0.2.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for erics-cameras 1.0.2
File Interpreter ABI Platform
erics_cameras-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / erics_cameras-1.0.2.tar.gz

Download URL erics_cameras-1.0.2.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03ed1a23fe2499ee94c5c053d7d992379586b66c60f2090fb35bd8ad3d422fbc
BLAKE2b-256 checksum
How to use checksums
f95fa75f9755b4e618ed962c43f3b92824bf09eeaf283775c2671523678994da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / erics_cameras-1.0.2-py3-none-any.whl

Download URL erics_cameras-1.0.2-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ba5f7c823991396db230dc090b092c9f95f007ac10bd154e20b7f697aa183de
BLAKE2b-256 checksum
How to use checksums
ad3c35b7c8e73602e8a8de11574c34cb856e9bc9d081f0678e461973c8f61420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page