安装第三方库
pip3 install opencv-python
def scan_QR_opencv(): file_path = './file/data/screenshot.png' QR_image = cv2.imread(file_path) QR_detector = cv2.QRCodeDetector() data, bbox, straight_qrcode = QR_detector.detectAndDecode(QR_image) print(data)
对data进行post请求,取返回值即可获取到想要的结果
- python opencv-python 方法 opencvpython opencv-python方法opencv opencv-python opencv-python opencv python opencv-python opencv python cv2 python opencv-python exception opencv opencv-python opencv python视频 opencv-python python_pip install python opencv-python pyproject building命令 opencv-python特征opencv python opencv-python图像opencv python