Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add primitive visual odometry based on lk_track.py from opencv #2

Open
zbynekwinkler opened this issue Mar 27, 2017 · 4 comments
Open

Comments

@zbynekwinkler
Copy link
Member

lk_track.py from opencv samples shows how to track a set of point between images. Use that plus cv2.findEssentialMat() to recover relative pose between frames using cv2.recoverPose(). Somewhat like visual odomery tutorial .

@zbynekwinkler
Copy link
Member Author

Bonus feature would be to separately track inliers corresponding to the change of the camera pose and possibly some other groups corresponding to moving objects.

@zbynekwinkler
Copy link
Member Author

Actually, let's assume a static scene and leave object tracking for later.

@zbynekwinkler
Copy link
Member Author

Just doing a quick timing on the lk_track.py example from opencv. On computer i5 at 1.7GHz and 640x480 picture from the built in camera the tracking step takes around 4ms and the detect step around 11ms. Detecting new features to track is done on every 5th frame. Amortizing this we get 6ms per frame. FPS is a bit over 30.

Summarizing, it is using about 20% of one core.

@zbynekwinkler
Copy link
Member Author

Can be tested at 770a1bf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant