240 发简信
IP属地:辽宁
  • 算法(时间复杂度)

    https://juejin.im/post/58d15f1044d90400691834d4 算法的效率主要由以下两个复杂度来评估:时间复杂度:评估执行程序所需的时间。可以...

  • @CrazySteven 已经搞定,是tesseract.py的模块文件路径的问题,谢谢。

    Python之图片OCR识别(Mac)

    因为经常给朋友发的信息来源是一张图片,就想到了用Python处理下,就省的敲字了。。。 安装tesseract brew install tesseract 安装pytess...

  • pycharm报错怎么破,Google找不到解决方案

    Python之图片OCR识别(Mac)

    因为经常给朋友发的信息来源是一张图片,就想到了用Python处理下,就省的敲字了。。。 安装tesseract brew install tesseract 安装pytess...

  • ```
    Traceback (most recent call last):
    File "/Users/mac/anaconda3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 194, in run_and_get_output
    run_tesseract(**kwargs)
    File "/Users/mac/anaconda3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 165, in run_tesseract
    proc = subprocess.Popen(command, **subprocess_args())
    File "/Users/mac/anaconda3/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
    File "/Users/mac/anaconda3/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'tesseract': 'tesseract'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "test.py", line 5, in <module>
    text = pytesseract.image_to_string(Image.open('111.png'), lang='chi_sim')
    File "/Users/mac/anaconda3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 286, in image_to_string
    return run_and_get_output(image, 'txt', lang, config, nice)
    File "/Users/mac/anaconda3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 201, in run_and_get_output
    raise TesseractNotFoundError()
    pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

    ```

    Python之图片OCR识别(Mac)

    因为经常给朋友发的信息来源是一张图片,就想到了用Python处理下,就省的敲字了。。。 安装tesseract brew install tesseract 安装pytess...

  • GitHub入门

    Github上搭建Jekyll博客搭建走了很多坑。刚开始硬要不走寻常路,要去套用别人的Jekyll模板,结果下载下来的都是缺少Gilefem文件的或者上传上去图片链接和跳转页...