image-processing - 如何使用带有透明图像的 imageSearch?
问题描述
我正在尝试在屏幕上找到透明图像。但它找不到图片,因为它的边缘是透明的。有什么解决方法吗?它可能喜欢图书馆或win api。也许我的使用是错误的。
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight,*50 *TransBlack C:\Users\PC\Desktop\light_PNG14440.png
if (ErrorLevel = 2)
MsgBox Could not conduct the search.
else if (ErrorLevel = 1)
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.
我希望输出是The icon was found at 100x100.
,但实际输出是Icon could not be found on the screen.
。
解决方案
或者使用 ImageSearch 你可以使用FindText
推荐阅读
- mysql - MYSQL 使用别名作为列以防万一
- ios - 查找 iOS 设备摄像头与用户面部之间的距离
- audio - 浏览器音频的不准确 Hz 检测
- android - Android Studio 3.2:如何记住 Android XML 代码风格?
- google-cloud-composer - 使用 MsSqlOperator 时没有名为 pymssql 的模块
- image - Xamarin Forms XAML 图像控件已停止工作
- ruby-on-rails - Ruby on Rails/PostGRE - 没有运算符匹配给定的名称和参数类型。错误
- javascript - 单行的Angular6多个ngFor-如何在一个ngFor中传递两个值
- database - MD5 是否有足够的哈希空间来指纹文件?
- haskell - 单子 = 函子 + 幂等性(类型)?