epc-tofcam-native
The epc_tofcam_native library provides a high-level interface for capturing and processing data
from ESPROS EPC TOF sensors. It acquires raw TOF images from the sensor via the Linux V4L2
API and computes calibrated distance and amplitude images from the raw DCS frames.
It exposes Python bindings for the underlying libepctofcam C++ library.
All frame data is returned as 2D numpy arrays.
Website: https://www.espros.com
Products: https://www.digikey.com/en/supplier-centers/espros
Documentation: https://docs.espros.com/
Requirements
- Compatible espros ToF Sensor (e.g. epc670) must be installed and accessible on the system. (See epc670 tofhat manual)
- This Library is intended to run on all arm based APU's but has manly been tested on the raspberry pi 5.
Quickstart
Install the package using pip on your raspberry pi
pip install epc-tofcam-native
The following is an example script that captures distance/amplitude images from a epc670-tofhat
"""Basic example of using the Python API to capture a frame from the TOF camera."""
from epc_tofcam_native import TOFCam, TOFControl, FrameType
cam = TOFCam()
cam.open()
cam.setControl(TOFControl.MODULATION_FREQUENCY_HZ, 10_000_000)
cam.setControl(TOFControl.EXPOSURE_US, 2000)
cam.startStream()
frame = cam.captureFrame()
distance = frame.get(FrameType.DISTANCE)
amplitude = frame.get(FrameType.AMPLITUDE)
# distance and amplitude are 2D numpy arrays
# add your own code here to process or visualize them
cam.stopStream()
cam.close()
Metadata
Release files for epc-tofcam-native 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| epc_tofcam_native-1.4.0-cp314-cp314-manylinux_2_39_aarch64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.39+ ARM64 | Details |
| epc_tofcam_native-1.4.0-cp313-cp313-manylinux_2_39_aarch64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.39+ ARM64 | Details |
| epc_tofcam_native-1.4.0-cp312-cp312-manylinux_2_39_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.39+ ARM64 | Details |
Total release size: 1.4 MB
Release files / epc_tofcam_native-1.4.0-cp314-cp314-manylinux_2_39_aarch64.whl
| Download URL | epc_tofcam_native-1.4.0-cp314-cp314-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 458.2 kB |
| Tags | CPython 3.14 Linux glibc 2.39+ ARM64 |
|
SHA-256 checksum How to use checksums |
7cbf18bb4ab7f28c57fcfdf537935b34a7d74adbd5021f543020090a16dbf8e0
|
|
BLAKE2b-256 checksum How to use checksums |
45b3b9a92b3504551273f0b4fd1e30796524b088069fbf705eb67d9cce1afc3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / epc_tofcam_native-1.4.0-cp313-cp313-manylinux_2_39_aarch64.whl
| Download URL | epc_tofcam_native-1.4.0-cp313-cp313-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 458.4 kB |
| Tags | CPython 3.13 Linux glibc 2.39+ ARM64 |
|
SHA-256 checksum How to use checksums |
de8407ffe466ee3dfae8855dc9064a329fdd22c7df2b5aaef4cca25bfd33b933
|
|
BLAKE2b-256 checksum How to use checksums |
72f63fd725b9b451035c432a9e0763ec28ddeec8c47095a104ff71d0c3fff9c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / epc_tofcam_native-1.4.0-cp312-cp312-manylinux_2_39_aarch64.whl
| Download URL | epc_tofcam_native-1.4.0-cp312-cp312-manylinux_2_39_aarch64.whl |
|---|---|
| Size | 458.0 kB |
| Tags | CPython 3.12 Linux glibc 2.39+ ARM64 |
|
SHA-256 checksum How to use checksums |
1525c26425eb1a526bfd3589a22d6225556f8fc76df176689b2505a8bfb4af9f
|
|
BLAKE2b-256 checksum How to use checksums |
9a7d2c2301ba7b4cb4a84f5ecd9042fd2c12440ed54c1dc51461cfcae648aca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|