Nvidia Jetson Cameras

  1. Home
  2. Docs
  3. Nvidia Jetson Cameras
  4. Jetvariety – MIPI Camera Modules for Jetson Nano/Xavier NX
  5. 4. How To Access Arducam Jetvariety Autofocus Camera Module

4. How To Access Arducam Jetvariety Autofocus Camera Module

1. IMX298 16MP Autofocus Camera

  • Driver Installation

Note

You need to reboot your device after installing the driver.

cd ~
wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
chmod +x install_full.sh
./install_full.sh -m arducam
  • Detect the Camera

Input the following code to detect the camera. If the camera is detected, there will be /dev/video0 outputted.

ls /dev/video*
  • Check the Formats and Resolution Supported
sudo apt-get install -y v4l-utils
v4l2-ctl --list-formats-ext
  • Run the Camera

1.Download the Python Package

wget https://bootstrap.pypa.io/get-pip.py  
sudo python3 get-pip.py  
sudo pip3 install v4l2-fix 

2. Download the library

cd ~
git clone https://github.com/ArduCAM/MIPI_Camera.git 

3. Start Running

cd ~/MIPI_Camera/Jetson/Jetvariety/example
# directly preview
python arducam_displayer.py

# set resolution and formats to preview, example:
python arducam_displayer.py -f BG10 --width 1920 --height 1080
  • Adjust Focus

Note

Both manual focus and autofocus need to execute the above operation first, and then open another terminal and execute the following command.

Manually Adjust Focus

cd ~/MIPI_Camera/Jetson/Jetvariety/example/focus
python3 python3 FocuserExample.py

Autofocus

cd ~/MIPI_Camera/Jetson/Jetvariety/example/focus
python3 Focuser.py -i 7

2. IMX230 21MP Autofocus Camera

  • Driver Installation

Note

You need to reboot your device after installing the driver.

cd ~
wget https://github.com/ArduCAM/MIPI_Camera/releases/download/v0.0.3/install_full.sh
chmod +x install_full.sh
./install_full.sh -m arducam
  • Detect the Camera

Input the following code to detect the camera. If the camera is detected, there will be /dev/video0 outputted.

ls /dev/video*
  • Check the Formats and Resolution Supported
sudo apt-get install -y v4l-utils
v4l2-ctl --list-formats-ext
  • Run the Camera

1.Download the Python Package

wget https://bootstrap.pypa.io/get-pip.py  
sudo python3 get-pip.py  
sudo pip3 install v4l2-fix 

2. Download the library

cd ~
git clone https://github.com/ArduCAM/MIPI_Camera.git 

3. Start Running

cd ~/MIPI_Camera/Jetson/Jetvariety/example
# directly preview
python arducam_displayer.py

# set resolution and formats to preview, example:
python arducam_displayer.py -f BG10 --width 1920 --height 1080
  • Adjust Focus

Note

Both manual focus and autofocus need to execute the above operation first, and then open another terminal and execute the following command.

Manually Adjust Focus

cd ~/MIPI_Camera/Jetson/Jetvariety/example/focus
python3 python3 FocuserExample.py

Autofocus

cd ~/MIPI_Camera/Jetson/Jetvariety/example/focus
python3 Focuser.py -i 7
Was this article helpful to you? Yes No