爱盲论坛

标题: 分享解说插件,Lookout识别,打开后可选择全屏或焦点识别, [打印本页]

作者: 心灵亮光    时间: 2024-6-22 11:56
标题: 分享解说插件,Lookout识别,打开后可选择全屏或焦点识别,
这个是直接调用Lookout接口,进行当前焦点或者全屏的图片识别。为了功能正常使用,建议把Lookout和解说读屏都升级为新版。代码在2楼,也可以资源下载里面扩展插件搜索导入。

来自:掌上乐园
作者: 心灵亮光    时间: 2024-6-22 11:56
require "import"
import "android.content.Intent"
import "android.graphics.Bitmap"
import "android.net.Uri"
import "java.io.File"
import "java.io.FileOutputStream"

local t = {"焦点识别", "全屏识别"}
function sbcd(mode)
app_pkg = "com.google.android.apps.accessibility.reveal"
store_url = "market://details?id="
if mode == "焦点识别" then
this.getScreenShot(node, {
onScreenCaptureDone = function(A0_4)
A0_4.compress(Bitmap.CompressFormat.PNG, 90, FileOutputStream(File("/sdcard/", "master_kaushik.jpg")))
this.startActivity(Intent(Intent.ACTION_SEND).setType("image/*").setPackage(app_pkg).putExtra(Intent.EXTRA_STREAM, this.getUriForFile(File("/sdcard/master_kaushik.jpg"))))
end
})
else
this.getScreenShot({
onScreenCaptureDone = function(A0_4)
A0_4.compress(Bitmap.CompressFormat.PNG, 90, FileOutputStream(File("/sdcard/", "master_kaushik.jpg")))
this.startActivity(Intent(Intent.ACTION_SEND).setType("image/*").setPackage(app_pkg).putExtra(Intent.EXTRA_STREAM, this.getUriForFile(File("/sdcard/master_kaushik.jpg"))))
end
})
end
end
local dlg = LuaDialog().setItems(t).show()
dlg.onItemClick = function(l, v, p, i)
dlg.dismiss()
sbcd(t)
end
return true

来自:掌上乐园
作者: 喷子    时间: 2024-6-23 11:41
,解说不是会员版能用吗。
本帖来自微秘安卓版
作者: 流星泪    时间: 2024-6-23 13:29
借这贴子问问大家,我的LOOKOUT查找,自从他让我下一个谷歌的什么插件,我好不容易下载并安装之后,这个查找就没办法使用了,安装的那个谷歌插件也找不到没办法卸载,这个怎么解决呀,就是那个试验性功能可以查找门桌子卫生间的功能
本帖来自微秘安卓版
作者: 心灵亮光    时间: 2024-6-25 00:15
回复 地板流星泪

你清除数据那个插件就清除了

来自:掌上乐园




欢迎光临 爱盲论坛 (http://amhl.vip/) Powered by Discuz! X3.2