发帖
充值
 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
9 0

媲美百度OCR的产品免费使用

论坛公告 8007 9 2022-11-3 18:32:11
最下方有接口和接口地址需要的直接可以自己使用,下方也有交流群需要的进群交流心得
ocr识字实例如下:
function ocr返回文本坐标(name,x1,y1,x2,y2)
        local x=-1 y=-1
        import('java.lang.*')
        import('java.util.*')
        import('com.nx.assist.lua.LuaEngine')
        local path = "/mnt/sdcard/test.png"
        snapShot(path,x1,y1,x2,y2)
        local 图片数据= getFileBase64(path)
        import('java.lang.*')
        import('java.util.*')
        import('com.nx.assist.lua.LuaEngine')
        url="http://ai.shanhesheji.com:8092/script/getPosition"
        params={}
        params["imageB64"]=图片数据
        params["id"]="abc"
        params["name"]=name
        params["token"]="147852qwe"
        local arg = jsonLib.encode(params)
        local status = LuaEngine.httpPostData(url,arg,"application/json;charset=utf-8",30)
        if  status ~= nil then
                结果 = jsonLib.decode(status)
                if 结果["code"] == 200 then
                        if 结果["data"]["text"] == "" then
                                --print("服务器出现问题")
                                return false
                        else
                                local x=结果["data"]["xPosition"]+x1
                                local y=结果["data"]["yPosition"]+y1                        
                                return name,x,y                        
                        end
                else
                        return false
                end
                --[===[else
                print(结果["message"])]===]
        end
end
print( name,x,y = ocr返回文本坐标(name,x1,y1,x2,y2))
-----------------------------------------------------------------
function ocr返回文本(x1,y1,x2,y2)
        local x=-1 y=-1
        import('java.lang.*')
        import('java.util.*')
        import('com.nx.assist.lua.LuaEngine')
        local path = "/mnt/sdcard/test.png"
        snapShot(path,x1,y1,x2,y2)
        local 图片数据= getFileBase64(path)
        import('java.lang.*')
        import('java.util.*')
        import('com.nx.assist.lua.LuaEngine')
        url="http://ai.shanhesheji.com:8092/script/getContent"
        params={}
        params["imageB64"]=图片数据
        params["id"]="abc"
        params["token"]="147852qwe"
        local arg = jsonLib.encode(params)
        local status = LuaEngine.httpPostData(url,arg,"application/json;charset=utf-8",30)
        --print(status)
        if  status ~= nil then
                结果 = jsonLib.decode(status)
                if 结果["code"] == 200 then
                        
                        if 结果["data"]["content"] == "" then
                                print("服务器出现问题")
                                return false
                        else
                                return 结果["data"]["content"]                        
                        end
                else
                        return false
                end
        else               
                print(结果["message"])
        end        
end
print(ocr返回文本(x1,y1,x2,y2))
-------------------------------------毫秒响应速度-----------------免费使用群459638241------------------------------
请求地址:http://ai.shanhesheji.com:8092
接口地址/script/getContent
token:147852qwe



接口.png (67.37 KB, 下载次数: 0)

post请求

使用道具 举报

2023-4-20 11:20:25
token失效了 需要使用得话 联系 Q 22660917
2023-4-20 17:23:06
免费token:74fa503c73464902b6e51640631cf85f
注意是否有空格
2022-11-15 05:12:07
"次数已经用完,请联系管理员!",
用不了啊啊啊啊啊啊啊啊啊啊
2023-4-20 00:40:34

"次数已经用完,请联系管理员!",
用不了啊啊啊啊啊啊啊啊啊啊
2023-4-20 00:41:03
这是 骗钱的吧
2023-4-20 00:41:33
感觉 打着免费的幌子来的
2023-4-20 00:42:06
  print("服务器出现问题")
2023-4-20 11:19:19
6530123 发表于 2022-11-15 05:12
"次数已经用完,请联系管理员!",
用不了啊啊啊啊啊啊啊啊啊啊

token失效了 需要使用得话 联系 Q 22660917
2023-4-20 11:19:39
songzunkui 发表于 2023-4-20 00:40
"次数已经用完,请联系管理员!",
用不了啊啊啊啊啊啊啊啊啊啊

token失效了 需要使用得话 联系 Q 22660917
您需要登录后才可以回帖 立即登录
高级模式
返回
论坛公告