已知,python 的库 pytesseract 和 image 可以去识别图形验证码
但是只能是图片存储在某个路径下,然后去 open,识别
如果有个图片,是这种格式
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABGCAMAAAB8DG+AAAAAP1BMVEUAAAA9fEB6uX1SkVVvrnIPThJPjlJ5uHwubTEcWx9TklZioWU1dDh3tno9fEA0czd3tnowbzMUUxcKSQ0xcDSd5F48AAAAAXRSTlMAQObYZgAAA0xJREFUeJzsmduO4yAMhm2qNu1Fm4u+/7uu0nDwESZAtb2IpdWMMsR8/NjGZOG000477bTTTjuty3D7h58f8x3PcIMbHe4/hNPX69XnNGx4OIUQpXG+HkKEEIJw1Y0HWbo5gNFRwDkKRjjqegSQLBemCChSQwEei0GxFzNyRABpwGPOmIIzTPHYhI/H44C7mdXKBjT4KGHwvU0upQaNuTk7YHocQnAGz6p7VY+uguV5yHB8SyfVvQaMt8dCWLOyf0FBvcUmNCCu9DmagHYFWOYDWqPWdUW+Cl7xXMJlGSGUHp0yyBVEIJVOBGH8lWbPOJ+c1xgEZUJxXCOoGDQOzG5Aq1NQe76h0X3ktYXy5a4NeKPwHGFMpzraC0dTQTABkycSo/f7HeD53AjD5XLpI0zrtgDTrpe/1PiYgpvd7zth5OsizAraSZge5fCPD1Jyoqo+NHsi4Md6AYEUWP9gyeyF70PI+ViSbc5mAXIY9iRBC9AIiCVGUa0ux2AhHOcTrQ1XDksO74D5DXqooFjfLEO79QJS44CQLsuSiRD52Sw8TOJDa5OA1TikA0kxAcDK4bz/vqfUbYSw0XlFBQWHzGFxjBS+T0rdbr2EWE0QUAqqvcx++H2pbMpxBVl0mROiraB5fZbvQVnOASY1OwILbz1Ej0+vNW7l+WzqbmFZXZDlwQDkParsaar+RwERXTWMVjGv5a+I/RKSS48zExdWaILYvJ7jKGMJJMcBkvJIoo/9saWhWSGOQVYnUPcjeTNp8Dlt5iRDYCkhZzJTP7+pSuc3EX0JxXC0P259jRCNdAcfkI9Dq9nm/td1FRMeXAWNIS2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