Giter Site home page Giter Site logo

laser-triangulation's Introduction

laser-triangulation

  • Implement Halcon's sheet-of-light 3D reconstruction demo with OpenCV

  • The name of the Halcon demo is calibrate_sheet_of_light_calplate.hdev

Tools used:

  • OpenCV (4.5.3)
  • CMake (3.21.0)

Usage

  1. Copy all images into a folder, name it as "images".
  2. Move the folder to the same directory of the demo executable.
  3. Run the demo executable.

Download images

Source code in "src" folder

  • Code written when in development and test
    • calibrate_camera.cc Camera calibration.
    • calibrate_laser.cc Laser plane calibration.
    • calibrate_movement.cc Movement of the platform calibration.
    • extract.cc Laser line extraction.
    • scan.cc Reconstruction from images.
  • Static library "utils" code
    • laser_triangulation.h The header
    • fit_3d_plane.cc
    • extract_laser_line.cc
    • reconstruction.cc
    • back_projection.cc Project image points to camera coordinate.
    • write_ply.cc Output result to PLY format.
  • Final demo code: calibrate_sheet_of_light_calplate.cc

Reconstructed connection rod displayed in Matlab.

Reconstructed object display in Matlab

Issues

  • Laser line extraction method is not accurate and robust.

laser-triangulation's People

Contributors

songyuncen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laser-triangulation's Issues

back_projection.cc中的GetObjectPlaneInCameraCoordinate函数

您好,请问下unit_z是不是rot的最后一列向量,origin是不是就是平移的向量。
那这个函数计算平面方程是在世界坐标系的平面方程吗?为什么plane[3] = -(plane[0] * origin.at(0, 0) +plane[1] * origin.at(1, 0) +plane[2] * origin.at(2, 0))?

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.