gpt4 book ai didi

python - python cv2中的cvPOSIT opencv算法

转载 作者:太空宇宙 更新时间:2023-11-03 22:24:24 25 4
gpt4 key购买 nike

我正在尝试使用 POSIT 算法找到对象的姿势。在 python 中实现代码。在我在谷歌上找到的教程中,所有示例都是用 C++ 编写的。但是如何在 python 中做到这一点。

在 C++ 中

cvPOSIT( positObject, &imagePoints[0], FOCAL_LENGTH, criteria, rotation_matrix, translation_vector );

python cv2 中 cvPOSIT 的函数调用行是什么?

最佳答案

cvPOSIT 已过时,其功能已被 solvePnP 取代。有一个很棒的教程 here ,并提供了更多现在应该更容易找到的信息。

关于python - python cv2中的cvPOSIT opencv算法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43960429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com