Skip to content

转换成文字时出现错误 #1

Description

@summer506hai

选择图片后,点击转换成文字 出现报错
Traceback (most recent call last):
File "...... python-text-recognition-master/src/baidu-api.py", line 967, in convertButton_callback
txt=res['words_result']
KeyError: 'words_result'

程序退出
Process finished with exit code -1073740791 (0xC0000409)

Activity

  1. summer506hai commented on Feb 15, 2020

    @summer506hai
    Author

    选择图片后,点击转换成文字 出现报错
    Traceback (most recent call last):
    File "...... python-text-recognition-master/src/baidu-api.py", line 967, in convertButton_callback
    txt=res['words_result']
    KeyError: 'words_result'

    程序退出
    Process finished with exit code -1073740791 (0xC0000409)

    应该是鉴权失败问题

  2. Wud1 commented on Jul 29, 2020

    @Wud1

    @summer506hai 我也遇到了同样的问题,请问你解决了吗?

  3. ouening commented on Jul 29, 2020

    @ouening
    Owner

    这个程序之前不完善,用的我自己申请的ID和秘钥,被人玩坏了,简化后的新版本没有放出,可以自己在百度云申请图像文本识别App ID

  4. summer506hai commented on Aug 1, 2020

    @summer506hai
    Author

    @summer506hai 我也遇到了同样的问题,请问你解决了吗?
    @Wud1
    解决了,自己申请一个ID,把代码改下就可以 。
    appid,apikey,screet key 可以自行填写; https://github.com/summer506hai/python-text-recognition 这是我改的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions