LearnTechWithUs / Stereo-Vision

This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
MIT License
343 stars 114 forks source link

Mapping pixels for distance #8

Open Zumbalamambo opened 4 years ago

Zumbalamambo commented 4 years ago

How do I select a point in 2d image (either from the right camera or the left camera) and get the distance through the stereo vision?

fh-kriftel commented 2 years ago

I am also interested in the distance measurement of this code.

The measuring is not quite correct, I guess the parameters do not match my focal length.

In line 244 last parameters should be "disp", not filt_Color, I believe.

In line 31 - here happens the "measuring", add

disp = param

Then, when double-clicking in the stereo picture, it will output distances.

Have fun.