import nanocamera as nano # Create the Camera instance for No rotation (flip=0) with size of 1280 by 800 # Connect to CSI camera with ID 0 (Default) camera_1 = nano. If the image is inverted, set flip = 2 Multiple CSI Camera support.įor Multiple CSI Cameras, set the device_id to the ID of the camera. Camera ()Ĭustomizing the width and height import nanocamera as nano # Create the Camera instance for No rotation (flip=0) with size of 1280 by 800 camera = nano. Working with CSI CameraĬreate a CSI camera using default FPS=30, default image size: 640 by 480 and with no rotation (flip=0) import nanocamera as nano # Create the Camera instance for 640 by 480 camera = nano. Can be installed in two ways with Pip or Manually.
If you don't have OpenCV, you can install one with pip: pip3 install opencv-python This library requires OpenCV to be installed to work.
Supports threaded read - available to all camera types.Easily read images as numpy arrays with image = camera.read().Support both Hardware and CPU acceleration.Should work with other Jetson boards like Jetson TX1, TX2 and others (Not tested).It is based on Accelerated GStreamer Plugins.Frame rate enforcement ensures the cameras work at the given frame rate using GStreamer video rate plugin.*Only available for USB, RTSP, and IP/MJPEG cameras. Support different Camera Flip Mode (Counterclockwise, Rotate 180 degrees, Clockwise - 90 degrees, Horizontal Flip, Vertical Flip).The image file can be called directly with OpenCV imshow If you like NanoCamera library - give it a star, or fork it and contribute!. Works with IP Cameras(JPEG codec) or any MJPEG streaming source (Currently, supports CPU acceleration.Works with RTSP streaming camera and video with hardware acceleration (only supports H.264 video codec).Works with various USB cameras (Tested with Logitech USB camera).Works with CSI Cameras (Tested and Works).
It currently supports the following types of camera or streaming source: A simple to use camera interface for the Jetson Nano for working with USB, CSI, IP and also RTSP cameras or streaming video in Python 3.