yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
NUWA-HP60C Depth Camera📖
1.ROS1-Depth camera usage course
  • 1. Environment Construction
  • 2. Camera recording video
2.ROS1-ROS+OpenCV application
  • 1.ROS+Opencv Basics
  • 2.Face recognition
  • 3.Harris corner detection
  • 4. Target Tracking Algorithm
  • 5. Contour moment
  • 6. Polygonal Outlines
  • 7. Discrete Fourier Transform Algorithm
  • 8. Edge Detection Algorithm
  • 9. Face Detection Algorithm
  • 10. Optical flow detection algorithm
  • 11. Contour Detection
  • 12. General contour detection
  • 13. Feature point tracking
  • 14.HLS Color Filtering
  • 15. Hough circle detection
  • 16. Hough Line Detection
  • 17.HSV color filtering
  • 18.LK optical flow algorithm
  • 19. Human Detection Algorithm
  • 20. Phase-correlated displacement detection
  • 21. Image pyramid sampling algorithm
  • 22.RGB color filtering
  • 23. Clear background detection algorithm
  • 24. Streamlining the optical flow algorithm
  • 25. Simple Filter
  • 26. Threshold Image Processing
  • 27. Watershed segmentation algorithm
3.ROS1-Mediapipe course
  • 1.Hand detection
  • 2.Posture detection
  • 3.Overall detection
  • 4.Face Mesh
  • 5.Face recognition
  • 6.Face effects
  • 7.Face Detection
  • 8.3D Object Recognition
  • 9.Paintbrush
  • 10.Finger control
  • 11.Gesture Recognition
4.ROS1-Depth camera application course
  • 1. Camera calibration
  • 2. QR code
  • 3. Human Pose Estimation
  • 4. Target detection
  • 5. Point cloud data viewing
  • 6. AR Vision
  • 7.AR QR code tracking
  • 8. Color Tracking
  • 9. Object Tracking
5.ROS1-Linux basic course
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
6.ROS1-OpenCV course
  • 1.Opencv Source CV Introduction
  • 2.Image reading and display
  • 3.Picture writing
  • 4.Picture Quality
  • 5.Pixel Operation
  • 6.Picture scaling
  • 7.Picture cutting
  • 8.Picture translation
  • 9.Picture mirroring
  • 10.Affine transformation
  • 11.Picture rotation
  • 12.Perspective transformation
  • 13.Grayscale processing
  • 14.Image binarization
  • 15.Edge detection
  • 16.Line segment drawing
  • 17.Rectangle and circle drawing
  • 18.Text and picture drawing
7.ROS1 basic course
  • 1.ROS introduction
  • 2.ROS installation
  • 3.ROS common command tools
  • 4.ROS workspace
  • 5.ROS function package
  • 6.ROS node
  • 7.ROS topic publisher
  • 8.ROS topic subscribers
  • 9.ROS service client
  • 10.ROS service server
  • 11.ROS action client
  • 12.ROS action server
  • 13.ROS custom message reception
  • 14.ROS-launch file
  • 15.ROS-TF transformation
  • 16.ROS parameter service
  • 17.ROS-rviz use
  • 18.ROS-rqt tool usage
  • 19.Topic message recording and playback
  • 20.urdf model introduction
  • 21.gazebo introduction
  • 22.ROS distributed communication
8.ROS2-Depth Camera Application Course
  • 1. Use of Depth Camera
  • 2. Camera internal parameter calibration
  • 3. Color tracking
  • 4. KCF Object Tracking
  • 5. ORBSLAM2 Basics
  • 6. ORB_SLAM2 PCL Mapping
  • 7. ORB_SLAM2 Octomap Mapping
9.ROS2-OpenCV course
  • 1. ROS+OpenCV application
  • 2. QR code creation and recognition
  • 3. AR Vision
10.ROS2-Mediapipe course
  • 1.Hand detection
  • 2.Posture detection
  • 3.Overall detection
  • 4.Face Mess
  • 5.Face recognition
11.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
5.Bracket installation video
  • Bracket installation video
Download
  • ROS1_VM
  • ROS2_VM
  • ROS1_Code
  • ROS2_Code
  • DataSheet
  • 3D_Model_File
  • Windows Software
  • ROS2_Basic_VM
Download ZIP

Welcome to NUWA-HP60C Depth Camera repository

7.AR QR code tracking

7.AR QR code tracking

  • AR function package location: ~/ArTrack_ws/src/ar_track_alvar/ar_track_alvar

    7.1 Overview

    ARTag (AR tag, AR means "augmented reality") is a fiducial marking system, which can be understood as a reference for other objects. It looks similar to a QR code, but its encoding system is very different from that of a QR code. It is mostly used in camera calibration, robot positioning, augmented reality (AR) and other applications. One of its important functions is to identify the pose relationship between the object and the camera. ARTag can be attached to an object or an ARTag tag can be attached to a plane to calibrate the camera. After the camera recognizes the ARTag, it can calculate the position and pose of the tag in the camera coordinates.

    ar_track_alvar has 4 main functions:

    • Generate AR tags of different sizes, resolutions and data/ID encodings.
    • Identify and track the pose of a single AR tag, and optionally integrate kinect depth data (when kinect is available) for better pose estimation.
    • Use camera images to automatically calculate the spatial relationship between tags in a bundle so that users don't have to manually measure and enter tag positions in an XML file to use the bundle feature.

    Alvar is newer and more advanced than ARToolkit, which has been the basis for several other ROS AR tag packages. Alvar has adaptive thresholding to handle various lighting conditions, optical flow-based tracking for more stable pose estimation, and an improved tag recognition method that does not slow down significantly as the number of tags increases.

    7.2. Create ARTag

    • Generate multiple tags continuously on one image
    roscore
    rosrun ar_track_alvar createMarker

    image-20231017204924314

    You can enter [ID] and location information here, and enter [-1] to end. You can generate one or more, and design the layout yourself.

    image-20231017204952621

    • Generate a single number

    Command + parameter directly generates a digital image; for example,

    xxxxxxxxxx
    rosrun ar_track_alvar createMarker 11
    rosrun ar_track_alvar createMarker -s 5 33

    11: The number is the QR code of 11. -s: Specify the image size. 5: 5x5 image. 33: The number is the QR code of 33.

    The generated AR QR code is saved in the directory of the terminal running the command.

    7.3, ARTag recognition and tracking

    7.3.1, Start ARTag recognition and tracking

    xxxxxxxxxx
    roslaunch ascam_visual ar_track.launch

    image-20241115152850657

    In rviz, you need to set the corresponding camera topic name,

    • Image_Topic: Obbec's camera is [/ascamera_hp60c/rgb0/image].
    • Marker: rviz display component, different blocks show the location of the AR QR code.
    • TF: rviz display component, used to display the coordinate system of the AR QR code.
    • Camera: rviz display component, displaying the camera screen.
    • world: world coordinate system.
    • camera_link: camera coordinate system.

launch file parsing,

​x
<launch>
    <arg name="open_rviz" default="true"/>
    <arg name="marker_size" default="5.0"/>
    <arg name="max_new_marker_error" default="0.08"/>
    <arg name="max_track_error" default="0.2"/>
​
    <arg name="cam_image_topic" default="/ascamera_hp60c/rgb0/image"/>
    <arg name="cam_info_topic" default="/ascamera_hp60c/rgb0/camera_info"/>
    <arg name="output_frame" default="/ascamera_hp60c_camera_link_0"/>
​
    <include file="$(find ascamera)/launch/hp60c.launch"/>
    <node pkg="tf" type="static_transform_publisher" name="world_to_cam" args="0 0 0.5 0 1.57 0 world ascamera_hp60c_camera_link_0 10"/>
    <node name="ar_track_alvar" pkg="ar_track_alvar" type="individualMarkersNoKinect" respawn="false" output="screen">
        <param name="marker_size" type="double" value="$(arg marker_size)"/>
        <param name="max_new_marker_error" type="double" value="$(arg max_new_marker_error)"/>
        <param name="max_track_error" type="double" value="$(arg max_track_error)"/>
        <param name="output_frame" type="string" value="$(arg output_frame)"/>
        <remap from="camera_image" to="$(arg cam_image_topic)"/>
        <remap from="camera_info" to="$(arg cam_info_topic)"/>
    </node>
    <node pkg="rviz" type="rviz" name="rviz" args="-d $(find ascam_visual)/rviz/ar_track.rviz" if="$(arg open_rviz)"/>
</launch>
​
  • Node parameters:

    • marker_size (double) : The width of one side of the black square marker border in centimeters.
    • max_new_marker_error (double) : A threshold for determining when a new marker can be detected under uncertainty.
    • max_track_error (double) : A threshold for how much tracking error can be observed before a marker disappears.
    • camera_image (string) : The topic name of the image used to detect the AR tag. This can be monochrome or color, but should be an unrectified image as rectification is performed in this package.
    • camera_info (string) : The topic name of the camera calibration parameters provided in order to rectify the image.
    • output_frame (string) : The coordinate position of the published AR tag in the camera coordinate system.

    7.3.2, View the node graph

    xxxxxxxxxx
    rqt_graph

    image-20241115153218326

    7.3.4, View the TF tree

    xxxxxxxxxx
    rosrun rqt_tf_tree rqt_tf_tree

    image-20241115153323855

    7.3.3, View the output topic information

    xxxxxxxxxx
    rostopic echo /ar_pose_marker

    Shown as follows:

    image-20241115153509647

    • frame_id: camera coordinate system name
    • id: the recognized number is 0
    • pose: QR code pose
    • position: the position of the QR code coordinate system relative to the camera coordinate system
    • orientation: the orientation of the QR code coordinate system relative to the camera coordinate system
AR Vision
Color Tracking

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文