日本好好热aⅴ|国产99视频精品免费观看|日本成人aV在线|久热香蕉国产在线

  • <cite id="ikgdy"><table id="ikgdy"></table></cite>
    1. 西西軟件園多重安全檢測下載網(wǎng)站、值得信賴的軟件下載站!
      西西首頁 電腦軟件 安卓軟件 電腦游戲 安卓游戲 排行榜 專題合集

      搜狗ocr識別postImage

      最新版
      • 搜狗ocr識別postImage最新版
      • 軟件大小:8.3M
      • 更新時間:2018-03-13 13:47
      • 軟件語言:中文
      • 軟件廠商:
      • 軟件類別:國產(chǎn)軟件 / 免費軟件 / 圖像轉(zhuǎn)換
      • 軟件等級:3級
      • 應用平臺:WinAll
      • 官方網(wǎng)站:暫無
      • 應用備案:
      好評:50%
      壞評:50%

      軟件介紹

      搜狗ocr識別postImage是一款使用搜狗圖像技術(shù)平臺的制作的ocr識別軟件,文字識別、圖像識別、人臉識別,基于大數(shù)據(jù)智能識別技術(shù),提供穩(wěn)定、精準的OCR文字識別。

      函數(shù)代碼

      # _*_ coding: utf-8 _*_# Time: 2018/3/11/22:50# Author: dengqing# Title 搜狗ocr識別接口# 這個代碼涉及到抓包用的fiddlerimport requests# 庫文件def post_image(): img = "./ocr.png"# 圖片路徑 files = {"pic_path": open(img, "rb")}# files # 類似data數(shù)據(jù) url = "http://pic.sogou.com/pic/upload_pic.jsp"# post的url html = requests.post(url, files=files).text# requests 提交圖片 get_content(html)# 結(jié)果是url就是圖片的url sougou 把本地圖片上傳到sougou服務器變成了他的圖片 調(diào)用解析函數(shù)把url傳入def get_content(keywords): url = "http://pic.sogou.com/pic/ocr/ocrOnline.jsp?query=" + keywords# keywords就是圖片url此方式為get請求 ocrResult = requests.get(url).json()# 直接轉(zhuǎn)換為json格式 contents = ocrResult['result']# 類似字典 把result的value值取出來 是一個list然后里面很多json就是識別的文字 for content in contents:# 遍歷所有結(jié)果 print(content['content'].strip())# strip去除空格 他返回的結(jié)果自帶一個換行post_image()# 調(diào)用上傳函數(shù)

      軟件截圖

      搜狗ocr識別postImage 最新版

      發(fā)表評論

      昵稱:
      表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
      查看所有(0)條評論 > 字數(shù): 0/500

      TOP
      軟件下載