Code Monkey home page Code Monkey logo

jetson_camera's Introduction

Jetson CSI camera node(let)

The node(let) is based on the JetsonHacks' Jetson Nano CSI repository. As such, it only supports Raspberry Pi v2 cameras (and others that are supported by Jetson Nano). Additionally, it requires OpenCV with GStreamer support (see JetsonHacks' OpenCV build scripts to build one).

Parameters

  • cap_width, cap_height (int, default: 1280, 720) - Width and height of the captured image. These parameters only affect the capturing mode! Be sure to set them to one of the supported modes for your camera (Raspberry Pi camera v2 supports 3280x2464@21fps, 3280x1848@28fps, 1920x1080@30fps, 1280x720@60fps).
  • width, height (int, default: 640, 480) - Width and height of the output image.
  • fps (int, default: 60) - Desired framerate/publish rate [Hz].
  • flip_method (int, default 0) - Image rotation/flipping. 0 for no rotation, see detailed description at JetsonHacks.
  • grayscale (int, default 0) - Convert camera image to grayscale. 0 for no conversion, 1 for conversion.
  • output_resize (int, default 0) - Resize output image. 0 for no resize, 1 for 120x120 output image. Nvidia's nvvidconv doesn't support smaller resolution than 320x240. Scale and ROI is hardcoded in nodelet.
  • frame_id (string, default: "main_camera_optical")- Camera frame name.
  • capture_delay (double, default: 0) - Additional time (in seconds) that is substracted from the timestamp. Allows to compensate for capture delays.
  • topic_name (string, default: "image_raw") - Image topic name.
  • camera_info_url (string, default: "") - URL pointing to the camera info yaml file.

Nodelet

The node is meant to run as a nodelet (jetson_camera/JetsonCameraNodelet). In fact, the node is basically a standalone simplified nodelet manager.

Miscellaneous stuff

Red tint on camera image

The image captured by this node may have a red tint that is more pronounced near the edges. This can be fixed to a degree by using an ISP camera override.

An ISP override file for an Arducam imx219 board (camera_overrides.isp) is placed in this repository in the extra folder. Place it in the /var/nvidia/nvcam/settings on your Jetson Nano, set its permissions to 664 and its owner:group to root:root.

Note that, according to RidgeRunner, only ODMs have access to the required tools for ISP calibration files.

jetson_camera's People

Contributors

sfalexrog avatar dudasdavid avatar goldarte avatar

Stargazers

Sean Stevens avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.