Git Product home page Git Product logo

monovo-python's Introduction

Keywords: FAST Feature Detection, LK Feature Tracking, Five-Point Motion Estimation

port from https://github.com/yueying/LearningVO

map

Requirements

  • Python 2.7
  • Numpy
  • OpenCV

Dataset

KITTI odometry data set (grayscale, 22 GB)

Usage

Modify the path in test.py to your image sequences and ground truth trajectories, then run

python test.py

References

  1. 一个简单的视觉里程计实现 | 冯兵的博客
  2. Monocular Visual Odometry using OpenCV and its related project report Monocular Visual Odometry | Avi Singh

Search "cv2.findEssentialMat", "cv2.recoverPose" etc. in github, you'll find more python projects on slam / visual odometry / 3d reconstruction

monovo-python's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monovo-python's Issues

xrange is not defined

Before running the for loop the variable xrange is not defined.

for img_id in xrange(2000):

The error is as follows:

_(myMONO) C:\Users\KJoshi\OneDrive\Applanix\myPythonExample\myMONO>python test.py
Traceback (most recent call last):
  File "test.py", line 13, in <module>
    for img_id in xrange(2000):
NameError: name 'xrange' is not defined_

Visual Odometry UAV Dataset?

Hi, i'm kinda new here lol, could you tell me where i could find UAV Dataset ? cause it seems this KITTI dataset is for cars, thanks

VisualOdometry instance has no attribute 't'

In test.py there is a call to a vo.t attribute which does not exist on the visual_odometry.py
I am guessing it should be an attribute which contains the translation vector. Thanks

xaxis is reversed

the x axis is back to front on traj.
ie the car turns to the right and the track goes left

xrange(4541)

should xrange(4541) be range(4541)? [test.py, line 12]

How to test with a webcam?

I would like to run live test to get the pose/tracking data.
Is it possible to use a webcam to test this out?

No file named 00.txt

Hi,

I love the idea of this lib, would complete a project I'm working on now. However, I think it might be a little outdated because the latest grayscale dataset has a file structure of /dataset/sequences/00...21/calib.txt | image_0 | image_1 | times.txt . I tried replacing 00.txt with calib or times but I get an out of range error on the absolute_scale function in visualodometry. I'd love any input as to how to fix this.

Thanks

EDIT

Found it, just had to download the ground truth poses as well.

what is annotation

what is annotation and frame_id in the code I couldn't able to download KITTI datasheet because it is 22GB. please let me know about these. I have my own data. with only single camera .

List index out of range

I just downloaded the code to my laptop(windows 10),using the KITTY datasets. I did not change anything except the path to my dataset, and here is the error I got after running the code

Traceback (most recent call last):
File "test.py", line 17, in
vo.update(img, img_id)
File "D:\monoVO-python-master\visual_odometry.py", line 94, in update
self.processFrame(frame_id)
File "D:\monoVO-python-master\visual_odometry.py", line 81, in processFrame
absolute_scale = self.getAbsoluteScale(frame_id)
File "D:\monoVO-python-master\visual_odometry.py", line 55, in getAbsoluteScale
x_prev = float(ss[3])
IndexError: list index out of range

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.