Giter VIP home page Giter VIP logo

arducam_tof_camera's Introduction

Arducam Depth Camera

Overview

This project is a use example based on arducam's depth camera. It includes basic image rendering using opencv, displaying 3D point clouds using PCL, and publishing depth camera data through the ROS2 system. The depth camera is the depth data obtained by calculating the phase difference based on the transmitted modulated pulse. The resolution of the camera is 240*180. Currently, it has two range modes: 2 meters and 4 meters. The measurement error is within 2 cm. The depth camera supports CSI and USB two connection methods, and needs an additional 5V 2A current power supply for the camera.

Run project on RassperyPi

Run the example in the exmaple folder

Install dependencies

Run in the Arducam_tof_camera folder

  ./Install_dependencies.sh

compile && run

Run in the Arducam_tof_camera folder

  ./compile.sh

You can also manually install and compile according to the following steps

1.Driver Install

Note: Since 5.15.38, the arducam-pivariety driver has been merged into the Raspberry Pi kernel and the name of the device tree is changed to arducam-pivariety, so dtoverlay=arducam-pivariety is required to set the overlay

  $ 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

2.Configuration

You need to alter the camera configuration in your /boot/config.txt file.to add dtoverlay.

  dtoverlay=arducam-pivariety,media-controller=0

To override the automatic camera detection, Bullseye users will also need to delete the entry camera_auto_detect=1 if present in the config.txt file. Your Raspberry Pi will need to be rebooted after editing this file

3.SDK install

  curl -s --compressed "https://arducam.github.io/arducam_ppa/KEY.gpg" | sudo apt-key add -
  sudo curl -s --compressed -o /etc/apt/sources.list.d/arducam_list_files.list "https://arducam.github.io/arducam_ppa/arducam_list_files.list"
  sudo apt update
  sudo apt install arducam-config-parser-dev arducam-usb-sdk-dev arducam-tof-sdk-dev

c&cpp example

project dependencies

  sudo apt-get update
  sudo apt-get install build-essential cmake 
  sudo apt-get install libopencv-dev
Compilation
  cd Arducam_tof_camera/example
  mkdir build && cd build
  cmake .. && make

Start

c test

Run in the example/build folder

  ./c/test_c

cpp example

Run in the example/build folder

  ./cpp/preview_depth
  #or
  ./cpp/capture_raw

arducam_tof_camera's People

Contributors

dennis-ard avatar arducam avatar openscaneu avatar 9iant avatar vlsd avatar pascalau 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.