Code Monkey home page Code Monkey logo

agrifieldsurfacerecon's Introduction

Surface Reconstruction in Agriculture

This project aims to reconstruct surfaces from point clouds, generate a mesh, and visualize it using 3D viewers such as MeshLab.

Installation

Step 1: Create an Anaconda Environment

First, create an Anaconda environment called conv_onet using the provided environment.yaml file.

conda env create -f environment.yaml
conda activate conv_onet

Step 2: Compile the Extension Modules

Next, compile the extension modules required for the project.

python setup.py build_ext --inplace

Data Preparation

Step 3: Prepare Your Data

  1. Place your raw data in the data/raw folder.
  2. Place your .npz data into the data folder, such as data/daisue/raw folder. The .npz file should contain a points variable storing each point in an (x, y, z) format.

Step 4: Build the Data

To process your raw data by sampling and creating normal vectors, run the following bash script:

bash scripts/dataset_daisue/run_build_dataset.sh

After running the script, a new .npz file with the normals vector calculated will be generated. You can check the code in scripts/dataset_daisue/build_dataset.py for more details.

Running the Surface Reconstruction

To reconstruct the surface using a pretrained model trained on Matterport3D, run the following command:

python generate.py configs/pointcloud_crop/daisue.yaml

Viewing the Mesh

After generating the mesh, you can view it using 3D viewers such as MeshLab.

References

This project is modified from Convolutional Occupancy Networks.

License

This project is licensed under the terms of the MIT license.

agrifieldsurfacerecon's People

Contributors

anh0001 avatar

Watchers

 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.