AppleScript 是否具有像 AutoIt 或 AutoHotkey 一样的图像识别功能
在 AutoHotkey 和 AutoIt 中,脚本能够识别网页上的图像。 AppleScript 能做到吗?如何?
In AutoHotkey and AutoIt the script is able to recognize images on webpages. Can AppleScript do that? How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答...不。 Applescript 是一个用于控制其他应用程序的工具。它本身并没有太多的功能。它的强大之处在于您可以将其他应用程序的强大功能合并到一个脚本中。因此,您必须找到一个单独的应用程序来执行图像操作,然后您可以使用 applescript 来自动化该应用程序。
您可能想查看此计划。我观看了演示,它看起来非常有趣,并且它可能会满足您的要求。我个人从未使用过它。
Short answer... no. Applescript is a tool for controlling other applications. It doesn't have a lot of capabilities itself. It's power is that you can combine the power of other applications into one script. As such you'd have to find a separate application that does the image stuff, then you can use applescript to automate that application.
You might want to look at this program. I watched the demo, it looks really interesting, and it may do what you want. I've never used it personally.
不幸的是,最简单的方法是使用 Applescript 获取当前浏览器页面的源代码。然后您可以扫描文本以识别图像。作为一种语言,Applescript 对此并不理想。我建议使用 Appscript + Python 或 Appscript + Ruby。 Ruby 和 Python 只是拥有更优越的文本挖掘库。将它们与 Appscript 结合起来使此类工作变得非常简单。
The easiest way to do this is unfortunately to use Applescript to get the source for the current browser page. You can then scan the text to recognize the image. As a language though Applescript isn't ideal for this. I'd suggest using Appscript + Python or Appscript + Ruby. Ruby and Python simply have far superior text mining libraries. Combining them with Appscript makes this sort of work pretty easy.