Code Monkey home page Code Monkey logo

3d_line_detection's Introduction

📝 Hough Transform based 3D Line Detection


semihemisphere

🎉 TODO


🎛 Dependencies


sudo apt-get install \
    libpcl-dev \

🔨 How to Build


make default # to build the library
make apps # to build the examples

How to Run with Docker

# build
docker build -f ./dockerfiles/ubuntu2004.dockerfile -t 3d_line_detection .

# run
docker run -it --rm --net host -e DISPLAY=$DISPLAY -v $HOME/.Xauthority:/root/.Xauthority -v `pwd`:/workspace 3d_line_detection

🏃 How to Run


  • draw semihemisphere
# ./build/examples/draw_sphere_app [number/of/subdivision]
# eg: ./build/examples/draw_sphere_app 0
# number of subdivision: 0 -> 5
  • test 3d line detection example
# ./build/examples/3d_line_detection_app [path/to/pcd/file] [use/default/setting/yes:1/no:0] [num/range/bin] [sphere/granularity] [min/num/vote] [distance/to/line/thresh]
# eg: ./build/examples/3d_line_detection_app ./data/test_cloud.pcd 0 64 4 10 0.2
# note that if you increase number of accumulator cells, you need to reduce the threshold of minimum vote number
original pointcloud detected 3d lines

💎 References


3d_line_detection's People

Contributors

xmba15 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

3d_line_detection's Issues

Compilation error

While compiling, this error is created. Can you help me with that?

-- FLANN found (include: /usr/include, lib: /usr/lib/x86_64-linux-gnu/libflann_cpp.so) -- OpenNI found (version: 1.5.4.0, include: /usr/include/ni, lib: /usr/lib/libOpenNI.so;libusb::libusb) -- OpenNI2 found (version: 2.2.0.33, include: /usr/include/openni2, lib: /usr/lib/x86_64-linux-gnu/libOpenNI2.so;libusb::libusb) -- Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS) ** WARNING ** io features related to pcap will be disabled -- OpenNI found (version: 1.5.4.0, include: /usr/include/ni, lib: /usr/lib/libOpenNI.so;libusb::libusb) -- OpenNI2 found (version: 2.2.0.33, include: /usr/include/openni2, lib: /usr/lib/x86_64-linux-gnu/libOpenNI2.so;libusb::libusb) -- Found Qhull version 8.0.2 -- OpenNI found (version: 1.5.4.0, include: /usr/include/ni, lib: /usr/lib/libOpenNI.so;libusb::libusb) -- looking for PCL_COMMON -- looking for PCL_KDTREE -- looking for PCL_OCTREE -- looking for PCL_SEARCH -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_2D -- looking for PCL_GEOMETRY -- looking for PCL_IO -- looking for PCL_FEATURES -- looking for PCL_ML -- looking for PCL_SEGMENTATION -- looking for PCL_VISUALIZATION -- looking for PCL_SURFACE -- looking for PCL_REGISTRATION -- looking for PCL_KEYPOINTS -- looking for PCL_TRACKING -- looking for PCL_RECOGNITION -- looking for PCL_STEREO -- looking for PCL_APPS -- looking for PCL_OUTOFCORE -- looking for PCL_PEOPLE -- Configuring done -- Generating done -- Build files have been written to: /home/johnny/3d_line_detection/build make[1]: Entering directory '/home/johnny/3d_line_detection/build' make[2]: Entering directory '/home/johnny/3d_line_detection/build' make[3]: Entering directory '/home/johnny/3d_line_detection/build' Consolidate compiler generated dependencies of target 3d_line_detection make[3]: Leaving directory '/home/johnny/3d_line_detection/build' make[3]: Entering directory '/home/johnny/3d_line_detection/build' [ 50%] Building CXX object src/CMakeFiles/3d_line_detection.dir/Sphere.cpp.o /home/johnny/3d_line_detection/src/Sphere.cpp: In member function ‘void geometry::Sphere::subdivide()’: /home/johnny/3d_line_detection/src/Sphere.cpp:66:29: error: ‘string’ is not a member of ‘std’ 66 | std::unordered_map<std::string, int> newVerticesMap; | ^~~~~~ /home/johnny/3d_line_detection/src/Sphere.cpp:13:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’? 12 | #include <3d_line_detection/Sphere.hpp> +++ |+#include <string> 13 | /home/johnny/3d_line_detection/src/Sphere.cpp:66:40: error: template argument 1 is invalid 66 | std::unordered_map<std::string, int> newVerticesMap; | ^ /home/johnny/3d_line_detection/src/Sphere.cpp:66:40: error: template argument 3 is invalid /home/johnny/3d_line_detection/src/Sphere.cpp:66:40: error: template argument 4 is invalid /home/johnny/3d_line_detection/src/Sphere.cpp:66:40: error: template argument 5 is invalid /home/johnny/3d_line_detection/src/Sphere.cpp:78:22: error: ‘string’ is not a member of ‘std’ 78 | std::string newVertexLabel = std::to_string(curTriangle[i]) + "_" + std::to_string(curTriangle[j]); | ^~~~~~ /home/johnny/3d_line_detection/src/Sphere.cpp:78:22: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’? /home/johnny/3d_line_detection/src/Sphere.cpp:81:42: error: request for member ‘find’ in ‘newVerticesMap’, which is of non-class type ‘int’ 81 | auto it = newVerticesMap.find(newVertexLabel); | ^~~~ /home/johnny/3d_line_detection/src/Sphere.cpp:81:47: error: ‘newVertexLabel’ was not declared in this scope; did you mean ‘newVertexIdx’? 81 | auto it = newVerticesMap.find(newVertexLabel); | ^~~~~~~~~~~~~~ | newVertexIdx /home/johnny/3d_line_detection/src/Sphere.cpp:82:42: error: request for member ‘end’ in ‘newVerticesMap’, which is of non-class type ‘int’ 82 | if (it == newVerticesMap.end()) { | ^~~ /home/johnny/3d_line_detection/src/Sphere.cpp:86:36: error: request for member ‘insert’ in ‘newVerticesMap’, which is of non-class type ‘int’ 86 | newVerticesMap.insert(std::make_pair(newVertexLabel, newVertexIdx)); | ^~~~~~ make[3]: *** [src/CMakeFiles/3d_line_detection.dir/build.make:76: src/CMakeFiles/3d_line_detection.dir/Sphere.cpp.o] Error 1 make[3]: Leaving directory '/home/johnny/3d_line_detection/build' make[2]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/3d_line_detection.dir/all] Error 2 make[2]: Leaving directory '/home/johnny/3d_line_detection/build' make[1]: *** [Makefile:91: all] Error 2 make[1]: Leaving directory '/home/johnny/3d_line_detection/build' make: *** [Makefile:7: default] Error 2

Project for windows

Sorry, I have a question: Can this algorithm be configured on Windows & How to do it?
Thank u.

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.