Distance of a line by camera points
1 次查看(过去 30 天)
显示 更早的评论
Hello Everyone
I have a stereo camera,
I want to figure out the angle of an object with respect to ground.
Please see the attached image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223574/image.png)
I know the length of the line lp, hp and bc. What I want to do is to figure out the angle bac. I know if I can find either ab or ac; I can use trigonometry to solve for angel bac. But please edify me for how can I find this.
Any suggestions or help is greatly appreciated.
6 个评论
Matt J
2019-6-10
I see no distance calculations in that code. The function there doesn't even return anything.
回答(1 个)
Matt J
2019-6-11
编辑:Matt J
2019-6-11
Well, I have no familiarity with the 3rd party Github library that you're using. However, it is a stereo camera class. So, it should offer you methods not just to calculate "depth", but the actual real-world coordinates of points in the image. Matlab's own stereo vision routines do offer such things
Once you have the 3D coordinates of a,b, and c, you can of course calculate anything.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Camera Calibration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!