gpt4 book ai didi

delphi - 如何用delphi查找图片的方向

转载 作者:行者123 更新时间:2023-12-03 19:30:10 24 4
gpt4 key购买 nike

我需要找到 Jade 米图片的方向(如下例所示),它们向右或向左有不同的角度。我需要将它们翻转过来(与法线呈 90 度角)(当它们看起来像水滴时)
有什么办法可以轻松做到吗?

enter image description here

enter image description here

最佳答案

作为起点 - 查找 image moments (和梨等复杂形式的胡矩)。从链接:

Information about image orientation can be derived by first using the 
second order central moments to construct a covariance matrix.

我怀疑使用 OpenCV 等图像处理库可以在常见情况下提供更可靠的结果

关于delphi - 如何用delphi查找图片的方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28403979/

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