Quick Start Guide¶
A quick step-by-step tutorial to help you jump-start your Machine Vision adventure with the Arducam ToF camera.
Note
Raspberry Pi OS Bullseye is required for this camera (04/04/2022 or later releases), a fresh install is highly recommended.
Connecting the camera to Raspberry Pi¶
Step 1. Install the camera driver¶
wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p kernel_driver
When you see the reboot prompt, press y and then press enter to reboot.
Step 2. Pull the repository¶
git clone https://github.com/ArduCAM/Arducam_tof_camera.git
Step 3. Change the directory to Arducam_tof_camera¶
cd Downloads/Arducam_tof_camera
Step 4. Install dependencies¶
chmod +x Install_dependencies.sh
./Install_dependencies.sh
Raspberry Pi will automatically reboot.
Step 5. Change the directory to Arducam_tof_camera¶
cd Downloads/Arducam_tof_camera
Step 6. Compile & run¶
chmod +x compile.sh
./compile.sh
Once it’s successfully complied, live previews of the camera will automatically pop up.
Demo¶
Point Cloud¶
With the Point Cloud Library, you can quickly generate a real-time point cloud with Arducam ToF camera and your Raspberry Pi, and utilize it in various 3D processing software/algorithms.
Step 1. Environment Setup¶
sudo apt-get update
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libflann-dev
sudo apt-get install libvtkt7-dev
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake #cmake-gui
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common
sudo apt-get install libpcap-dev
sudo apt-get install libflann1.9 libflann-dev
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install vtk6 libvtk6.3 libvtk6-dev libvtk6.3-qt libvtk6-qt-dev
sudo apt-get install libqhull* libgtest-dev
sudo apt-get install freeglut3-dev pkg-config
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install mono-complete
sudo apt-get install libopenni-dev libopenni2-dev
Step 2. Installing PCL¶
sudo apt install libpcl-dev
Step 3. Installing the camera SDK¶
git clone https://github.com/dennis-ard/Arducam_tof_camera.git
Step 4. Run the example¶
./example/example_cpp/preivew_pointcloud



