Code Monkey home page Code Monkey logo

Comments (3)

simbaforrest avatar simbaforrest commented on June 16, 2024

Hi, You should first figure out how to get the depth image from ZED, and then how to convert the depth image into an organized point cloud which should be organized as a 3xHxW sized tensor (or HxWx3). Then you can save the organized point cloud as a *.pcd file. And then you can use https://github.com/ai4ce/peac/blob/master/cpp/plane_fitter_pcd.cpp to process your pcd file to extract planes.

from peac.

Harrypys avatar Harrypys commented on June 16, 2024

Thank you for your response. However, when I ran the pcd file I saved from the camera, it said it failed to load the file. Do I need to save it as .xyz file and then convert it into pcd file or change any of the parameters?

mmvc@mmvc-Alienware-13-R3:~/peac/cpp/build$ ./plane_fitter_pcd
[iniLoad] list=>/home/mmvc/peac/cpp/build/data/test.pcd
[iniLoad] ignore line:
[iniLoad] outputDir=>/home/mmvc/peac/cpp/build/data/output
[iniLoad] loop=>1
[iniLoad] debug=>0
[iniLoad] ignore line:
[iniLoad] unitScaleFactor=>1000
[iniLoad] ignore line:
[iniLoad] showWindow=>1
[iniLoad] ignore line:
[iniLoad] stdTol_merge=>8
[iniLoad] stdTol_init=>5
[iniLoad] depthSigma=>1.6e-6
[iniLoad] ignore line:
[iniLoad] z_near=>500
[iniLoad] z_far=>4000
[iniLoad] angleDegree_near=>15
[iniLoad] angleDegree_far=>90
[iniLoad] similarityDegreeTh_merge=>60
[iniLoad] similarityDegreeTh_refine=>30
[iniLoad] ignore line:
[iniLoad] depthAlpha=>0.04
[iniLoad] depthChangeTol=>0.02
[iniLoad] ignore line:
[iniLoad] initType=>1
[iniLoad] ignore line:
[iniLoad] minSupport=>3000
[iniLoad] ignore line:
[iniLoad] windowWidth=>10
[iniLoad] windowHeight=>10
[iniLoad] ignore line:
[iniLoad] doRefine=>1
create:/home/mmvc/peac/cpp/build/data/output
'.cl::PCDReader::readHeader] Could not find file '/home/mmvc/peac/cpp/build/data/test.pcd
fail to load: /home/mmvc/peac/cpp/build/data/test.pcd
'.cl::PCDReader::readHeader] Could not find file '/home/mmvc/peac/cpp/build/data/test.pcd
fail to load: /home/mmvc/peac/cpp/build/data/test.pcd

from peac.

Harrypys avatar Harrypys commented on June 16, 2024

Also if I want to extract the planes in real time, do I use plane_fitter.cpp? Thanks!

from peac.

Related Issues (4)

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.