waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.56k stars 358 forks source link

Jetson Nano #564

Open chazhenry opened 5 years ago

chazhenry commented 5 years ago

Is there a hardware abstraction layer in the code? What would it take to port it to the Jetson Nano?

6by9 commented 5 years ago

No. A lot.

PiCamera is written around the functionality of the Broadcom MMAL (Multi-Media Abstraction Layer) API. The Jetson Nano uses Nvidia's APIs, which generally require using GStreamer to retrieve frames using a custom plugin, or potentially via their libargus imaging API. See https://developer.nvidia.com/embedded/jetpack

It'd be far better to get someone to develop a custom Python wrapper for the Jetson rather than trying to repurpose PiCamera. Potentially the mainline libcamera project may help too, but that's still in fairly early stages and AFAIK not supporting Nvidia - libcamera.org