比较两个手绘画布图,以相似

发布于 2025-02-04 18:00:24 字数 339 浏览 2 评论 0原文

我正在实施该功能,用户可以在其中绘制介词短语的画布上的图表。当用户完成图表时,我将图表转换为图像。现在,我想找出用户绘制的图是否正确。为此,我将用户绘制图与系统中的正确图进行比较。我尝试了phash,但得分并不令人满意。有没有办法在PHP/JavaScript中进行操作?

以下是我要进行比较的示例图像。

谢谢。

I'm implementing the feature where users can draw the diagram on canvas for the prepositional phrase. When the user done with the diagram then I convert and save the diagram as an Image. Now I want to find out whether the diagram drawn by the user is correct. For that, I'm comparing the user-drawn diagram with the correct diagram I have in my system. I've tried the pHash but the score isn't satisfying. Is there a way to do it in PHP/Javascript?

Below is the sample Image on which I want to perform the comparison.

enter image description here

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文