Skip to content

Quick Start Guide on Linux

Hardware


Package Including


Finished Assemble


Warning

The Tripod displayed in the picture is not included in the package. If you need the tripod, please check UB0224 and UB0216 for additional purchase.

Software


Note

The camera module is currently only tested on Ubuntu 22.04.

Download Source Code


git clone -b Arducam108MPDemo https://github.com/ArduCAM/ArducamUVCPythonDemo.git

Install Dependencies


python -m pip install -r requirements.txt

Check Resolution


v4l2-ctl --list-formats-ext

Preview & Save Images


Tip

To save images with 108MP resolution, you must use the following example Demo. For other resolutions, you can use software such as Potplayer and AMCAP to retrieve images.

  • 108MP (12000x9000)

1.Preview the small resolution first and adjust the focus to make the picture clearer.

python arducam_demo.py -W 1280 -H 720 --ccm --tuning-file arducam_108mp.json -F

Note 1

There are differences between Linux platforms. For example, opencv of raspi transfers gstreamer to get the image by default. We need to set the -v parameter to 3 to use v4l2 to capture the image.

python arducam_demo.py -W 1280 -H 720 --ccm --tuning-file arducam_108mp.json -F -v 3

Note 2

If you have multiple cameras, plesae use the -i parameter to select the correct camera.
For example, if your computer has a built-in camera, use -i 1 to select the Arducam camera.

python arducam_demo.py -W 1280 -H 720 --ccm --tuning-file arducam_108mp.json -F -i 1

Note 3

Due to the differences between different platforms, the number of frames required to save a 108MP image will be different. On the Linux platform, you can set --wait-frames to 8

python arducam_demo.py -W 1280 -H 720 --ccm --tuning-file arducam_108mp.json -F --wait-frames 8


2.Enter a on the keyboard to save the 108MP image. Because the image resolution is high enough and the frame rate is low, it takes a longer time for ISP processing.

Therefore it takes a few seconds to save the image; The save success field appears to indicate successful saving.


3.Check the image, the saved image name is 108MP.jpg. Please check it in the current directory.


  • Other Resolutions

1.Preview the image and adjust the focus to make the picture clearer

Note

Please check the resolution referring to step 3 above, fill in the supported resolution information into the corresponding -W -H parameters, -W corresponds to the width, -H corresponds to the height.

python arducam_demo.py -W 4000 -H 3000 -F


2.Enter s on the keyboard to save the image; The default file name is ''{width}x{height}.jpg''