除了Pyzbar,还有其他选项可以解码cap.read()返回的对象吗?

2024-05-20 14:17:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用pyzbar解码cap.read()返回的对象,但它给出了一个错误。我的代码是:

    while True:
    _, frame = cap.read()
    decodedObject = decode(frame)

此代码给出了一个错误:

FileNotFoundError: Could not find module 'F:\New Volume\PycharmProjects\trial\venv\lib\site-packages\pyzbar\libzbar-64.dll' (or one of its dependencies). Try using the full path with constructor syntax

我已经尝试了很多来解决这个错误。我想知道,除了pyzbarcap.read()返回的对象进行解码之外,还有其他选择吗


Tags: 对象代码trueread错误not解码frame