Questions tagged [structure-from-motion]

72 questions
0
votes
0 answers

2D to 3D Model Failure using Structure from Motion (OpenCV Python)

import cv2 import numpy as np import os import pyvista as pv # Input directory containing images input_dir = "C:/Users/Pictures/FYP/Box2" # Get a list of all image file paths in the directory image_paths = [os.path.join(input_dir, f) for f in…
0
votes
0 answers

Error While Estimating Fundamental Matrix of a set of Images

I am Currently Working on a project related to Sfm Photogrammetry using Python OpenCV Library.I extracted and matched the Features using SIFT Algorithm. I tried to find the fundamental matrix by taking each keypoints and matches from adjacent points…
0
votes
0 answers

Bundle adjustment with focal length correction not converging

I am trying to add a new feature to our existing implementation of the bundle adjustment in code. The algorithm uses the Gauss-Newton method and has been working for well over a decade. The least squares "A" matrix is populated using initial…
0
votes
0 answers

Can we do Structure from Motion in frames with two or more dynamic bodies/objects?

I have recently studied about Structure from Motion and understood that we can find the camera poses using SfM from a video. In my case, the video consists of multiple persons moving relatively. Is it possible to do SfM in this case? Can someone…
0
votes
0 answers

How to use OpenCV triangulatePoints and GPS data properly?

I am trying to estimate the 3D position of a world coordinate from 2 frames. The frames are captured with the same camera from different positions. The problem is, the estimation is wrong. I have Camera Intrinsic parameters K = [4708.29296875, 0,…
0
votes
1 answer

OpenCV - Correctly recovering the pose and landmark positions from 2d image points

I'm trying to do 3D scene reconstruction and camera pose estimation on video input, however the camera positions are not matching what I am seeing in the video. Here is the code I wrote to recover the pose and landmark positions def SfM(self,…
0
votes
1 answer

How to read the .mat file from Visual SFM in Python Code?

Can someone help me with the Python code to read the .mat file generated from Visual SFM? You can download the .mat file from the link: https://github.com/cvlab-epfl/tf-lift/tree/master/example You can get a .mat file in the zip in the link and the…
Breadbao
  • 3
  • 1
0
votes
1 answer

How can I projects points from 2D to 3D using OpenCV?

I'm working on Camera Calibration and 3D Reconstruction problem. Is there a method in OpenCV or any other Python package that projects points from 2D to 3D given R - a rotation matrix, T - a translation matrix, focal length (f_x, f_y) and optical…
0
votes
0 answers

How to track the 2d points over the images for 3d-reconstruction as specified in opencv sfm pipeline?

I am trying to do 3D reconstruction using this code from opencv. As far as I understood, I need a textfile with the 2D points as per the given format. I am wondering if anyone could help me in getting these 2D points they mention in this program. I…
parupalu
  • 51
  • 2
  • 9
0
votes
2 answers

reconstruction with structure from motion

I am currently trying to write an algorithm of structure from motion with the help of the book mastering opencv 3. Now i have my algorithme who sort my set of image and triangulate point and reconstruct just the base line triangle for one pair of…
0
votes
2 answers

Pipeline for generating a 3D Pointcloud out of feature matches

I am currently stuck at my project of reconstructing an object from different images of the same object. So far I have calculated the feature matches of each image using AKAZE features. Now I need to derive the camera parameters and the 3D Point…
0
votes
0 answers

sfm/slam implementing with webcam

I want to implement Structur from Motion (SfM) / Simultaneous Localization and mapping algorithms using my webcam. I am very new on this topic so I need advices from experts in the internet. I could now able to build OpenCV opencv sfm tutorial for…
P.A
  • 1
  • 1
0
votes
0 answers

3D Reconstruction Of Planar Markers usin OpenCV

I am trying to perform 3D Reconstruction(Structure From Motion) from Multiple Images of Planar Markers. I very new to MVG and openCV. As far I have understood I have to do the following steps: Identify corresponding 2D corner points in the one…
0
votes
0 answers

C++ and OpenCV: InputArrayOfArrays Type and reconstruct() function in SfM Module

I am experimenting with the SfM Module in opencv_contrib, and I was reading the documentation for the reconstruct() function. I'm a bit confused as to one of the parameters that I can pass to it. One of the arguments is: InputArrayOfArrays …
AndrewD
  • 75
  • 7
0
votes
1 answer

How to calculate camera movement speed between to frames?

I want to know how much my camera moved (expressed in speed, e.g. m/s) between two images given timestamp for each image. I know that I can get the pose of my camera while taking the second image relative to the pose of my camera while taking the…
Incanus
  • 389
  • 1
  • 4
  • 16