.. _SD.CameraDevelopment.ArgusNvrawTool: .. include:: /content/swdocs.rsts .. spelling:: lps decompanding Libargus Omnivision compandingLut companding decompanding headerless linearization linearize lps nvargus nvm nvraw pwlinfo pwl sensorinfo skipframes th ubuntu writeToFile yuv Argus NvRaw Tool !!!!!!!!!!!!!!!! **Applies to**: Jetson Xavier NX and Jetson AGX Xavier series .. todo:: Does it also support Jetson AGX Orin? If so, the "applies to" may be omitted. Argus NvRaw (``nvargus_nvraw``) is a Bayer raw command line interface (CLI) capture tool for the Jetson platform. It saves a captured image and its metadata in a file using nvraw format, described below. It can also save a captured image in JPEG, YUV, and headerless raw formats. It accepts user-specified manual exposure control parameters. You can use Argus NvRaw to initiate a capture after auto white balance (AWB )and auto exposure (AE) convergence have been achieved by providing a large number of frames to be skipped. **nvraw format**, also called **Bayer raw format**, is an NVIDIA proprietary file format for saving Bayer Raw image captures and associated metadata. An nvraw file has a file extension of ``.nvraw``. If the image contains multiple exposures, as from HDR image captures, an nvraw file can save the individual exposures as well. nvraw files are used mainly for tuning and improving image quality during camera driver development. Hence, Argus NvRaw is targeted to camera driver developers who have engaged a scaling partner to assist with tuning a driver for optimum image quality. By capturing nvraw images, you can provide data that your partner can use to tune the camera driver. Prerequisites for Use @@@@@@@@@@@@@@@@@@@@@ You need the following hardware and operating system to perform camera software development: - An |NVIDIA(r)| |Jetson Xavier(tm) NX| or |Jetson AGX Xavier(tm)| series device. .. todo:: Orin? - Jetson Linux installed on the Jetson device. You need the following software packages on the Jetson device: - NVIDIA Libargus Camera API (a part of the |NVIDIA JetPack(tm)| SDK For more information about JetPack SDK, see the page `Introduction to JetPack `__ in `NVIDIA JetPack SDK `__. - A functional camera sensor driver. Camera Sensor Modes @@@@@@@@@@@@@@@@@@@ Camera sensors can have more than one mode. Each mode has a resolution, frame rate, CSI and dynamic bit depths, and mode type. Each mode is identified by an unsigned; integer. The first mode is mode 0, and the last is mode *m*\ |minus|\ 1, where *m* is the number of modes. Different camera sensors support modes the fall into either or both of two **mode types**: - **SDR** (Standard Dynamic Range), also known as **Bayer** mode type. This mode type is supported by almost every camera sensor. Image pixels are not compressed, and no conversion is needed for rendering the image on a viewer. - **HDR** (High Dynamic Range), also known **WDR** (Wide Dynamic Range). This mode type is not as widely supported as SDR. In this mode type the camera captures more than one exposure per image. The resulting output image may be compressed, in which case a view needs information about the compression to recover the original pixel information. HDR mode has sub-modes, one of which is **WDR PWL** (Wide Dynamic Range Piecewise Linear). In this sub-mode, images are compressed based on a set of x and y coordinates, reducing the reduced number of bits needed to hold pixel data. The same set of coordinates are used to decompress the pixels and recover the original data. When you run the ``nvargus_nvraw`` command, you select a mode with a command line option. (See `nvargus_nvraw Usage <#nvargus-nvraw-usage>`__.) If you select an HDR mode, you may have to enter additional mode-specific information on the command line. nvargus_nvraw Command @@@@@@@@@@@@@@@@@@@@@ This section describes the usage of the ``nvargus_nvraw`` command and shows several examples of its use. nvargus_nvraw Usage ################### The usage of ``nvargus_nvraw`` is:: $ nvargus_nvraw [] Where ```` is an optional set of one or more command line options. The table below describes options for this command. +----------------------+------------------------------------+----------------------+ | Option | Description | Default value | +======================+====================================+======================+ | --c | Specifies the zero-based ID of the | 0 | | | sensor to be used. | | +----------------------+------------------------------------+----------------------+ | --mode | Specifies the zero-based mode | 0 | | | number of the sensor. | | +----------------------+------------------------------------+----------------------+ | --file | Specifies the complete pathname | — | | | for the NVRAW output file. | | +----------------------+------------------------------------+----------------------+ | --exp | Specifies an exposure set | Current value in the | | "