How to visualize 3d Points data stream of object coordinates in Real time python

asked 2017-05-10 07:11:20 -0500

djkpA gravatar image

updated 2017-05-10 07:12:10 -0500

I am getting 3d points of object in real word with triangulatePoints function in opencv. But to debug and verify accuracy of point I need a debugging procedure. I am gets new point for every 20 mill seconds. I need to plot the points and visualize them in real time.

How do I achieve this. I am developing in python.

edit retag flag offensive close merge delete


To do 3d things with OpenCV you'll need the VIZ module. Unfortunately, I can't help with doing it in real-time.

Tetragramm gravatar imageTetragramm ( 2017-05-10 17:07:18 -0500 )edit

from c++, you'd use opencv's viz module, this is unfortunately not possible from python, so you're somewhat on your own here.

you couldtry with opengl, but that probably needs a lot of boilerplate code, before you see anything.

you also could just serialize the pointcloud to a ply or obj file, and choose your favourite external viewer to watch it.

berak gravatar imageberak ( 2017-05-11 00:08:53 -0500 )edit