Giter Site home page Giter Site logo

videosystemstech / charuco_detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carlosmccosta/charuco_detector

0.0 0.0 0.0 545 KB

ROS package for detecting ChArUco patterns

License: BSD 3-Clause "New" or "Revised" License

C++ 88.24% CMake 11.76%

charuco_detector's Introduction

charuco_detector

Detector of ChArUco patterns using the cv::aruco::CharucoBoard.

The main advantage of using ChArUco patterns vs the traditional chessboards is their ability to reliably estimate the board 6 DoF pose even if some of the squares / markers are occluded or outside of the image field of view. This is useful for calibrating cameras and also for calculating coordinate systems for robotics applications.

Usage

  • Choose and print a pattern from the boards/vector_format folder according to your camera work area or create a new one.

  • Update the launch/charuco_detector.launch parameters according to the pattern you are going to use and your camera driver topics (image_raw and camera_info).

  • Run your camera driver

  • Run charuco_detector.launch (preconfigured for the A3 (10x14) pattern in the boards/vector_format)

    • Example for the A3 (10x14) pattern in the boards/vector_format folder:
      roslaunch charuco_detector charuco_detector.launch image_topic:=/camera/image_raw camera_info_topic:=/camera/camera_info
      
  • The 6 DoF pose will be published to TF (camera_frame_id -> charuco) and topic $(arg image_topic)_charuco_pose

  • The results of the detection of the markers and ChArUco origin will be drawn into an image that is published to topic $(arg image_topic)_charuco_detection

Notes

Even when printing in real size, there might be a small scaling applied by the printer, which can be mitigated by measuring all the black and white scares in the widest axis and then updating the size of the squares and markers given to the ChArUco detector with:

updated_squares_sides_size_in_meters = measure_of_all_squares_in_widest_direction / number_of_squares_in_y
updated_markers_sides_size_in_meters = (updated_squares_sides_size_in_meters / squares_sides_size_in_meters) * markers_sides_size_in_meters

charuco_detector's People

Contributors

carlosmccosta avatar videosystemstech 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.