Git Product home page Git Product logo

sfm_3d_pipeline's Introduction

SFM_3D_pipeline

SFM is used to estimate 3D structure from 2D image sequences taken at various angles of the structure.

This repository provides code for 2D image data collection, calibration and 3D reconstruction. Specifically, these code were developed to capture data of beef carcasses and reconstruct an accurate and detailed 3D model of the carcass. Modify the code to suit your case study (especially for camera and motor drive control).

Data collection

  • Open folder called "Capture_Data".
  • Run "Data_Capture_v1.m" to open up GUI for collecting Data. See attached video for further details
  • For our case, we used mvBlueFox2089c camera and Ezi-Motion plusR motor. Special features; live-view rotaion, gamma and color correction.
Data_collection_GUI.mp4

Preprocessing

  • Collect images of different orientations of a checkerboard in intended 3D space
  • Run "Camera calibrator" app in MATLAB, load checkerboard images, calibrate, save calibration session mat file
  • Open folder called "calib_mats".
  • Run "convertCalib.m" to convert calibration session to distortion parameters and camera instrinsic matrix
  • Copy the output mat file to "Recon\calib" folder

Reconstruction

  • Open folder called "Recon".
  • For reconstruction, run "main.m", preferably section by section. Be sure to adjust variables to suit your dataset
  • Create suitiable background detection function if you need to
  • Feature extraction process uses features from five diffenrt feature extraxtion methods or a combination of them
  • Saved .ply file in the out folder can be visualised and/or further analysed using MeshLab, 3DFZephr, or any 3D preview/analysis program
  • Sample of 3D reconstruction see video attached.
  • Most of the reconstruction functions were inherited from "https://github.com/Alex-Badea/Pocket-3DR", visit link for further details.
SfM_3Dmodel_sample.mp4

Requirements

sfm_3d_pipeline's People

Contributors

collinswakholi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

flyinggh

sfm_3d_pipeline's Issues

camera

can you help me to know is the camera to use is specific or not? and if so what is its resolution and can I use any camera?

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.