[問題] Selenium save_screenshot to buffer
小弟用pytesseract練習圖形辨識
首先用selenium save_screenshot儲存檔案
再用PIL crop後成功做到簡單的圖片辨識
想說能不能save_screenshot存到buffer並讓PIL享用?
save_screenshot()可接受參數介紹為=> need string or buffer,
因為看到這句才有的想法
但幾經胡亂嘗試都失敗,求版上解惑,感恩@@
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 192.83.177.90
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1486542632.A.634.html
※ 編輯: coolching (192.83.177.90), 02/08/2017 16:31:19
→
02/08 17:40, , 1F
02/08 17:40, 1F
→
02/09 16:48, , 2F
02/09 16:48, 2F
推
02/09 19:12, , 3F
02/09 19:12, 3F
→
02/10 14:26, , 4F
02/10 14:26, 4F
Python 近期熱門文章
PTT數位生活區 即時熱門文章