dddd ocr

作者: dittoyy3991 | 来源:发表于2024-07-14 15:37 被阅读0次
#验证码识别的库
import ddddocr
ocr= ddddocr.DdddOcr(show_ad=False)

with open('4.png','rb') as f:
    target_bytes= f.read()

res=ocr.classification(target_bytes)
# print(res)
#
#ai帮我写的装饰器
# Define a decorator function
def read_binary_data(func):
    def wrapper(path):
        with open(path, 'rb') as f:
            target_bytes = f.read()
        return func(target_bytes)  # Pass the read bytes to the decorated function
    return wrapper


@read_binary_data
def recognize_letter_captcha(image_path):
    result = ocr.classification(image_path)
    print(result)
    return result

相关文章

  • 2019-09-28

    dddd ddddd dddd

  • max23

    dddddsss ddddd ddjksjsk jdkjfkd dddd 幅度达到ddd dddddd dddd ...

  • dddd

    山东队的d d

  • dddd

    dddddd

  • dddd

    Yggg

  • dddd

    A5CD994E5F863D4AFEA34C250AF982DFB80A846ED61E187A85E8A5DD3...

  • dddd

    eedddd

  • dddd

    dddddssd

  • dddd

    dddj /---gggh---/

  • dddd

    最近大家都很喜欢打缩写嘛!dddd,其实就是懂得都懂。 确实,懂得都懂。 很多时候,我们不自知,更可怕的是,没有人...

网友评论

      本文标题:dddd ocr

      本文链接:https://www.haomeiwen.com/subject/xvjchjtx.html